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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: @droid

Previous Thread :: Next Thread 
DrAgonmoray is not online. DrAgonmoray
Joined: 29 Jul 2008
Total Posts: 17428
29 Jul 2012 08:05 PM
how are babies made help me plz
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
29 Jul 2012 08:06 PM
Blame John.
Report Abuse
Joalmo is not online. Joalmo
Joined: 28 Jun 2009
Total Posts: 1160
29 Jul 2012 08:07 PM
LOL
Report Abuse
DrAgonmoray is not online. DrAgonmoray
Joined: 29 Jul 2008
Total Posts: 17428
29 Jul 2012 08:08 PM
hey, i just noticed, i've been on roblox for 4 years today

e.e
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
29 Jul 2012 08:10 PM
Lolol :P, nearly 5 years for me o.o
Report Abuse
Joalmo is not online. Joalmo
Joined: 28 Jun 2009
Total Posts: 1160
29 Jul 2012 08:10 PM
Happy anniversary.
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
29 Jul 2012 08:19 PM
do {
dr01d3k4.makeSandwich("Chicken");
} while (!dr01d3k4.isFull());
Report Abuse
randomguy99 is not online. randomguy99
Joined: 21 Jul 2008
Total Posts: 4241
29 Jul 2012 08:25 PM
chicken = Instance.new("Chicken")
chicken.Parent = "Egg"
chicken.BakeTime=repeat wait(1) print("i") until chicken.Color = BrickColor.new("Golden brown")
chicken.Deliciousness = 9001


CHICKEN SCRIPT
Report Abuse
omzig is not online. omzig
Joined: 18 Jun 2008
Total Posts: 578
29 Jul 2012 08:27 PM
Much easier than that...


x = Instance.new("Baby")

x.Parent = game.Workspace.Mom.Stomach
Report Abuse
randomguy99 is not online. randomguy99
Joined: 21 Jul 2008
Total Posts: 4241
29 Jul 2012 08:29 PM
Appreciate my scripting skills!
Report Abuse
omzig is not online. omzig
Joined: 18 Jun 2008
Total Posts: 578
29 Jul 2012 08:30 PM
I'll appreciate by passing it on in a demoinc way. *how sad

Baby.Delicousness = 9001
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
29 Jul 2012 08:31 PM
Bored:

public Enum SandwichFilling { JAM, CHICKEN, HAM, ICECREAM };

public class Sandwich {
public SandwichFilling filling;

public Sandwich(SandwichFilling sf) {
filling = sf;
}
}


public class Person {
public String name;
public boolean hasAte;

public Person(String n) {
name = n;
hasAte = false;
}

public Sandwich makeSandwich(SandwichFilling sf) {
hasAte = true;
return new Sandwich(sf);
}

public boolean isHungry() {
return !hasAte;
}
}

public class dr01d3k4 extends Person {
public dr01d3k4() {
super("dr01d3k4");
}

@Override
public boolean isHungry() {
return true;
}
}

public class World {
public static void main(String[] args) {
dr01d3k4 me = new dr01d3k4();
do {
dr01d3k4.makeSandwich(SandwichFilling.CHICKEN);
} while (!dr01d3k4.isHungry());
}
}
Report Abuse
omzig is not online. omzig
Joined: 18 Jun 2008
Total Posts: 578
29 Jul 2012 08:32 PM
Droid has to win at everything. :(
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
29 Jul 2012 08:33 PM
Omzig omzig = new Person("Omzig");
omzig.winAt(Olypmics.EggAndSpoonRace);
Report Abuse
Monkey1234567890123 is not online. Monkey1234567890123
Joined: 24 Oct 2009
Total Posts: 327
29 Jul 2012 08:33 PM
@Line 47 !dr01d3k4:isHungry()
Report Abuse
omzig is not online. omzig
Joined: 18 Jun 2008
Total Posts: 578
29 Jul 2012 08:35 PM
Yes, I've won!

if Droid.Winner.Value==1 then

Droid.Loser.Value=0

end

--1=True 0=False

--No way of winning.
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
29 Jul 2012 08:35 PM
@Monkey: What?


Doh, I forgot to add a Person::eatSandwich(Sandwich sandwich) method. Meh, I'll make it after eating my actual sandwich :P
Report Abuse
Monkey1234567890123 is not online. Monkey1234567890123
Joined: 24 Oct 2009
Total Posts: 327
29 Jul 2012 08:38 PM
isHungry is not a member of dr01d3k4... Hunger would be but i changed it to :isHungry which is a valid method :P
Report Abuse
omzig is not online. omzig
Joined: 18 Jun 2008
Total Posts: 578
29 Jul 2012 08:39 PM
Ah, let me rewrite this. c:

if Droid.Winner.Value==1 then

Droid.Winner.Value=0

end

if Droid.Winner.Value==0 then
Print("Droid is a loser!")

else

Print("Droid is still a loser!")

end

Yes!
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
29 Jul 2012 08:39 PM
This is Java, not Lua. I declared the isHungry method and overwrote it from the Parent superclass.
Report Abuse
omzig is not online. omzig
Joined: 18 Jun 2008
Total Posts: 578
29 Jul 2012 08:40 PM
This is roblox though, we despise Java and all those who know Java.
Report Abuse
Monkey1234567890123 is not online. Monkey1234567890123
Joined: 24 Oct 2009
Total Posts: 327
29 Jul 2012 08:41 PM
Ahh i see it(I dont know Java 0.o)
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
29 Jul 2012 08:41 PM
But Java is <3!!!! D:
Report Abuse
Joalmo is not online. Joalmo
Joined: 28 Jun 2009
Total Posts: 1160
04 Aug 2012 08:23 PM
Java and C++ are too similar
Report Abuse
pwnedu46 is not online. pwnedu46
Joined: 23 May 2009
Total Posts: 7534
04 Aug 2012 08:28 PM
"This is roblox though, we despise Java and all those who know Java."

No, I love Java and all those who know Java.

<​3 Java.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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