There is a big bug in my game, so I decided to ask the users of the DevForum for help .
I have a simple clicker button that when you click, it gives you a click.
This is a very simple button. When you click the button, I fire a remote event from the client to the server and I add clicks to the player’s leaderstats. Simple…
For some reason, in-game, when multiple people are playing, you cannot click at the exact same time as another person.
I tested this is one of my friends. I made him use a slow auto clicker in my game. Because he clicks so fast, I have no chance to click because he is auto clicking?
game.ReplicatedStorage.EggHatchingRemotes.GiveClicks.OnServerEvent:Connect(function(player)
if db == true then
local goUpBy = ((1 * tonumber(player.Values.Multiplier1.Value)) + player.RebirthMultiplier.Value)
db = false
player.leaderstats.Clicks.Value += goUpBy
player.TotalClicks.Value += goUpBy
wait(timeCooldown)
db = true
end
end)