How to make player immunity to all attack

how to make player immunity to all attack and not getting damage

Add the player to a table and check it the humanoid you are trying to damage is in said table.

if player is in the table don’t damage, else damage :slight_smile:

how to auctally use table? and add them

???

local table = {};

table[Player] = Character.Humanoid

Here are some other options if you’re using gear and other third-party assets:

--Infinite health
Character.Humanoid.MaxHealth = math.huge
Character.Humanoid.Health = math.huge

--Built-in ForceField
Instance.new('ForceField',Character)
--You can also set the ForceField to not be visible by disabling the "Visible" property
1 Like