click.OnServerEvent:Connect(function(plr,attack) --Sword local combo = 1 if tick()-last > 2 or combo <= 4 then combo = 1 else if combo == 1 then end if combo == 2 then end if combo == 3 then end if combo == 4 then end combo = combo + 1 last = tick() print(combo) end end)
I'd assume that's because you are setting the variable to 1 every time the event is fired, so try using a table or IntValue to store individual player's combo counter
local comboCounter = {} local lastTick = {} game.Players.PlayerAdded:Connect(function(player) comboCounter[player] = 0 lastTick[player] = 0 end) click.OnServerEvent:Connect(function(player) if tick() - lastTick[player] > 2 or comboCounter[player] <= 4 then comboCounter[player] = 1 else if comboCounter[player] == 1 then end if comboCounter[player] == 2 then end if comboCounter[player] == 3 then end if comboCounter[player] == 4 then end comboCounter[player] =+ 1 lastTick[player] = tick() print(comboCounter[player]) end end)