while wait() do
if humanoid.MoveDirection.Magnitude == 0 then
print(“yesyes”)
script.Parent.Decal.Texture = “rbxassetid://rbxassetid://5813744553”
wait(0.5)
script.Parent.Decal.Texture = “rbxassetid://5813736561”
wait(0.5)
script.Parent.Decal.Texture = “rbxassetid://5813744107”
wait(0.5)
script.Parent.Decal.Texture = “rbxassetid://5813736561”
wait(0.5)
end
end
Nothing happens when I do this code. No errors ether. Thank you!
Okay, I fixed it. The problem was the speed argument, that is unnecessary. Aswell as you were defining the path to the humanoid wrong. If the script is in StarterCharacter (which i assume it is and if it is not you should put it there and remake the path to the brick) then the path to the humanoid is simply “script.Parent.Humanoid”
This is my real question.
Is there a way to have a loop and then break it randomly? For example, when you start running It starts the loop, but when you go idle it stops and breaks the loop.