EvanM333
|
  |
| Joined: 20 Jun 2012 |
| Total Posts: 50 |
|
|
| 28 Jun 2016 03:35 PM |
| I need a code that will clear the debris on the map. My game involves wrecking cars. But when they are all damaged i need a script that will clean it up after 30 seconds. |
|
|
| Report Abuse |
|
|
xmenoZ
|
  |
| Joined: 25 Jun 2016 |
| Total Posts: 408 |
|
|
| 28 Jun 2016 03:39 PM |
| Free model, anti lag scripts do that job. |
|
|
| Report Abuse |
|
|
EvanM333
|
  |
| Joined: 20 Jun 2012 |
| Total Posts: 50 |
|
|
| 28 Jun 2016 03:40 PM |
| But i hate using free models! |
|
|
| Report Abuse |
|
|
|
| 28 Jun 2016 03:41 PM |
Asking for someone else to make it for you is the same thing as free modeling.
|
|
|
| Report Abuse |
|
|
EvanM333
|
  |
| Joined: 20 Jun 2012 |
| Total Posts: 50 |
|
| |
|
| |
|
EvanM333
|
  |
| Joined: 20 Jun 2012 |
| Total Posts: 50 |
|
|
| 28 Jun 2016 03:44 PM |
This is what i have:
Anti_Lag = false -- Make it true to work, false to not.
sequence = {"Mesh", "Debris", "Enable/Disable"} function AL() for i = 1, #sequence do if Anti_Lag == true then for i, s in pairs(game.Workspace:GetChildren()) do if s:IsA("Part") then local mesh = Instance.new("BlockMesh", s) print("Sequence1 Done") wait(0.1) local D = Instance.new("Debris",game) D.MaxItems = 100000000 print("Sequence2 Done") wait(0.1) game.workspace.HoloScript.Disabled = false wait(5) game.workspace.HoloScript.Disabled = true wait(0.1) game.workspace.SkyScript.Disabled = false wait(20) game.workspace.SkyScript.Disabled = true print("Sequence3 Done") end end end end end AL() |
|
|
| Report Abuse |
|
|
EvanM333
|
  |
| Joined: 20 Jun 2012 |
| Total Posts: 50 |
|
|
| 28 Jun 2016 03:47 PM |
| And all the free models don't work |
|
|
| Report Abuse |
|
|