Excellent explanation! There’s something I’d like a clarification on. For instance, a LocalScript can put a function inside _G
and then this function could be called by a thread of any identity, such as the command bar. This function would then run under the caller’s identity. Correct me if I’m wrong, but I believe _G
and other shared tables are shared among all identities. So this would mean that code in LocalScripts does not necessarily run under identity 2.
1 Like