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: Script Challenge

Previous Thread :: Next Thread 
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
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 is not online. DrSaint
Joined: 14 Oct 2009
Total Posts: 18429
18 Jun 2015 09:45 PM
game.Roblox = Quit
Report Abuse
DrSaint is not online. 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
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
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
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
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 is not online. ShungTzu
Joined: 14 Jun 2014
Total Posts: 959
18 Jun 2015 09:56 PM
What does "go through a userdata" mean?
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
18 Jun 2015 09:57 PM

newproxy(true) returns a userdata that you can use.
Report Abuse
ShungTzu is not online. 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 is not online. 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 is not online. ShungTzu
Joined: 14 Jun 2014
Total Posts: 959
18 Jun 2015 10:04 PM
Use for what?
Report Abuse
ShungTzu is not online. ShungTzu
Joined: 14 Jun 2014
Total Posts: 959
18 Jun 2015 10:06 PM
Maybe empty userdata can help us quit.
Report Abuse
ShungTzu is not online. 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
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
18 Jun 2015 11:02 PM

When you index a userdata the metatable fires __index ...
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