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 » Scripters
Home Search
 

I want my Bomb Script too keep going

Previous Thread :: Next Thread 
RinxfulROBLOX is online. RinxfulROBLOX
Joined: 09 Feb 2017
Total Posts: 33
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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