-- LocalScript → StarterPlayerScripts local player = game.Players.LocalPlayer local UserInputService = game:GetService("UserInputService") -- Target coordinates local TARGET_POSITION = Vector3.new(-0.4, 5.7, -9073.8) -- ==================== GUI ==================== local screenGui = Instance.new("ScreenGui") screenGui.Name = "TeleportGui" screenGui.ResetOnSpawn = false screenGui.Parent = player:WaitForChild("PlayerGui") -- Main frame (draggable) local mainFrame = Instance.new("Frame") mainFrame.Name = "MainFrame" mainFrame.Size = UDim2.new(0, 260, 0, 180) mainFrame.Position = UDim2.new(0.5, -130, 0.35, 0) mainFrame.BackgroundColor3 = Color3.fromRGB(22, 22, 28) mainFrame.BorderSizePixel = 0 mainFrame.Visible = true mainFrame.Parent = screenGui local frameCorner = Instance.new("UICorner") frameCorner.CornerRadius = UDim.new(0, 16) frameCorner.Parent = mainFrame local frameStroke = Instance.new("UIStroke") frameStroke.Color = Color3.fromRGB(100, 50, 255) frameStroke.Thickness = 2 frameStroke.Parent = mainFrame -- Title local title = Instance.new("TextLabel") title.Size = UDim2.new(1, -40, 0, 40) title.Position = UDim2.new(0, 12, 0, 0) title.BackgroundTransparency = 1 title.Text = "Teleport to Point" title.TextColor3 = Color3.new(1, 1, 1) title.Font = Enum.Font.GothamBold title.TextSize = 20 title.TextXAlignment = Enum.TextXAlignment.Left title.Parent = mainFrame -- Coordinates display local coordsLabel = Instance.new("TextLabel") coordsLabel.Size = UDim2.new(1, -20, 0, 50) coordsLabel.Position = UDim2.new(0, 10, 0, 45) coordsLabel.BackgroundTransparency = 1 coordsLabel.Text = "X: -0.4\nY: 5.7\nZ: -9073.8" coordsLabel.TextColor3 = Color3.fromRGB(180, 180, 255) coordsLabel.Font = Enum.Font.Gotham coordsLabel.TextSize = 16 coordsLabel.TextXAlignment = Enum.TextXAlignment.Left coordsLabel.Parent = mainFrame -- Teleport button local teleportButton = Instance.new("TextButton") teleportButton.Size = UDim2.new(0.9, 0, 0, 50) teleportButton.Position = UDim2.new(0.05, 0, 0, 105) teleportButton.BackgroundColor3 = Color3.fromRGB(100, 50, 255) teleportButton.Text = "Teleport Now" teleportButton.TextColor3 = Color3.new(1, 1, 1) teleportButton.Font = Enum.Font.GothamBold teleportButton.TextSize = 18 teleportButton.Parent = mainFrame local teleCorner = Instance.new("UICorner") teleCorner.CornerRadius = UDim.new(0, 10) teleCorner.Parent = teleportButton local teleStroke = Instance.new("UIStroke") teleStroke.Color = Color3.fromRGB(255, 255, 255) teleStroke.Thickness = 1 teleStroke.Parent = teleportButton -- Close button (X in top-right corner) local closeButton = Instance.new("TextButton") closeButton.Size = UDim2.new(0, 34, 0, 34) closeButton.Position = UDim2.new(1, -38, 0, 3) closeButton.BackgroundColor3 = Color3.fromRGB(200, 40, 40) closeButton.Text = "X" closeButton.TextColor3 = Color3.new(1, 1, 1) closeButton.Font = Enum.Font.GothamBold closeButton.TextSize = 20 closeButton.Parent = mainFrame local closeCorner = Instance.new("UICorner") closeCorner.CornerRadius = UDim.new(0, 10) closeCorner.Parent = closeButton -- ==================== Draggable logic (works on mobile too) ==================== local function makeDraggable(frame) local dragging = false local dragInput local dragStart local startPos frame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = frame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) frame.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) UserInputService.InputChanged:Connect(function(input) if input == dragInput and dragging then local delta = input.Position - dragStart frame.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end end) end makeDraggable(mainFrame) -- ==================== Button logic ==================== -- Close window closeButton.MouseButton1Click:Connect(function() mainFrame.Visible = false screenGui:Destroy() -- полностью удаляем интерфейс end) -- Teleport teleportButton.MouseButton1Click:Connect(function() local character = player.Character if not character then return end local root = character:FindFirstChild("HumanoidRootPart") if not root then return end root.CFrame = CFrame.new(TARGET_POSITION + Vector3.new(0, 3, 0)) print("Teleported to: X = -0.4 | Y = 5.7 | Z = -9073.8") end) print("Teleport GUI loaded (English version)")