RA2lover
|
  |
| Joined: 09 Nov 2008 |
| Total Posts: 1254 |
|
|
| 03 Feb 2014 06:25 PM |
is there a way to obtain the type of an userdata object in lua?
i've tried type, but it only returns "userdata". |
|
|
| Report Abuse |
|
|
|
| 03 Feb 2014 10:24 PM |
| Go to scripting helpers. Also, when you arrive at your destination please provide more information. Userdata can refer to Roblox objects such as Parts and Cameras or to API objects like Vector3s and CFrames, or even other things such as the arbitrary userdata objects provided by "newproxy()". Context is important. |
|
|
| Report Abuse |
|
|
suremark
|
  |
| Joined: 13 Nov 2007 |
| Total Posts: 6315 |
|
|
| 03 Feb 2014 10:58 PM |
ColourfulBody made a function for this: http://wiki.roblox.com/index.php/User:JulienDethurens/Scripts/Heading_code#is_a.28value.2C_data_type.29
It's super hacky, but it works. |
|
|
| Report Abuse |
|
|