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

How would I make a player immune to explosions?

Asked by 4 years ago
Edited 4 years ago

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

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

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
0
Wouldn't this make players immune to PvP? (Swords, Guns etc.) roblox4kyle 25 — 4y
0
new answer laurenbtd5 379 — 4y
Ad
Log in to vote
-1
Answered by 4 years ago
local explosion =                     --whateverexplosion

explosion.DestroyJointRadiusPercent = 0

Answer this question