0

# Why does this script not create and explosion?

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.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 — 9y

3
Everesty 1006
9 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 — 9y