So I'm making a new game that might have a shop system in it, and like all shops, it'll use a remote function. But since the client can access remote functions someone could hack the shop, and buy everything they please in it if they wanted. All I need is the method to stop players from hacking my future shop system
-Thanks for reading and any replies :)
Exploiters will always try and exploit your game, it's pretty much ROBLOX's fault for not having more measures against it, however since you mentioned you shop is going to use Remote Functions
you could do these things:
1.- Have a cooldown, if someone is firing the remote function with a while true do
loop have a wait()
inside the function
2.- If the exploiter requested an exaggerated amount of points/coins (1,000,000+) then you could put a limit inside your remote function to only give the exact limit you specified (100,000).
3.- Use DataStores
, they are Server-Side and exploiters can't really have any sort of access to them
That and the other method will not only stop the exploiter from firing the functions every frame, but it will also make the exploiting process much more dificult. As a general advice don't rely on the client for everything, use more Server-Side methods instead since exploiters can't access ROBLOX's servers.