How would i create an area that make player have infinite health?

i want to do it inside a cancolide block

1 Like

How do you intend on the player standing inside a can collide part? For this I think you’d have to do a non collidable block using BasePart.Touched and BasePart.TouchEnded.

when the game detects someone is on the block, then make a function that sets the humanoid’s max health to like 999999 and set the health to the same value. then remove all weapons and damaging things when inside the part.

Use a Region3, set the maxHealth of the humanoid to a high number

The best way to do this is with region 3 and a whitelist. You would whitelist all of the players characters when they load, and then when one enters the region, you would create a forcefield object around them and make the visible property false.

PS. I do not suggest setting the max health very high to accomplish this, as the player will still take damage, just minimal amounts proportional to their max health. The forcefield will completely block out all damage.