mouse.Button1Down:connect(function(mouse)
com = com + 1
if com == 1 then
Hit1Animation:Play()
canhit = true
wait(.3)
elseif com == 2 then
Hit2Animation:Play()
canhit = true
wait(.3)
elseif com == 3 and animating == false and canhit == false then
com = 0
Hit3Animation:Play()
canhit = true
end
end
end)
Everytime I use this it will only work one time. Any idea on why it is breaking?

3 comments
Edited for code block.
Can you add some print in and test which parts are being ran when and in what order, this will help narrow down the problem.
Try stopping the animation after it's done.