2

# Explosions

With rockets and bombs, do force fields stop them from damaging the player. I dont think it does, is there a certain block of code you can insert to make the explosion not damage an FF'ed player?

7
trogyssy 221
9 years ago

The forcefield should prevent damage from the explosion itself.

If there are any additional scripts used to deal damage, make sure they go like this (I'll use 20 for an example):

pathtohumanoid:TakeDamage(20)


Rather than like this:

Humanoid.Health=Humanoid.Health-20


Or like this

Humanoid.Health=0

0
TakeDamage(20)* trogyssy 221 — 9y
2
Ok, so the FF stops player from taking damage but is useless when it sets a health. ConnorVIII 448 — 9y
0
Correct trogyssy 221 — 9y
4
DrJonJ 110
9 years ago

Not sure how helpful this is, but you could also set the BlastPressure to 0. Then it's just cosmetic and removes the need for a ForceField.

2
Does the explosion still do the damage though? ConnorVIII 448 — 9y
1
No it won't. :) DrJonJ 110 — 9y