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

How do I change the value of the explosion in this script?

Asked by 6 years ago

local explosionPart = script.Parent

local explosion = Instance.new("Explosion", game.Workspace)

explosion.Position = explosionPart.Position

explosionPart:Destroy()


I have successfully made a missile using this script. I have made other scripts that allow it to be fired from a closed tube and to prevent it from explosion instantly, but that is not the point of this question.

How would I change the values of the explosion? blast radius, etc.

0
A problem I faced was that I had to set the explosion's position before I parented the explosion. Try and see if that's the issue. TheeDeathCaster 2368 — 6y
0
That is not my problem, I want to change values and I am not sure how. User#21139 0 — 6y

1 answer

Log in to vote
0
Answered by
Rhythic 36
6 years ago

If you’re looking for the properties of Explosion, you should start searching for the right one here:

http://wiki.roblox.com/index.php?title=API:Class/Explosion

Ad

Answer this question