First I would like to say I apologize for what I done earlier, Second I have a error with my script, the error is attempt to index nil with 'Parent'
local tool = script.Parent
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local character = player.Character
while character.Parent == nil do
character.AncestryChanged:Wait()
end
local leaderstats = player.leaderstats
local cooldown = 2
local ready = true
local humanoid = character:WaitForChild("Humanoid")
local animation = tool.Animation
local animationTrack = humanoid:LoadAnimation(animation)
tool.Activated:Connect(function()
if ready == true then
animationTrack:Play()
--animationTrack.Looped = true
print("Animation Played!")
leaderstats.Strength.Value = leaderstats.Strength.Value + 1
print("Strength Added!")
ready = false
animationTrack:Stop()
wait(cooldown)
print("Cooldown Done!")
ready = true
end
end)

4 comments
What line is it on?
What with the line 5-7???
You're not using debounce correctly, line 18-29.
Did you set the animation's priority to action?