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
script.Parent.Touched:connect(function(e)
if e.name == Area then
BoolValue.Value = true
end
end)
print(BoolValue.Value)
Yes, but you have to find the boolvalue inside the player so you have to change
local BoolValue = false
to
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!