Basically I got help with the thing but like I need to know how to put the third animation to the script. I already set the local for the third animation. What I have so far:

local tool = script.Parent local attack1 = tool:WaitForChild("Attack1") local attack2 = tool:WaitForChild("Attack2") local attack3 = tool:WaitForChild("Attack3")

local player = game.Players.LocalPlayer

local lastAttack = tick()

tool.Activated:Connect(function () if tick() - lastAttack < 1 then local animation = player.Character.Humanoid:LoadAnimation(attack2) animation:Play() else local animation = player.Character.Humanoid:LoadAnimation(attack1) animation:Play() lastAttack = tick() end end)

also im new to this site so hi