Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How To Do Stop Walking When Use Animation?

Asked by 5 years ago
Edited 5 years ago

So This is Punching Animation Script i Press X if not a Stop Walking

local human = script.Parent:WaitForChild("Humanoid")

local AttackArm = true

local canattack = true

game:GetService("UserInputService").InputBegan:connect(function(input, gamepor)
    if (input.KeyCode == Enum.KeyCode.X or input.KeyCode == Enum.KeyCode.ButtonY) and canattack then
        canattack = false
        script.RemoteEvent:FireServer(AttackArm) 
        human:LoadAnimation(AttackArm and script.R or script.L):Play() 
        wait(10) 
        AttackArm = not AttackArm
        canattack = true 
    end 
end)
0
human.WalkSpeed = 0 brok4d 77 — 5y
0
put in? coIdsauce -5 — 5y

Answer this question