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

Linked Source how to use properly?

Asked by
lomo0987 250 Moderation Voter
9 years ago

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?

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. ProtectedMethod 105 — 9y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

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

Ad

Answer this question