Ok, so in scripting you use
Baseplate = game.Workspace.Baseplate
To do stuff easier but... What is the difference between that
local Baseplate = game.Workspace.Baseplate
and this?? please help. :D
Ok, so in scripting you use
Baseplate = game.Workspace.Baseplate
To do stuff easier but... What is the difference between that
local Baseplate = game.Workspace.Baseplate
and this?? please help. :D
You can only use the local in the script it is defined in.
This discussion is preserved as it was. New answers, comments, and votes are closed.
6 comments
What???
If you say something like "local v=Workspace" then you can only use the variable for scripting in that script.
Oh, taking a guess, you can use variables in different scripts?! Like declare one in one script and use it in another? But local is only in that script? Or opposite or neither?
You can only use a local in the script you defined it in.
Okee.... I think. :)
Not the script, it's the chunk of code, or scope. http://wiki.roblox.com/index.php/Variables#Variable_Scopes All variables defined in a script are only to that script, unless you're talking about _G.