Is it possible to write an array into a variable, and then use it in different scripts? For example, I have an array that I want to write into a variable (Text, Number, Int, I do not know what to use), and then apply it in another script.
COMMUNITY QUESTION
Writing an array to a variable?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Remote functions could do the trick
You can use a BindableEvent instance to share data between scripts. One script will fire the event with the data, and the other can listen for it with :Connect(). http://wiki.roblox.com/index.php?title=API:Class/BindableEvent
Typically an array is assigned as a variable. Although you can turn the array directly into a string using JSON, (ref 1) as for sharing it between different scripts. You can easily do that with Bindable Events as pointed out by duckwit. Note that this only works between Server communication and would instead require Remote Events to communicate with the Client (ref 2). (1) http://wiki.roblox.com