Tab Glitch prevents the Remote Event from firing (Client)

So I’m making a game where i fire a remote event from Server to Client then wait a little then again to Server (Server → Client Wait A Little → Server) if the player uses Tab Glitch while the the client “Waiting” it’ll file only after the player stop tab glitching event if the wait ended.
The local script looks something like this:

remote.OnClientEvent:Connect(function()
   task.wait(3) -- Wait 3 seconds
   remote2:FireServer() --Won't fire until the player stops tab glitching!
end)

I’m searching for a solution for this problem.

1 Like

Add task.wait() to your server script. I’m afraid there is no way around this, because tab glitch completely freezes the client’s work.

Also I’m not sure if this will work, but try something like this:

remote.OnClientEvent:Connect(function()
	task.delay(3, function() -- Wait 3 seconds
		remote2:FireServer() --Won't fire until the player stops tab glitching!
	end
end)

Thanks for the response, I already tried that sadly it’s not working.