I want to make player not able to read local scripts but i have no idea. Can someone help me?
Unfortunately, players can read local scripts with exploits because the local scripts are on the client, so there is no way to prevent players from reading local scripts.
There is no way to prevent exploiters from viewing your local script, but you can prevent them from reading/understanding your local script, you can try obfuscating your script. Obfuscation basically makes your script really really weird and unreadable, but a computer can still read it.
Gonna be honest, never rely on obfuscation.
Relying on the “security through obscurity” claim is terrible, as it slows down your game and people can still dump constants and/or de-obfuscate.
There isn’t a way to prevent this, just that people reading the scripts will have a hard time reading it since it isn’t fully decompiled. (its impossible at the moment)
Impossible. Nothing else to say about it. Everything on the client is visible to the user down to the binary level, nothing you can do.
Sadly you can’t. This happens everywhere. Just a bit harder for .exe
since everything is in machine code and people can only decompile it up to the source language level with really weird variable names and really really really really weird code (that exist because of compiler optimizations).
You can only obfuscate, but obfuscation as mentioned by @‌Death_Blows it is not safe as people can still know what it’s doing.
You should not worry about these things in general :‌‌)
Oh alright, I never knew about that! Thanks for informing.