local Players = game:GetService("Players") local zone = workspace:WaitForChild("SafeZone") while zone.Parent do local half = zone.Size / 2 for _, player in Players:GetPlayers() do local root = player.Character and player.Character:FindFirstChild("HumanoidRootPart") local point = root and zone.CFrame:PointToObjectSpace(root.Position) local inside = point ~= nil and math.abs(point.X) <= half.X and math.abs(point.Y) <= half.Y and math.abs(point.Z) <= half.Z if player:GetAttribute("InSafeZone") ~= inside then player:SetAttribute("InSafeZone", inside) end end task.wait(0.15) end