|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
| |
|
| |
|
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 |
|
|
|
| 22 Mar 2013 05:57 PM |
ok tommy come up with harder challenge than that that was lame |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 22 Mar 2013 06:03 PM |
[ : :]<--- pizza head o3o? -[ ]- ..||
I miss my old look :| |
|
|
| Report Abuse |
|
|
dekkonot
|
  |
| Joined: 22 Dec 2010 |
| Total Posts: 6685 |
|
|
| 22 Mar 2013 06:06 PM |
NOT GOOD ENOUGH!
Reported for spam. |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2013 06:12 PM |
[ :~:]*t .-[ ]-.e ...||..a ......r ....* |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
| |
|
| |
|
UnAdmin
|
  |
| Joined: 10 Jul 2012 |
| Total Posts: 4706 |
|
| |
|
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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 22 Mar 2013 06:36 PM |
Thread proves OP can't script. OP himself proves he is a noob. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
| |
|