The difference between localscript and RunContext?

As far as I know, attackers can modify localscript, while they can’t modify script because it is executed outside of the player. However, if you install client in the script in RunContext, then an attacker can gain access to it and use it for their own purposes?

1 Like

LocalScripts and Scripts with the run context set to Client both execute on the client.

The difference is LocalScripts can only run under certain parents (StarterCharacterScripts, ReplicatedFirst, etc) whereas a script with a Client RunContext can run anywhere

4 Likes

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