while wait(1) do
local Region = Region3.new(script.Parent.Position - script.Parent.Size / 2, script.Parent.Position + script.Parent.Size / 2)
local IgnoreList = {script.Parent}
local PartsInRegion = game.Workspace:FindPartsInRegion3WithIgnoreList(Region, IgnoreList, math.huge)
for i,v in pairs(PartsInRegion) do
if v then
if game.Players:FindFirstChild(v.Parent.Name) then
print("In zone")
else
print("Not in")
end
end
end
end
in general, I want to connect the function if the player has left the region3