Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Linked Source how to use properly?

I've been recently been trying to use Linked Source for my scripts to reduce the amount of lag that can occur. I have looked on the wiki about it really doesn't provide what i'm looking for.

http://wiki.roblox.com/index.php?title=Linked_script

What i'm trying to find is how to do variables now due to script.(Bleh) doesn't work anymore.

Is there anything on the wiki that will provide a bit of information? If not, could someone provide a bit of information about it?

1 comment

0

Linked scripts aren't for reducing lag, they are for modulating code. Also, I don't know what you mean when you say that you are trying to "do variables now due to script. (Bleh)". Please revise your post to make it clearer.

1 answer

Global variables. Global variables can be accessed by any script or localscript (depending on what the global variable is defined in eg localscript or script). Example: Script A (Defining the variable): _G.Letters={'a','b','c'} Script B (Loading it): for i,v in pairs(_G.Letters) do print(v) end Intended console output: a b c

This discussion is preserved as it was. New answers, comments, and votes are closed.