Blast Shelter Help

Hi there !
I made a missile plugin for my game.
I would like to make a blast shelter that will protect the players from the missile.
So, if a player is not in the shelter, he dies. But if the player is in the shelter, he survives.
I use this to kill the players (I didn’t make a blast shelter. Currently, there is no way to survive) :

for _,plr in next, game:GetService("Players"):GetPlayers() do
			if plr.Character and plr.Character then plr.Character:BreakJoints() end
		end

Can anyone help me ? Thank you

Use Touched events to detect entry of a player into the shelter, then add them to a list. When looping to break joints, if the player is in the list, don’t break theirs.

Alternate is also using Region3 to detect if the character is inside the enclosed bunker space.

1 Like

You can use :FindPartsInRegion3()
If the player is not in the region, simply kill them.
Else, don’t kill them.