explosion.ExplosionType = Enum.ExplosionType.NoCraters
I need to have a script that will disable the destruction of terrain.
explosion.ExplosionType = Enum.ExplosionType.NoCraters
I need to have a script that will disable the destruction of terrain.
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
THANK YOU!