I am trying to play animation but its not working, the script is working properly and there is no errors but its still not playing the animation.
local player = game.Players.LocalPlayer
local debounce = true
script.Parent.Activated:Connect(function()
if debounce == true then
local plr = script.Parent.Parent
local animation = plr.Humanoid:LoadAnimation(script.Parent.Animation)
animation:Play()
print("Tool Activated")
debounce = false
wait(1)
debounce = true
end
end)
