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

How to tell when a humanoid is moving, and then do something?

Asked by
Tizzel40 243 Moderation Voter
5 years ago

I would like the animation to stop when a humanoid is moving, but how do you tell when the player is moving?

script.Parent:WaitForChild("eqquiped").Changed:Connect(function()
    if script.Parent:WaitForChild("eqquiped").Value == true then
        local char = play.Character
local hum = char:WaitForChild("Humanoid")
local takeoutanimation = hum:LoadAnimation(script.Parent:WaitForChild("Animations").equipped)
local stance = hum:LoadAnimation(script.Parent:WaitForChild("Animations").Idle)
        takeoutanimation:Play()
        wait(1.5)
        stance:Play()

    end
end)

May I please have some help!? I would like the "stance" animation to stop when I "move" though.!

0
StateChanged of humanoid. LawlR 182 — 5y
0
I know there is a state changed but wich on do I use runnong or physics? I dont know which state typr to use........ Tizzel40 243 — 5y
0
humanoid.Running User#24403 69 — 5y
0
oh ok thank you so much Tizzel40 243 — 5y

Answer this question