Cooldown button for gui

I already have a cooldown code, however the player can bypass the cooldown by rejoining the game. Is it possible to have a cooldown even the player rejoins the game

debounce = true
debouncetime = 500

if debounce == true then
	debounce = false
	
	wait(debouncetime)
	debounce = true
end

(apoligise if the msg is kinda confusing)

1 Like

The reason the player can “bypass” the cool down is because when they rejoin the game, they get a new script making the cooldown true again. I would recommend using DataStoreService or MemoryStoreService (better option) if you want to make a cooldown system, preventing them from rejoining and avoiding the cooldown.