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

How to pervent craters from forming in explosion?

Asked by
Xyternal 247 Moderation Voter
3 years ago

I have a cannon that fires cannonballs, and when they touch the terrain, they make dents. Is it possible to prevent this WITH USING A SERVER SCRIPT? Please help, answers appreciated.

1
Do they deal damage to a player or a humanoid? Because if so, then you can't use BlastPressure to solve this. 2_MMZ 1059 — 3y
0
Yeah, it kills the humanoid. Xyternal 247 — 3y

1 answer

Log in to vote
1
Answered by
RAFA1608 543 Moderation Voter
3 years ago
Edited 3 years ago

Hello!

Have you checked the properties of the Explosion instance yet? It includes a property, ExplosionType, that you can set to either NoCraters, Craters or CratersAndDebris. You can set it to NoCraters to prevent it from damaging terrain.

If you are still confused, check the developer reference here and here.

I hope this helps!

P.S. Here is how you can do it in a server script:

--Pretend that this is a server script, thanks.
local explosion = Instance.new("Explosion")
explosion.ExplosionType = Enum.ExplosionType.NoCraters
0
Thank you mate, appreciate your help. Let me test it out tomorrow. Thanks for answering! Xyternal 247 — 3y
Ad

Answer this question