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

How Do I make a repeating explosion?

Asked by
Moosee 62
8 years ago

So I've tried and made a repeating explosion, but it doesnt work, I don't really understand whats not working with it, may I get some help?

while true do
local explosion = Instance.new('Explosion', Workspace)

explosion.Position = Vector3.new(0.525, 48.188, 175.8)

explosion.BlastPressure = 0

explosion.Radius = 6

explosion.ExplosionType = Enum.ExplosionType.NoCraters
wait(0.2)
end

1 answer

Log in to vote
2
Answered by 8 years ago

The problem is just a silly little syntax error.

On line 8 in the original script, you set the Radius of the explosion to 6, but that's wrong.

The Explosion object has no property called Radius, but rather a property called BlastRadius.

So we can fix your script like so:

while true do
local explosion = Instance.new('Explosion', Workspace)

explosion.Position = Vector3.new(0.525, 48.188, 175.8)

explosion.BlastPressure = 0

explosion.BlastRadius = 6

explosion.ExplosionType = Enum.ExplosionType.NoCraters
wait(0.2)
end

Hope this helped!

Ad

Answer this question