|
| 18 Jun 2015 09:43 PM |
Make an object.
+ Must be abstract to fit something + Must have 2 enumeration types + Has proper fields + Can be serialized + Must go through a userdata + Uses a metatable to do something + Must include get and set methods (as necessary) for all fields |
|
|
| Report Abuse |
|
|
DrSaint
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 18429 |
|
| |
|
DrSaint
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 18429 |
|
|
| 18 Jun 2015 09:46 PM |
| I CAN'T EVEN DO THAT RIGHT LMAO OK TIME TO LEAVE BYE |
|
|
| Report Abuse |
|
|
|
| 18 Jun 2015 09:46 PM |
"Must include get and set methods (as necessary) for all fields" Why? Roblox data types even have write-only properties! |
|
|
| Report Abuse |
|
|
|
| 18 Jun 2015 09:52 PM |
local Object = {}
Object.AField = 5
Object.SetAField = function(self, a) self.AField = a end
return Object
You were not thinking on the lines of a table. |
|
|
| Report Abuse |
|
|
ShungTzu
|
  |
| Joined: 14 Jun 2014 |
| Total Posts: 959 |
|
|
| 18 Jun 2015 09:56 PM |
| What does "go through a userdata" mean? |
|
|
| Report Abuse |
|
|
|
| 18 Jun 2015 09:57 PM |
newproxy(true) returns a userdata that you can use. |
|
|
| Report Abuse |
|
|
ShungTzu
|
  |
| Joined: 14 Jun 2014 |
| Total Posts: 959 |
|
|
| 18 Jun 2015 10:00 PM |
lol No, you can't. It would be:
game.Roblox:Quit() |
|
|
| Report Abuse |
|
|
DrSaint
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 18429 |
|
|
| 18 Jun 2015 10:02 PM |
@Shung
When u try to quit but u just change a non existent property
JustCrappyScripterThings |
|
|
| Report Abuse |
|
|
ShungTzu
|
  |
| Joined: 14 Jun 2014 |
| Total Posts: 959 |
|
| |
|
ShungTzu
|
  |
| Joined: 14 Jun 2014 |
| Total Posts: 959 |
|
|
| 18 Jun 2015 10:06 PM |
| Maybe empty userdata can help us quit. |
|
|
| Report Abuse |
|
|
ShungTzu
|
  |
| Joined: 14 Jun 2014 |
| Total Posts: 959 |
|
|
| 18 Jun 2015 10:13 PM |
| What made me ask was the "go through". I don't know what it would mean to 'go through' userdata. |
|
|
| Report Abuse |
|
|
|
| 18 Jun 2015 11:02 PM |
When you index a userdata the metatable fires __index ... |
|
|
| Report Abuse |
|
|