How do i hide a folder for the client, from the client?

If this is the wrong topic for this, please tell me where i post such things

I want to achieve something that hides a specfic folder for the client, from the client, the issue is that i don’t know how to achieve this, i’ve tried already searching on the internet for any solution but can’t find any (my knowledge in english makes it sometimes impossible for me to find such things),

If someone could tell me if this is possible and if yes, how do i achieve it?

If I’m understanding you correctly; you can’t access something through the client if it’s not on the client/being replicated to the client :man_shrugging:

You can put it in ServerStorage. The contents of ServerStorage are inaccessible to the client.

Well i want it to run on the client, the folder i want to hide is an anit-cheat folder

You can’t hide client-sided anti-cheats on the client, they will always be able to access it. It’s on their client.

A small anti-cheat on the client is not bad, but shouldn’t be the main focus. Focus on securing your backend server which can’t be bypassed. Client-sided anti-cheats can easily be bypassed any day but they are effective in stopping skids who don’t know what they are doing.

Just put the folder under ServerStorage.
Anything under ServerStorage doesn’t load for the client, only for the server.

Well i’ve heard from multiple sources that exploiters can just delete these localscripts and they stop working

Like @sjr04 said, there’s not much you can do, if you’re that worried about exploiters, then try your best to run what you can on the server while “securing your backend server”; one thing you can do is try avoiding sending unnecessary parameters when communicating with the server

and that’s pretty much true, can’t do anything about it though

They can and there are 1.000.001 other ways they can do it.

I don’t think that’s possible anymore.
The best thing to do is integrate your antihax with your core localscripts.
That way, if they remove it, they also end up removing a lot of client side functionality.
Hopefully that’ll be enough to annoy them to stop.

1 Like

At the end of the day, the client always has full control, if it comes down to it and they’re good enough, they can bypass anything, so avoid making any systems that are client driven, that would include things such as cool-downs. I wouldn’t focus too much on exploiters anyway unless your game is going to be competitive.

2 Likes