Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can a non-local script interact with a local script?

Asked by 10 years ago

Hey, I was wondering if a local script created Integer Values for a local player, then an a non-local script have access to those Integer Values?

1 answer

Log in to vote
0
Answered by
BlueTaslem 18071 Moderation Voter Administrator Community Moderator Super Administrator
10 years ago

If FilteringEnabled is off, then yes, under most conditions (Local parts being the exception).


If FilteringEnabled is on (which is the general recommendation from a security standpoint), LocalScript's cannot produce any instances which a global script can read.

Any communication then must be done using BindableFunctions and similar objects. These let you build functions which normal Script objects run, but that LocalScripts can call to safely perform actions.

Ad

Answer this question