I dont know why this doesnt work can someone explain me how to fix it ?
local tool = script.Parent
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://106833537814736"
local debounce = false
tool.Activated:Connect(function()
if debounce == false then
debounce = true
tool.Parent:FindFirstChild("Humanoid").Animator:LoadAnimation(animation):Play()
wait(3)
debounce = false
end
end)