i'm end at this when i tried this script, i try to make my script cooldown and it's work but it's was delay like 2 seconds can somebody fix about this?
local tool = script.Parent
local anim = Instance.new("Animation")
anim.AnimationId = "http://www.roblox.com/Asset?ID=4437508277" --replace with id
local track
tool.Activated:Connect(function()
wait(2)
track = script.Parent.Parent.Humanoid:LoadAnimation(anim)
track.Priority = Enum.AnimationPriority.Action
track.Looped = false
track:Play()
end)
tool.Unequipped:Connect(function()
if track then
track:Stop()
end
end)

1 comment
Thanks