I want to make it so when you stop clicking for 1 second (or more) it resets the combo
mouse.Button1Down:connect(function()
if cooldown == true then return end
if combo == 0 then
cooldown = true
combo = 1
print("first m1")
m1:Play()
wait(.3)
game.ReplicatedStorage.Dmg:FireServer(leftarm,5,.8)
wait(.47)
cooldown = false
elseif combo == 1 then
cooldown = true
combo = 2
print("second m1")
m2:Play()
wait(.1)
game.ReplicatedStorage.Dmg:FireServer(rightarm,5,.3)
wait(.19)
cooldown = false
elseif combo == 2 then
cooldown = true
combo = 3
print("third m1")
m3:Play()
wait(.1)
game.ReplicatedStorage.Dmg:FireServer(leftarm,5,.3)
wait(.19)
cooldown = false
elseif combo == 3 then
cooldown = true
combo = 0
print("fourth m1")
m4:Play()
wait(.2)
game.ReplicatedStorage.Dmg:FireServer(leftleg,8,.3)
wait(1.5)
cooldown = false
end
end)

3 comments
It works perfectly! Thank you, I will make sure to note this in my head so I don't have to ask for help in the future, cheers.
No problem, keep asking questions
I don't suggest using spawns various reasons, use corountines instead.