|
| 27 Oct 2017 03:11 PM |
I need help fixing this,
I need to assign
left, back, forward, right, page1, page2.
ty
just give me one example and that'd be fine
|
|
|
| Report Abuse |
|
|
|
| 27 Oct 2017 03:12 PM |
| http://wiki.roblox.com/index.php?title=Script_analysis#W001:_Unknown_global_.27name.27 |
|
|
| Report Abuse |
|
|
|
| 27 Oct 2017 03:24 PM |
Like this? local obj = {game.StarterGui.ScreenGui.Frame.page1} obj.Name = 'page1'
|
|
|
| Report Abuse |
|
|
|
| 27 Oct 2017 03:27 PM |
The warning message is probably being displayed because your variables (left, back, forward, right, page1, page2) have not been defined anywhere before. Thus when you try to reference them, it's letting you know that those variables don't exist.
So the solution is to assign those variables. You assign a variable by using the "local" keyword followed by the variable name. For instance:
local left = blah.something.left
And you have to define all your variables like that before trying to use them. |
|
|
| Report Abuse |
|
|
| |
|