How do you make a player die after time runs out?

Two functions that check what has touched and touchended with the sphere. when a humanoidrootpart touches it, add the player to the list, same with removing. When time is out just go through each player not in the list and kill them.

doesn’t the humanoid root part have to touch the area? this is the code:

local BoolValue = false

	if == Area then
		BoolValue.Value = true


Yes, but you have to find the boolvalue inside the player so you have to change
local BoolValue = false
local BoolValue = (the player).BoolValue.Value

1 Like

I shared the game with you but you have to friend me to edit

Mini_Jimki helped me out and now the code works!