So i'm working on a game where you can toggle a button and it will infinitely spawn timed bombs and you have to avoid the timed bombs, But i'm not sure how i could do this.
How could i make a bomb spawner?
2 answers
Hello, I’m here to help you make a bomb in ROBLOX Studio :)
First of Insert a Part, Did that? Ok now, Insert a script into that Part, (Make sure it is named Part) Now insert this script below... Make sure the object your blowing up is NOT Anchored.
Wait(5)
local explosion = Instance.new("Explosion",game.Workspace)
explosion.BlastPressure = 100000
explosion.BlastRadius = 10000
explosion.ExplosionType = "NoCraters"
explosion.Position = game.Workspace.Part.Position
game.Workspace.Part:Destroy()
If you want to blow up something like a HUGE school, then copy this script down below...
Wait(5)
local explosion = Instance.new("Explosion",game.Workspace)
explosion.BlastPressure = 100000
explosion.BlastRadius = 1000
explosion.ExplosionType = "NoCraters"
explosion.Position = game.Workspace.Part.Position
game.Workspace.Part:Destroy()
Happy to help! Please accept and upvote if helped! :)
It looks like you are new! So I'll explain. First off, you would have to make a bomb model. make it unanchored so physics applies. Also, parent the bomb to ServerStorage. Position the bomb to whereever you want. Second, this ModuleScript would need to be parented to the bomb:
wait() -- The amount of seconds you want the delay to be
local explosion = Instance.new("Explosion")
explosion.BlastRadius = -- Set blast radius
explosion.BlastPressure = -- Set the amount of force applied to parts in BlastRadius
explosion.Parent = script.Parent
return "Success"
In the Workspace, make this normal script:
while true do
wait() -- Seconds until another bomb spawns
local clone = ServerStorage.Bomb:Clone()
clone.Parent = game.Workspace
local script1 = require(clone.ModuleScript)
clone:Destroy()
end
Have fun!
1 comment
Where did you learn how to script?
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
This isn't a request site, if you want to make a bomb spawner try looking up about "instance.new" and explosions, as well as "game:GetService("Debris")"