i have these items that do a pose when u click but they over lap when u click multiple times or use another pose. how do i make it so it stops the previous animation before starting the new one?
this is my code:
anime = script.Parent.name.Value
script.Parent.Selected:connect(function(m)
m.Button1Down:connect(function()
hum = game.Players.LocalPlayer.Character.Humanoid
anim_feet = hum:LoadAnimation(script.Parent.Animation)
current = anim_feet
current:Play()
end)
end)
** You are now Level 2! **