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: Part not Allowed

Previous Thread :: Next Thread 
pokl1 is not online. pokl1
Joined: 03 Jun 2010
Total Posts: 183
18 Jun 2014 08:03 PM
What would I have to do so If anything In workspace like lets say Ice is there It will remove it in 0.5 or 1 Sec

I have tried
while true do
wiat (1)
game.Workspace.Ice:destroy()
end

But it won't work
Please help?
Report Abuse
Tynexx is not online. Tynexx
Joined: 11 Jul 2012
Total Posts: 1559
18 Jun 2014 08:09 PM
for _,v in pairs(game.Workspace:GetChildren()) do
if v.Name == "ice" then
v:Destroy()
end
end
Report Abuse
pokl1 is not online. pokl1
Joined: 03 Jun 2010
Total Posts: 183
18 Jun 2014 08:11 PM
Didin't work.
Report Abuse
Tynexx is not online. Tynexx
Joined: 11 Jul 2012
Total Posts: 1559
18 Jun 2014 08:17 PM
c = game.Workspace:GetChildren()
for i=1, #c do
if c[i].Name == "ice" then
c[i].ice:Destroy()
end
end
Report Abuse
pokl1 is not online. pokl1
Joined: 03 Jun 2010
Total Posts: 183
18 Jun 2014 08:23 PM
Still Nothing Is Working
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