I have an invincibility feature inside my game that’ll negate all damage done to you through stuff like kill bricks. However, when I parent a ForceField to my character, wether it blocks damage seems to be up to chance. All of my scripts use TakeDamage() as I know that’s the only thing Force Fields block. Is this a bug or a problem on my part?
1 Like
You could check in your damage script if the player has a forcefield and not deal any damage if they do have one.
That would literally defeat the purpose of having a forcefield, which is to be able to cancel out damage without getting too complicated. I would rather not have to go and have to change all my scripts.
I thought you were using a forcefield to not have any damage dealt? Also use just one script for all killbricks. Also a simple if statement isn’t complicated at all.
-- If theres a ForceField inside the character, return
if Character:FindFirstChild("ForceField") then return end
Character.Humanoid:TakeDamage(100)
-- Or if you want to make sure they're dead
Character.Humanoid.Health = 0
1 Like
ForceFields
do indeed ignore TakeDamage
, but they don’t ignore direct setting of health. Double-check your scripts.
2 Likes