What do I do if I want to make it so that if I clicked again it would play my second animation that shows the left arm punching
local player = game.Players.LocalPlayer local mouse = player:GetMouse() local animation = script:WaitForChild("Animation1") enabled = true
mouse.Button1Down:Connect(function() if enabled then enabled = false
local animationTrack = player.Character.Humanoid:LoadAnimation(animation)
animationTrack:Play()
wait(1)
enabled = true
end
end)

3 comments
Thank you so much for answering this but can you explain the enabled and alternate boolean to me ( I'm still quite confused)
For the enabled bool: all we're doing is switching the boolean from true to false and from false to true every time the mouse is clicked.
For the alternate bool: It's the same thing you had. The term for it among programmers is "debounce" though.