Anti-Exploit Measures for a Roblox Game

My game, Claw Machine Arcade, has been subject to exploiters abusing its systems, allowing them to earn unusually large amounts of in-game currency.

In order to counter this, generally where could vulnerabilities exist in my code? This can be anything, from RemoteEvents to LocalScripts for example.

Thanks! :slight_smile:

Rookie mistake, had this happen to me before on my first game. You dont have enough checks on the remoteevent that gives people the currency. Theres no cooldown or wait period, exploiters can just spam it an infinite amount of times. Add cool down checks on both the client and server so you cant call the remote more than once every 10 seconds and no more than 5 within a 10 minute period or something like that. Also add a check to see if players spam the remote too many times in a short period it will automatically kick them from the game.

Is there any way to check the legitimacy of a RemoteEvent? Would it be better avoid using them overall with important transactions?

Is it also a bad practice to handle in-game currency transactions in LocalScripts?

Yes, it is one-hundred percent, do not handle them directly in localscripts as exploiters can rewrite the script and make it give them whatever it is they’re buying infinitely/for free.