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.!

4 comments

0

StateChanged of humanoid.

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........

0

humanoid.Running

0

oh ok thank you so much