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

Why won't this script make 2 parts explode? [closed]

Asked by 8 years ago

Well, this is kind of a remix from my other question. My problem is, why won't this make 2 explosion parts explode?

while true do
    local expParts = script.Parent.ExplosionParts:GetChildren()
    local number = math.random(1, #expParts)
    local number2 = math.random(1, #expParts)
    local explosionPart2 = expParts[number2]
    local explosionPart = expParts[number]
    local script = game.Lighting.Script:Clone()
    local script2 = game.Lighting.Script:Clone()
    wait(0.5)
    local explosion = Instance.new("Explosion")
    explosion.BlastRadius = 25
    explosion.BlastPressure = 250000
    explosion.ExplosionType = Enum.ExplosionType.CratersAndDebris
    explosion.Parent = workspace
    explosion.Position = explosionPart.Position
    script.Parent = explosion
    local explosion2 = Instance.new("Explosion")
    explosion2.BlastRadius = 25
    explosion2.BlastPressure = 250000
    explosion2.ExplosionType = Enum.ExplosionType.CratersAndDebris
    explosion2.Parent = workspace
    explosion2.Position = explosionPart2.Position
    script2.Parent = explosion
end
0
I'm sitting here wondering why you need 24 lines to make two parts explode bosswalrus 84 — 8y
0
Try using DebrisService. mine248 40 — 8y
0
Don't worry guys, I fixed it! NeonicPlasma 181 — 8y

Locked by chess123mate and User#5978

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?