generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Getting the properties from an object

Previous Thread :: Next Thread 
badfitz67 is not online. badfitz67
Joined: 03 Jun 2010
Total Posts: 13165
31 Aug 2016 04:59 PM
Yes; I know you can set properties by putting them into a table. But that's quite a lengthy process, especially if it has a lot of properties.

Is there some sort of way I can automatically put the properties of an object into a table?


All these questions have driven me into existential angst and I find myself beginning to question myself and my motives
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
31 Aug 2016 05:00 PM
i dont think you can get all the properties since the metatable for the objects are locked
Report Abuse
badfitz67 is not online. badfitz67
Joined: 03 Jun 2010
Total Posts: 13165
31 Aug 2016 05:01 PM
:((


All these questions have driven me into existential angst and I find myself beginning to question myself and my motives
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
31 Aug 2016 05:03 PM
yea sorry buddy

if the metatable was unlocked you could get every single property or function/event whatever inside of it (including functions)

for k,v in pairs(getmetatable(workspace).__index) do
print(k,v)
end

Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
31 Aug 2016 05:05 PM
sorry about 'including functions' i forgot to remove it

the other way without making tables is to use http service and DECODE THE HTML for this re-make

http://
anaminus.
github.
io
/api
/class
/INSERTCLASSNAME.
html
Report Abuse
badfitz67 is not online. badfitz67
Joined: 03 Jun 2010
Total Posts: 13165
31 Aug 2016 05:05 PM
i heard something about parsing the roblox api dump or whatever for the object but that is def overkill


All these questions have driven me into existential angst and I find myself beginning to question myself and my motives
Report Abuse
KreoBox is not online. KreoBox
Joined: 24 Aug 2016
Total Posts: 356
31 Aug 2016 05:07 PM
"i heard something about parsing the roblox api dump or whatever for the object but that is def overkill"

Hate to break it too you but not really. That is the only way to do this.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image