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

How would I make a player immune to explosions?

So, I am wondering if it is possible to make players not die to explosions if they touch a part. So they get a explosion immunity effect once a part is touched.

So ONLY players with this effect don't die to explosions BUT can still die to PvP weapons! (Swords, Guns etc.)

If it is possible it will really help with my upcoming summer update for reworking a item in my current biggest game!

2 answers

There's a property in Explosions called "DestroyJointRadiusPercent". If you set it to 0 the explosion should do 0 damage to the player.

local explosion = Instance.new("Explosion")
explosion.DestroyJointRadiusPercent = 0
explosion.Parent = workspace

2 comments

0

Wouldn't this make players immune to PvP? (Swords, Guns etc.)

0

new answer

local explosion =                     --whateverexplosion

explosion.DestroyJointRadiusPercent = 0

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