player = game.Players.LocalPlayer
mouse = player:GetMouse()
animation = script:WaitForChild("Put name of the animation inserted into this here")
enabled = true
mouse.Button1Down:connect(function()
if enabled then
enabled = false
local animationTrack = player.Character.Humanoid:LoadAnimation(animation)
animationTrack:Play()
wait(3)
enabled = true
animation:Stop()
end
end)
Put this script into a LocalScript..Then insert a animation inside. Make sure you exported your animation. Then copy the ID and paste that into 'Animation ID' in Properties.. Also, in the Script.. whatever you named the animation, put it inside the quotes^^^^ .. I had the same problem as you and this helped me. Also.. here's the video I watched to figure this out!
https://www.youtube.com/watch?v=aFJADlSyRrQ
3 comments
Could you clarify your problem?
What do you mean?
I answered below btw.