Talk:Global Functions: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy No edit summary |
>Sncplay42 No edit summary |
||
Line 10: | Line 10: | ||
print(foo) -- bar | print(foo) -- bar | ||
</pre>}}<sup><small><font color="grey">[[User:Camoy|Camoy]] • [[Special:Contributions/Camoy|Contribs]] (September 23 2010)</font></small></sup> | </pre>}}<sup><small><font color="grey">[[User:Camoy|Camoy]] • [[Special:Contributions/Camoy|Contribs]] (September 23 2010)</font></small></sup> | ||
::::No, that's the only functionality that's removed. --[[User:Sncplay42|SNCPlay42]] 21:23, 23 September 2010 (UTC) |
Revision as of 21:23, 23 September 2010
_G is no longer available. Is this not correct? Camoy • Contribs (September 23 2010)
- It works fine if you put _G. before writing to and reading from it. --SNCPlay42 21:18, 23 September 2010 (UTC)
- _G is available. And it is functional.
_G.x=9
repeat wait() until _G.x; local x=_G.x; print(x)
Example
_G.foo = "bar" print(foo) -- bar
Camoy • Contribs (September 23 2010)
- No, that's the only functionality that's removed. --SNCPlay42 21:23, 23 September 2010 (UTC)