local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local player = Players.LocalPlayer local function getRandomPlayer() local others = {} for _, p in ipairs(Players:GetPlayers()) do if p ~= player then table.insert(others, p) end end if #others == 0 then return nil end return others[math.random(1, #others)] end local function teleportToRandom() local target = getRandomPlayer() if not target then print("[TeleportScript] No other players in server.") return end local character = player.Character local targetChar = target.Character if not character or not targetChar then return end local rootPart = character:FindFirstChild("HumanoidRootPart") local targetRoot = targetChar:FindFirstChild("HumanoidRootPart") if not rootPart or not targetRoot then return end rootPart.CFrame = targetRoot.CFrame + Vector3.new(0, 3, 0) statusLabel.Text = "Teleported to: " .. target.Name print("[TeleportScript] Teleported to " .. target.Name) end -- // GUI (same style as FlyScript) local screenGui = Instance.new("ScreenGui") screenGui.Name = "TeleportGui" screenGui.ResetOnSpawn = false screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling screenGui.Parent = player.PlayerGui local panel = Instance.new("Frame") panel.Size = UDim2.new(0, 180, 0, 110) panel.Position = UDim2.new(0, 20, 0.5, 60) -- below fly gui panel.BackgroundColor3 = Color3.fromRGB(15, 15, 20) panel.BorderSizePixel = 0 panel.Active = true panel.Draggable = true panel.Parent = screenGui Instance.new("UICorner", panel).CornerRadius = UDim.new(0, 12) local stroke = Instance.new("UIStroke", panel) stroke.Color = Color3.fromRGB(0, 200, 255) stroke.Thickness = 1.5 stroke.Transparency = 0.4 local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 32) title.Position = UDim2.new(0, 0, 0, 0) title.BackgroundTransparency = 1 title.Text = "⚡ TELEPORT" title.TextColor3 = Color3.fromRGB(0, 200, 255) title.TextSize = 14 title.Font = Enum.Font.GothamBold title.Parent = panel local divider = Instance.new("Frame") divider.Size = UDim2.new(0.85, 0, 0, 1) divider.Position = UDim2.new(0.075, 0, 0, 32) divider.BackgroundColor3 = Color3.fromRGB(0, 200, 255) divider.BackgroundTransparency = 0.7 divider.BorderSizePixel = 0 divider.Parent = panel local teleportBtn = Instance.new("TextButton") teleportBtn.Size = UDim2.new(0.75, 0, 0, 36) teleportBtn.Position = UDim2.new(0.125, 0, 0, 42) teleportBtn.BackgroundColor3 = Color3.fromRGB(0, 170, 220) teleportBtn.BorderSizePixel = 0 teleportBtn.Text = "TELEPORT" teleportBtn.TextColor3 = Color3.fromRGB(255, 255, 255) teleportBtn.TextSize = 14 teleportBtn.Font = Enum.Font.GothamBold teleportBtn.Parent = panel Instance.new("UICorner", teleportBtn).CornerRadius = UDim.new(0, 8) statusLabel = Instance.new("TextLabel") statusLabel.Size = UDim2.new(1, 0, 0, 24) statusLabel.Position = UDim2.new(0, 0, 0, 84) statusLabel.BackgroundTransparency = 1 statusLabel.Text = "Ready" statusLabel.TextColor3 = Color3.fromRGB(160, 220, 255) statusLabel.TextSize = 12 statusLabel.Font = Enum.Font.Gotham statusLabel.Parent = panel -- // Button click teleportBtn.MouseButton1Click:Connect(function() teleportBtn.BackgroundColor3 = Color3.fromRGB(0, 230, 130) stroke.Color = Color3.fromRGB(0, 230, 130) teleportToRandom() task.delay(1.5, function() teleportBtn.BackgroundColor3 = Color3.fromRGB(0, 170, 220) stroke.Color = Color3.fromRGB(0, 200, 255) end) end) -- // Keybind: T to teleport UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.T then teleportBtn.MouseButton1Click:Fire() end end) print("[TeleportScript] Loaded! Press T or click the GUI to teleport.")