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?
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