I've made a tool and an animation for my game but i can spam click the tool and the animation will spam replay every time i click can someone help me get it so it doesnt replay until i click it again after the animation is done?

local Tool = script.Parent local Animation = Tool.Animation

Tool.Activated:Connect(function() local Character = Tool.Parent local Humanoid = Character.Humanoid

local AnimationTrack = Humanoid:LoadAnimation(Animation)
AnimationTrack:Play()

end)

2 comments

0

Do post your code, it makes it easier for us.

0

heres the animation code