Run it
Copy the script and paste it into your executor.
ContextActionService = :()
RunService = :()
UserInputService = :()
Players = :()
player = Players.LocalPlayer
IDLE_ANIM =
WALK_ANIM =
RUN_ANIM =
PUNCH_ANIM =
JUMP_ANIM =
TAUNT_ANIM =
WALK_SPEED =
SPRINT_SPEED =
punchTrack, idleTrack, walkTrack, runTrack, jumpTrack, tauntTrack
debouncePunch =
sprintEnabled =
flingActive =
flingCoroutine
tauntDebounce =
(character, speed)
humanoid = character:()
humanoid
humanoid.WalkSpeed = speed
()
walkTrack walkTrack.IsPlaying walkTrack:()
runTrack runTrack.IsPlaying runTrack:()
idleTrack idleTrack.IsPlaying
idleTrack:()
()
flingActive =
flingCoroutine =
()
debouncePunch =
sprintEnabled =
()
idleTrack idleTrack:()
walkTrack walkTrack:()
runTrack runTrack:()
punchTrack punchTrack:()
jumpTrack jumpTrack:()
tauntTrack tauntTrack:()
player.Character
(player.Character, WALK_SPEED)
idleTrack idleTrack:()
()
lp = Players.LocalPlayer
oscillation =
direction =
flingActive
RunService.Heartbeat:()
char = lp.Character
hrp = char char:()
hrp
vel = hrp.Velocity
baseVel = .(vel.X * , , vel.Z * )
hrp.Velocity = baseVel + .(, oscillation * direction, )
direction = -direction
char = lp.Character
char
hrp = char:()
hrp
hrp.Velocity = .(, , )
(character)
humanoid = character:()
idleTrack idleTrack:()
walkTrack walkTrack:()
runTrack runTrack:()
punchTrack punchTrack:()
jumpTrack jumpTrack:()
tauntTrack tauntTrack:()
idleTrack, walkTrack, runTrack, punchTrack, jumpTrack, tauntTrack = , , , , ,
idleAnim = .()
idleAnim.AnimationId = .. IDLE_ANIM
idleTrack = humanoid:(idleAnim)
idleTrack.Priority = .AnimationPriority.Idle
idleTrack.Looped =
idleTrack:()
walkAnim = .()
walkAnim.AnimationId = .. WALK_ANIM
walkTrack = humanoid:(walkAnim)
walkTrack.Priority = .AnimationPriority.Movement
walkTrack.Looped =
runAnim = .()
runAnim.AnimationId = .. RUN_ANIM
runTrack = humanoid:(runAnim)
runTrack.Priority = .AnimationPriority.Movement
runTrack.Looped =
punchAnim = .()
punchAnim.AnimationId = .. PUNCH_ANIM
punchTrack = humanoid:(punchAnim)
punchTrack.Priority = .AnimationPriority.Action
punchTrack.Looped =
punchTrack.Stopped:(()
debouncePunch =
()
()
)
jumpAnim = .()
jumpAnim.AnimationId = .. JUMP_ANIM
jumpTrack = humanoid:(jumpAnim)
jumpTrack.Priority = .AnimationPriority.Action
jumpTrack.Looped =
humanoid.StateChanged:((_, state)
state == .HumanoidStateType.Jumping
jumpTrack
jumpTrack.IsPlaying jumpTrack:()
jumpTrack:()
)
tauntAnim = .()
tauntAnim.AnimationId = .. TAUNT_ANIM
tauntTrack = humanoid:(tauntAnim)
tauntTrack.Priority = .AnimationPriority.Action
tauntTrack.Looped =
tauntTrack.Stopped:(()
tauntDebounce =
()
)
humanoid.Running:((speed)
speed >
debouncePunch punchTrack punchTrack.IsPlaying
punchTrack:()
debouncePunch =
()
sprintEnabled
runTrack.IsPlaying
walkTrack:()
runTrack:()
walkTrack.IsPlaying
runTrack:()
walkTrack:()
idleTrack.IsPlaying
idleTrack:()
()
)
humanoid.Died:(resetToInitialState)
player.CharacterAdded:((character)
sprintEnabled =
debouncePunch =
(character, WALK_SPEED)
(character)
)
player.Character
sprintEnabled =
debouncePunch =
(player.Character, WALK_SPEED)
(player.Character)
UserInputService.InputBegan:((input, gameProcessed)
gameProcessed input.KeyCode == .KeyCode.LeftShift
sprintEnabled = sprintEnabled
player.Character
(player.Character, sprintEnabled SPRINT_SPEED WALK_SPEED)
)
(_, state, _)
state == .UserInputState.Begin punchTrack debouncePunch
debouncePunch =
flingActive =
runTrack runTrack.IsPlaying runTrack:()
walkTrack walkTrack.IsPlaying walkTrack:()
idleTrack idleTrack.IsPlaying idleTrack:()
punchTrack:()
flingCoroutine .(flingCoroutine) ==
flingCoroutine = .(startFling)
.(flingCoroutine)
ContextActionService:(
,
punchAction,
,
.KeyCode.F
)
ContextActionService:(, )
(_, state, _)
state == .UserInputState.Begin
sprintEnabled = sprintEnabled
player.Character
(player.Character, sprintEnabled SPRINT_SPEED WALK_SPEED)
ContextActionService:(
,
sprintToggleAction,
,
.KeyCode.LeftShift
)
ContextActionService:(, )
(_, state, _)
state == .UserInputState.Begin tauntTrack tauntDebounce
tauntDebounce =
walkTrack walkTrack.IsPlaying walkTrack:()
runTrack runTrack.IsPlaying runTrack:()
idleTrack idleTrack.IsPlaying idleTrack:()
tauntTrack:()
ContextActionService:(
,
tauntAction,
,
.KeyCode.T
)
ContextActionService:(, )
()
Bad sloppy ai script I made bc I got called retro slop for having a 2007 roblox avatar