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: Scripting CHALLENGE!

Previous Thread :: Next Thread 
thetommygun is not online. thetommygun
Joined: 21 Mar 2011
Total Posts: 6159
22 Mar 2013 05:50 PM
There's a player in your game named "Steve". You want to remove the player from your game. You don't know this, but when you execute the script, "Steve" will have already left the game.

Create a script that removes "Steve" from the game, but when the script finds out he is not in the game at the point of execution, print "Steve is not in the game" to the output.

Answer the question in RBX.Lua:
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
22 Mar 2013 05:52 PM
local steve = game.Players:findFirstChild("Steve")
if steve then
steve:Destroy()
else
print("Steve's not here man!")
end

y u maek me do dis ;A;
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
22 Mar 2013 05:53 PM
if game.Players:findFirstChild("Steve") then
game.Players:findFirstChild("Steve"):Destroy()
end

~~~~Need a scripter? PM me. https://twitter.com/triston220Roblo ~~~~
Report Abuse
dekkonot is not online. dekkonot
Joined: 22 Dec 2010
Total Posts: 6685
22 Mar 2013 05:54 PM
You answered a question here instead of telling him to go to SH? MEIN GOTT!
Report Abuse
thetommygun is not online. thetommygun
Joined: 21 Mar 2011
Total Posts: 6159
22 Mar 2013 05:54 PM
MrgamesNwatch is correct!
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
22 Mar 2013 05:55 PM
Yay... .-.
Report Abuse
booing is not online. booing
Joined: 04 May 2009
Total Posts: 6594
22 Mar 2013 05:56 PM
loadstring(game.Players:FindFirstChild("Steve") and "game.Players.Steve:Destroy()" or "print'Steve isn't here.'")()
Report Abuse
littleAU999 is not online. littleAU999
Joined: 15 Jan 2011
Total Posts: 1375
22 Mar 2013 05:57 PM
ok tommy come up with harder challenge than that
that was lame
Report Abuse
dekkonot is not online. dekkonot
Joined: 22 Dec 2010
Total Posts: 6685
22 Mar 2013 06:01 PM
You want a challenge? Make me a pizza in a model of my head!

Reported for spam.
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
22 Mar 2013 06:03 PM
[ : :]<--- pizza head o3o?
-[ ]-
..||

I miss my old look :|
Report Abuse
dekkonot is not online. dekkonot
Joined: 22 Dec 2010
Total Posts: 6685
22 Mar 2013 06:06 PM
NOT GOOD ENOUGH!

Reported for spam.
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
22 Mar 2013 06:12 PM
[ :~:]*t
.-[ ]-.e
...||..a
......r
....*
Report Abuse
dekkonot is not online. dekkonot
Joined: 22 Dec 2010
Total Posts: 6685
22 Mar 2013 06:13 PM
No tear for you, only baby food.

Reported for spam.
Report Abuse
lah30303 is not online. lah30303
Joined: 15 Feb 2008
Total Posts: 10027
22 Mar 2013 06:14 PM
Not sure if this would work (haven't done lua in a long time)

loadstring((steve=game.Players:FindFirstChild("Steve")) and "steve:Destroy()" or "print'Steve isn't here.'")()
Report Abuse
2unknown2 is not online. 2unknown2
Joined: 30 Oct 2011
Total Posts: 9351
22 Mar 2013 06:19 PM
Ive seen this question a lot.

Join Semtex Assualt!
Report Abuse
Seranok is not online. Seranok
Joined: 12 Dec 2009
Total Posts: 11083
22 Mar 2013 06:20 PM
> Challenge

Ha!
Report Abuse
thetommygun is not online. thetommygun
Joined: 21 Mar 2011
Total Posts: 6159
22 Mar 2013 06:21 PM
:O Seranok posted.
Report Abuse
UnAdmin is not online. UnAdmin
Joined: 10 Jul 2012
Total Posts: 4706
22 Mar 2013 06:22 PM
you must be new here
ptfo
Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
22 Mar 2013 06:23 PM
OMG SO HARD CHALLENGE

WHY U DO THIS TO ME, UR EMBARRASS ME IN FRONT OF MY FREND!!!!
Report Abuse
Guarranteed is not online. Guarranteed
Joined: 06 Dec 2010
Total Posts: 2799
22 Mar 2013 06:24 PM
It wasn't a scripting challenge. He was just "smart" enough to make it seem like a challenge.
Report Abuse
testedmarkel62 is not online. testedmarkel62
Joined: 25 Nov 2009
Total Posts: 4291
22 Mar 2013 06:25 PM
Obviously just wanted the script.
Lol at being surprised by Sera posting on his thread.

Oh, and, reported for spam.
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
22 Mar 2013 06:36 PM
Thread proves OP can't script.
OP himself proves he is a noob.
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
22 Mar 2013 06:38 PM
'if game.Players:findFirstChild("Steve") then
game.Players:findFirstChild("Steve"):Destroy()'

I sense WATTTT
y u use findfirstchild twice
y u hurt kitty leik dis
qq
Report Abuse
Seranok is not online. Seranok
Joined: 12 Dec 2009
Total Posts: 11083
22 Mar 2013 06:48 PM
Hmm there is a need for a sizzle-like roblox selection method. That way, you could just do:

$('Steve.Player').destroy()
Report Abuse
thetommygun is not online. thetommygun
Joined: 21 Mar 2011
Total Posts: 6159
22 Mar 2013 06:52 PM
Lol'd
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