local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:wait()
local hum = char:WaitForChild("Humanoid")
local mouse = plr:GetMouse()
local tool = script.Parent
local canattack = true
local choose = 1
tool.Activated:connect(function()
if choose == 1 and canattack == true then
choose = 2
canattack = false
local anim = hum:LoadAnimation(script.Punch1)
anim:Play()
wait(.5)
canattack = true
elseif choose == 2 and canattack == true then
choose = 1
canattack = false
local anim = hum:LoadAnimation(script.Punch2)
anim:Play()
wait(.5)
canattack = true
end
end)
whenever I click with the tool equipped the animations don't play. The system says there r no errors and the animation priorities are both action and non looped.

1 comment
I did