player = game.Players.LocalPlayer
mouse = player:GetMouse()
animation = script:WaitForChild("Animation")
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)
You put enabled to true at the start.
To make this script occur only when the tool is equipped, try this :
equipped = false script.Parent.Equipped:connect(function() equipped = true end
This is what i do with my scripts and it works.
Closed as Not Constructive by RubenKan and TheeDeathCaster
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?