Ad
Log in to vote
0

Why does this script not create and explosion?

Asked by 7 years ago
function NuclearSequence()
    game.Lighting.Ambient = Color3.new(190,109,0)
    game.Lighting.OutdoorAmbient = Color3.new(190,109,0)
    game.Lighting.Brightness = 150
    game.Lighting.FogEnd = 5
    k = Instance.new("Explosion", game.Workspace)
    k.ExplosionType = "NoCraters"
    k.BlastRadius = Vector3.new250000000000000000000
    k.BlastPressure = 2500
    k.Position = Vector3.new(0,13.6,0)
    for i=1,149 do
        game.Lighting.Brightness = game.Lighting.Brightness - 1
        game.Lighting.FogEnd = game.Lighting.FogEnd + 670
        wait(.5)
    end
    game.Lighting.Ambient = Color3.new(117,117,117)
    game.Lighting.OutdoorAmbient = Color3.new(128,128,128)
end

It creates no explosion, everything else works correctly.

0
Wait, I see that I have Vector3.new... I took that away and it still doesn't work. Ristone3 0 — 7y

3 answers

Log in to vote
3
Answered by
Everesty 1001 Moderation Voter
7 years ago

It does create an Explosion, but the BlastRadius is too high, so it is reset to 100. Explosions just don't go over 100, sadly.

1
The number also exceeds the maximum value of a signed 32-bit integer (http://en.wikipedia.org/wiki/2147483647) User#11893 186 — 7y
Ad
Log in to vote
0
Answered by 7 years ago
  1. It's a vector3 value, blastradius is a 32 bit integer.
  2. Explosions can't get that big.
Log in to vote
0
Answered by 1 year ago

f1t33n

Answer this question