local TeleportService = game:GetService("TeleportService") local OriginalPlaceId = game.PlaceId local OriginalJobId = game.JobId local BaseplatePlaceId = 95206881 local RejoinDelay = 3.6 local QueuedScript = string.format([[ local Players = game:GetService("Players") local TeleportService = game:GetService("TeleportService") local RunService = game:GetService("RunService") local CoreGui = game:GetService("CoreGui") local PlaceId = %d local JobId = %q local RejoinDelay = %.3f -------------------------------------------------- -- OVERLAY -------------------------------------------------- local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "RejoinOverlay" ScreenGui.IgnoreGuiInset = true ScreenGui.ResetOnSpawn = false ScreenGui.DisplayOrder = 999999 local Success = pcall(function() if gethui then ScreenGui.Parent = gethui() else ScreenGui.Parent = CoreGui end end) if not Success then ScreenGui.Parent = Players.LocalPlayer:WaitForChild("PlayerGui") end local Background = Instance.new("Frame") Background.Size = UDim2.fromScale(1, 1) Background.BackgroundColor3 = Color3.fromRGB(10, 10, 10) Background.BorderSizePixel = 0 Background.Parent = ScreenGui local Title = Instance.new("TextLabel") Title.AnchorPoint = Vector2.new(0.5, 0.5) Title.Position = UDim2.fromScale(0.5, 0.44) Title.Size = UDim2.new(0.8, 0, 0, 60) Title.BackgroundTransparency = 1 Title.Text = "REJOINING SERVER" Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.TextScaled = true Title.Font = Enum.Font.GothamBold Title.Parent = Background local Timer = Instance.new("TextLabel") Timer.AnchorPoint = Vector2.new(0.5, 0.5) Timer.Position = UDim2.fromScale(0.5, 0.54) Timer.Size = UDim2.new(0.6, 0, 0, 80) Timer.BackgroundTransparency = 1 Timer.TextColor3 = Color3.fromRGB(255, 255, 255) Timer.TextScaled = true Timer.Font = Enum.Font.Gotham Timer.Text = string.format("%%.3f", RejoinDelay) Timer.Parent = Background -------------------------------------------------- -- CLEAR BASEPLATE LOCALLY -------------------------------------------------- for _, Player in ipairs(Players:GetPlayers()) do if Player.Character then pcall(function() Player.Character:Destroy() end) end end local Camera = workspace.CurrentCamera for _, Object in ipairs(workspace:GetChildren()) do if Object ~= Camera then pcall(function() Object:Destroy() end) end end if Camera then Camera.CameraType = Enum.CameraType.Scriptable Camera.CFrame = CFrame.new(0, 100000, 0) end -------------------------------------------------- -- COUNTDOWN -------------------------------------------------- local EndTime = os.clock() + RejoinDelay while true do local Remaining = EndTime - os.clock() if Remaining <= 0 then break end Timer.Text = string.format("%%.3f", Remaining) RunService.RenderStepped:Wait() end Timer.Text = "0.000" Title.Text = "REJOINING..." -------------------------------------------------- -- REJOIN -------------------------------------------------- TeleportService:TeleportToPlaceInstance( PlaceId, JobId ) ]], OriginalPlaceId, OriginalJobId, RejoinDelay) queueonteleport(QueuedScript) TeleportService:Teleport(BaseplatePlaceId)