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
 

How could I use debris to remove cloned bricks?

Previous Thread :: Next Thread 
Addison011 is not online. Addison011
Joined: 26 Feb 2008
Total Posts: 451
30 May 2014 07:44 PM
Im building a build to survive place and I want the cloned bricks to be removed after the disaster. I have no clue how to do this but I heard that I could use debris? Please help :(
Report Abuse
Brickman2010 is not online. Brickman2010
Joined: 20 Nov 2009
Total Posts: 5547
30 May 2014 07:54 PM
game.debris:AddItem(PARTHERE,TIMEUNTILPARTREMOVES)

example;

Part = game.Workspace.Part

game.debris:AddItem(Part,6)

--this will delete "Part" after 6 seconds.
Report Abuse
Addison011 is not online. Addison011
Joined: 26 Feb 2008
Total Posts: 451
30 May 2014 07:56 PM
Thanks so much! I just make a new script? Sorry Im not that knowledgeable at scripting
Report Abuse
yurhomi10 is not online. yurhomi10
Joined: 10 Dec 2008
Total Posts: 13886
30 May 2014 07:56 PM
or like this

x = Instance.new("Part", Workspace)
game.Debris:AddItem(x, 5)
Report Abuse
Imacheeseburger is not online. Imacheeseburger
Joined: 16 Jun 2011
Total Posts: 142
30 May 2014 07:58 PM
Making a new script will cause it to fail. Say your script says somehting like this:
c=Workspace.Part:clone()
c.Parent=Workspace --You'd put it here:
game.Debris:AddItem(c,8) -- 8 seconds
Report Abuse
Addison011 is not online. Addison011
Joined: 26 Feb 2008
Total Posts: 451
30 May 2014 08:01 PM
But itll be cloned by a hopperbin clone tool
Report Abuse
Addison011 is not online. Addison011
Joined: 26 Feb 2008
Total Posts: 451
30 May 2014 08:04 PM
Like the cloned bricks used to build by the players
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