Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 28 Aug 2015 11:07 PM |
Is there a way, to get a list of all main variables Roblox stores in the main environment? I do not mean script defined globals, but rather the standard main environment that includes things such as math, table, Instance, CFrame, UserSettings, etc.
I'm assuming I cannot do it via code, as that requires circumventing the metatable attached to main environment as well as a table/environment to iterate through. |
|
|
| Report Abuse |
|
|
|
| 28 Aug 2015 11:14 PM |
| you can look at the roblox wiki section for that |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 28 Aug 2015 11:30 PM |
| Roblox hid that in the global environment's metatable, which of course is locked. |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 29 Aug 2015 02:16 AM |
I've written a program which brute forces global variables:
os Game time string CFrame game Stats Version _G type error rawget rawset require getfenv getmetatable ipairs next pairs pcall setfenv setmetatable xpcall table math coroutine debug Enum workspace Vector2 Vector2int16 Vector3 Vector3int16 Region3 Region3int16 BrickColor Color3 Ray UDim UDim2 Rect Instance Workspace warn version Faces Axes UserSettings DebuggerManager shared print tick elapsedTime ElapsedTime wait Wait delay Delay ypcall spawn Spawn printidentity dofile loadfile loadstring load settings PluginManager LoadLibrary stats tostring NumberSequence NumberSequenceKeypoint NumberRange ColorSequence ColorSequenceKeypoint CellId assert collectgarbage gcinfo rawequal select tonumber unpack _VERSION newproxy |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 29 Aug 2015 02:17 AM |
| ooh looks like Rect is new |
|
|
| Report Abuse |
|
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 29 Aug 2015 02:38 AM |
Thank you! I've been scraping the wiki for ages and only had 83/86 Would it be possible to get copy of said program for future use?
It's kinda ridiculous that we have to brute force the environment just to know what's predefined for us, this really should be documented better.
i.e. LoadRobloxLibrary and UserSettings The former does not exist and the latter is no longer (or never was?) a protected function. |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2015 03:43 AM |
"It's kinda ridiculous that we have to brute force the environment just to know what's predefined for us, this really should be documented better."
Yeah, and the fact that trying to access a nonexistent member of a userdata errors. (Among others) I mean, what's up with that?! |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2015 03:52 AM |
its part of the fun. lol
:nbc me, omg |
|
|
| Report Abuse |
|
|
Sevrick
|
  |
| Joined: 22 Oct 2013 |
| Total Posts: 3846 |
|
|
| 29 Aug 2015 04:02 AM |
| twelfth gtfo you cannoT SCRIPT |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2015 04:03 AM |
:( but bb my gun
:nbc me, omg |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 29 Aug 2015 04:08 AM |
| @Causalist google roblox-global-variable-enumerator, should be the first result |
|
|
| Report Abuse |
|
|
| |
|