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: Table to Userdata

Previous Thread :: Next Thread 
DarthStrantax is not online. DarthStrantax
Joined: 31 May 2011
Total Posts: 2610
18 Dec 2015 02:54 AM
function TtoU(t)
local r=newproxy(true)
getmetatable(r).__index=t
getmetatable(r).__newindex=function(_,i,v)rawset(t,i,v) end
getmetatable(r).__tostring=function()return tostring(t) end
getmetatable(r).__metatable=''
return r
end

_G=TtoU(_G)
print(type(_G))
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
18 Dec 2015 03:02 AM
misleading
Report Abuse
DarthStrantax is not online. DarthStrantax
Joined: 31 May 2011
Total Posts: 2610
18 Dec 2015 04:41 AM
good. its ment to be.
Report Abuse
chimmmihc is not online. chimmmihc
Joined: 24 Jul 2014
Total Posts: 2420
18 Dec 2015 05:58 AM
Ma user data I just a table of properties that description a object.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
18 Dec 2015 06:34 AM
Oh noes! It didn't work! What's wrong???


local t = setmetatable({},{__add=function()return'hi'end})

t = TtoU(t)
print(t+5)




IT ERRORRRRRRREDD


QQQQ HALPS MEH.
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