BTW: This is a Local Script in StarterGui / PlayerGui

local plr = script.Parent.Parent
local char=plr.CharacterAdded:wait()
local player=workspace:findFirstChild(plr.Name)
local humanoid = player.Character.Humanoid
 
while wait() do
    if plr.Ankles.Value == 100 then
local anim = Instance.new("Animation")
anim.AnimationId = "http://www.roblox.com/asset/?id=529177665"
        local playAnim = humanoid:LoadAnimation(anim)
        playAnim:Play()
        script.Sound:Play()
    plr.Ankles.Value=0 -- Resets the Value back to where they wont continuously fall
	end
end

Basically, when the Value hits 100, it's supposed to enter a animation in the player to fall. Help?

3 comments

0

What are your errors/problems? Also, try using the Changed event by connecting it to a function.

0

quick thing instead of using while wait() use plr.Ankles.Changed

0

Please post what is not happening and what the output says.