Anti Exploit Question

hi, I have a question about anti exploit script Is it possible to delete all scripts in my game with hack? if possible, Is there a way to prevent it?

1 Like

Yes, exploits can delete localscripts in your game.

1 Like

Maybe you can make the anti cheat scripts on the same scripts as the main ones so if someone deletes them the game is totally unplayable.

2 Likes

Server scripts (normal scripts) can’t be deleted, client scripts (local scripts) and module scripts can be deleted. There’s no way to prevent this from happening other then putting them in an inaccessible place, client scripts can’t work there but modules can, modules required by the client can’t be placed their either.

1 Like

oh i thought hackers can delete server scripts

Exploiters can delete any instance on their client, but this will not replicate to the server.

1 Like

They can delete them but it won’t have an effect, server scripts don’t rely on the client so deleting them from the client is just hiding the fact that they exist. They aren’t visible to them anymore but they still work just fine.

1 Like

My bad, They can delete loca/module scripts replicated to client. I’m pretty sure you can use Coroutine to wrap functions not linked to the script. Also be aware that everything under player’s character can get deleted by thier client (Including folders, values, baseparts, meshes, server scripts and everything else) if you dont have RejectCharacterDeletions enabled.

1 Like

This just makes it a little bit harder. Exploiters can manipulate upvalues (variables defined outside of a function but used in a it) and constants (for example in "print("Hello, world!") there are 2 constants which are "print" and "Hello, world" I don’t want to explain why print is a constant but remember that Roblox and lua functions will be constants) as well as module scripts and some other things, so putting everything in 1 place just makes it harder for you to read your code and a little bit harder for an exploiter to manipulate it. Best thing to do is to do everything logic related on the server through remotes and everything visual on the client (again through remotes)

1 Like

Thanks, for the reply, I’m not too much into anti cheats so I just said this thinking it would help but if there’s a better solution then I don’t mind having my solution removed.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.