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 » Scripting Helpers
Home Search
 

Re: Hat remover script doesn't work

Previous Thread :: Next Thread 
Usering is not online. 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
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
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 is not online. 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 is not online. 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
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
23 Aug 2012 07:44 PM
Knight, that would break, noob. XD.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
23 Aug 2012 07:45 PM
how so nub

And skateboards go in Workspace IIRC.

¤¤ †KMXD† ¤¤
Report Abuse
Usering is not online. 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
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
23 Aug 2012 07:47 PM
Derp, u forgot a do, so u also suck. and urs has more lagg

¤¤ †KMXD† ¤¤
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
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 is not online. Usering
Joined: 18 Aug 2012
Total Posts: 10281
23 Aug 2012 07:47 PM
lol qq

~repeat wait() until script.Parent:HasALife()
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
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 is not online. 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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
23 Aug 2012 07:49 PM
he didn't

¤¤ †KMXD† ¤¤
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
23 Aug 2012 08:13 PM
@Cease,
Knight > You*100
Report Abuse
BobbyisLOLZ is not online. BobbyisLOLZ
Joined: 17 Aug 2010
Total Posts: 8045
23 Aug 2012 08:14 PM
@mama

Everyone > you
Report Abuse
mamaguy is not online. 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
BobbyisLOLZ is not online. BobbyisLOLZ
Joined: 17 Aug 2010
Total Posts: 8045
23 Aug 2012 08:16 PM
Ever heard of a taste of your own medicine? :)
Report Abuse
Usering is not online. 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 is not online. 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
BobbyisLOLZ is not online. BobbyisLOLZ
Joined: 17 Aug 2010
Total Posts: 8045
23 Aug 2012 08:55 PM
Oh you haven't heard of it..
Report Abuse
EMAN381 is not online. 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
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
23 Aug 2012 09:22 PM
lol
Report Abuse
mamaguy is not online. 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
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