|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 30 May 2014 08:01 PM |
| But itll be cloned by a hopperbin clone tool |
|
|
| Report Abuse |
|
|
|
| 30 May 2014 08:04 PM |
| Like the cloned bricks used to build by the players |
|
|
| Report Abuse |
|
|