Quantcast

How do i make an explosion?

Hello… so i wanna know how do i make an explosion effect like in the vent part in shutdown…

Anyone knows how to do it?

(Btw the explosion effect is controlled by an button function).

most likely a particle emitter

idk the script but i think you can make a particle with some smoke and fire effect, diable them and make the event string enable them quickly and disable. for sounds, use _Sound(button number)

I am dumb and do not know how

But I’m pretty sure you just have to place a time bomb

that’s literally the easiest thing you can do

local explosion = Instance.new("Explosion")
explosion.Position = --insert part position here
explosion.Parent = workspace

put that in the button function and change the explosion’s position to the part you want to explode’s position (the position must be a Vector3)

also if you want the explosion to not kill players, do:
explosion.DestroyJointRadiusPercent = 0

Uhhhhhhhhhhhhhhhhhhhhhhhhhhhh

1 Like

Do i have to put like this?

local explosion = Instance.new(“Explosion”)
explosion.Position = --insert part position here
explosion.Parent = workspace
explosion.DestroyJointRadiusPercent = 0

I’m sorry i’m very dumb

1 Like

Me too

1 Like

set that before setting the explosion’s parent, like so:

local explosion = Instance.new(“Explosion”)
explosion.Position = --insert part position here
explosion.DestroyJointRadiusPercent = 0
explosion.Parent = workspace

Ok and the part’s position is like this? -100 5 -200

OBS: It’s just an example

Oh and another question, do i have to name the part ‘Explosion’?

no, it must be a vector3
to make a vector3 you have to use one of it’s constructors
so you should do
explosion.Position = Vector3.new(-100,5,-200)

no
you can name it whatever you want

Ok thank you.