Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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.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.

1 comment

0

Wait, I see that I have Vector3.new... I took that away and it still doesn't work.

3 answers

  1. It's a vector3 value, blastradius is a 32 bit integer.
  2. Explosions can't get that big.

This discussion is preserved as it was. New answers, comments, and votes are closed.