|
| 27 May 2017 08:17 AM |
So I need my bombs to keep going here is my script: explosion = Instance.new("Explosion") explosion.Position = game.Workspace.ExplosionPart.Position explosion.Parent = game.Workspace
We need to get the Children
children = game.Workspace:GetChildren() while true do for _, child in ipairs(children) do if child.Name == "ExplosionPart" then explosion = Instance.new("Explosion") explosion.Position = child.Position # explosion.Parent = game.Workspace end end wait(1) end
Here is the full Script!
function ExplodePart(part) if part.BrickColor == BrickColor.Red() then explosion = Instance.new("Explosion") explosion.Position = part.Position #explosion.Parent = game.Workspace part.BrickColor = BrickColor.White() else number = math.random(1,3) if number == 1 then part.BrickColor = BrickColor.Red() end end end children = game.Workspace:GetChildren() while true do for _, child in pairs(children) do if child.Name == "ExplosionPart" then ExplodePart(child) end end wait(1) end |
|
|
| Report Abuse |
|