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

How to make all explosions NoCraters?

explosion.ExplosionType = Enum.ExplosionType.NoCraters

I need to have a script that will disable the destruction of terrain.

1 answer

✓ Accepted answer

You could use a DescendantAdded event on workspace to detect when a new explosion is being created.

Then, repeat your code above.

workspace.DescendantAdded:Connect(function(explosion) --DescendantAdded event
	if explosion:IsA("Explosion") then --Check if it's an explosion
		explosion.ExplosionType = Enum.ExplosionType.NoCraters --Change it
	end
end)

1 comment

0

THANK YOU!

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