Usering
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 10281 |
|
|
| 23 Aug 2012 07:39 PM |
I'm not very good with pairs, but here it is:
for i, v in pairs(game.Debris:GetChildren()) do v:Destroy() wait() end
~repeat wait() until script.Parent:HasALife() |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2012 07:40 PM |
while wait(0.04) for i,v in pairs(game.Workspace:GetChildren()) do if v:IsA("Hat") then v:Destroy() end end end
|
|
|
| Report Abuse |
|
|
|
| 23 Aug 2012 07:42 PM |
psh loops? noob
Game.Workspace.ChildAdded:connect(function(Child) if not Child:IsA("Hat") then return end Child:Destroy() end
¤¤ †KMXD† ¤¤ |
|
|
| Report Abuse |
|
|
Usering
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 10281 |
|
|
| 23 Aug 2012 07:43 PM |
Thanks, but you forgot some stuff in your script. while wait(0.04) has no do. It works after fixing that.
~repeat wait() until script.Parent:HasALife() |
|
|
| Report Abuse |
|
|
Usering
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 10281 |
|
|
| 23 Aug 2012 07:44 PM |
Question: when skateboards drop, do they go into Debris or workspace?
~repeat wait() until script.Parent:HasALife() |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2012 07:44 PM |
| Knight, that would break, noob. XD. |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2012 07:45 PM |
how so nub
And skateboards go in Workspace IIRC.
¤¤ †KMXD† ¤¤ |
|
|
| Report Abuse |
|
|
Usering
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 10281 |
|
|
| 23 Aug 2012 07:46 PM |
@knight, actually you forgot an end)
Game.Workspace.ChildAdded:connect(function(Child) if not Child:IsA("Hat") then return end Child:Destroy() end end)
~repeat wait() until script.Parent:HasALife() |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2012 07:46 PM |
Game.Workspace.ChildAdded:connect(function(Child) if not Child:IsA("Hat") then return end Child:Destroy() end
-- no ) NOOB.
game.Workspace.ChildAdded:connect(function(Child) if not Child:IsA("Hat") then return end Child:Destroy() end) |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2012 07:47 PM |
Derp, u forgot a do, so u also suck. and urs has more lagg
¤¤ †KMXD† ¤¤ |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2012 07:47 PM |
| Use, that would break as well... EOF error. He just needed a ). Knight, also, my is more reliable. |
|
|
| Report Abuse |
|
|
Usering
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 10281 |
|
|
| 23 Aug 2012 07:47 PM |
lol qq
~repeat wait() until script.Parent:HasALife() |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2012 07:48 PM |
Thanks, Knight, but I'm better! XD.
while wait(0.04) do for i,v in pairs(game.Workspace:GetChildren()) do if v:IsA("Hat") then v:Destroy() end end end |
|
|
| Report Abuse |
|
|
Usering
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 10281 |
|
|
| 23 Aug 2012 07:48 PM |
@Ceasless, you forgot an end
game.Workspace.ChildAdded:connect(function(Child) if not Child:IsA("Hat") then return end Child:Destroy() end end)
~repeat wait() until script.Parent:HasALife() |
|
|
| Report Abuse |
|
|
| |
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
| |
|
| |
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 23 Aug 2012 08:15 PM |
@Bobby, Really, you need to copy my posts? Fail. Now get your own insults. |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2012 08:16 PM |
| Ever heard of a taste of your own medicine? :) |
|
|
| Report Abuse |
|
|
Usering
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 10281 |
|
|
| 23 Aug 2012 08:47 PM |
Oh, I didn't see the end of the if statement :P
~repeat wait() until script.Parent:HasALife() |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 23 Aug 2012 08:50 PM |
@Bobby, That'd be like pranking someone, Then pranking them back with a different prank, Not copying my insults. |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2012 08:55 PM |
| Oh you haven't heard of it.. |
|
|
| Report Abuse |
|
|
EMAN381
|
  |
| Joined: 27 Nov 2007 |
| Total Posts: 4300 |
|
|
| 23 Aug 2012 09:07 PM |
function GetNoobsOut() for i,v in pairs(Game.Players:GetChildren()) do if v.ClassName == "Noob" then v.Parent = game print("tr"..string.rep("ol",10).."o") end end end |
|
|
| Report Abuse |
|
|
| |
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 23 Aug 2012 09:47 PM |
| @Bobby I have, but you used it in the wrong context. |
|
|
| Report Abuse |
|
|