Animation Plays When Value hits 0?
Asked by
8 years ago Edited 8 years ago
Basically, I can't figure out how when a value hits 0, an animation loads into the player with the value that is 0. This is all I have for now, and yes the Animation is mine but it doesn't play.
01 | local plr = script.Parent.Parent |
02 | local char = plr.CharacterAdded:wait() |
03 | local player = workspace:findFirstChild(plr.Name) |
04 | local humanoid = player.Character.Humanoid |
07 | if plr.Ankles.Value < = 0 then |
08 | local anim = Instance.new( "Animation" ) |
10 | local playAnim = humanoid:LoadAnimation(anim) |