Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How do I add a new explosion? And how do I edit it?

Asked by 3 years ago

hello! im wondering on how you can make a new explosion and edit it, such as how far and how strong

2 answers

Log in to vote
2
Answered by
2_MMZ 1059 Moderation Voter
3 years ago
Edited 3 years ago

You need to use Instance.new. This is how you'll do it:

local customexplosion = Instance.new("Explosion")
customexplosion.BlastRadius = --Number
customexplosion.BlastPressure = --Number
customexplosion.Visible = --your choice
customexplosion.Parent = --Put your part, or use workspace depending on some parts
customexplosion.Position = --put your location, ex: game.Workspace.Epart.Position
Ad
Log in to vote
0
Answered by
0hsa 193
3 years ago

something like this:

local explosion = Instance.new("Explosion")
explosion.Parent=workspace
explosion.BlastPressure=5*100000
explosion.BlastRadius=4
explosion.DestroyJointRadiusPercent=4
explosion.ExplosionType=Enum.ExplosionType.Craters
explosion.Position=Vector3.new(0,10,0)
wait(1)
explosion:destroy()

it explodes as soon as you create it!!

0
oh, someone answered already 0hsa 193 — 3y

Answer this question