The script seems the same in all of the 3 parts but the third one doesn’t execute or even print the
“count 3”. It looks basically identical to the last 2 versions of it and I think the problem lies in my debounce or the
count = count + 1
The script:
local function punch()
if db then return end
if count == 1 then
print("count 1")
print(1)
db = true
Combat1:Play()
count = count + 1
wait(0.5)
Combat1:Stop()
db = false
elseif count == 2 then
print("count 2")
if db == false then
db = true
print(2)
Combat2:Play()
count = count + 1
wait(0.5)
Combat2:Stop()
db = false
elseif count == 3 then
print("count 3")
if db == false then
db = true
print(3)
Combat3:Play()
wait(0.5)
Combat3:Stop()
db = false
end
end
end
end