-- Remove any older instances to avoid screen overlap local player = game:GetService("Players").LocalPlayer local playerGui = player:WaitForChild("PlayerGui") if playerGui:FindFirstChild("MobileCoordUI") then playerGui.MobileCoordUI:Destroy() end -- Create ScreenGui parented safely to PlayerGui local screenGui = Instance.new("ScreenGui") screenGui.Name = "MobileCoordUI" screenGui.ResetOnSpawn = false screenGui.Parent = playerGui -- 1. TOP RIGHT MENU TOGGLE BUTTON local menuButton = Instance.new("TextButton") menuButton.Name = "MenuButton" menuButton.Size = UDim2.new(0, 80, 0, 45) menuButton.AnchorPoint = Vector2.new(1, 0) menuButton.Position = UDim2.new(1, -15, 0, 15) menuButton.BackgroundColor3 = Color3.fromRGB(30, 30, 35) menuButton.Text = "Menu" menuButton.TextColor3 = Color3.fromRGB(255, 255, 255) menuButton.TextSize = 16 menuButton.Font = Enum.Font.SourceSansBold menuButton.Parent = screenGui local menuCorner = Instance.new("UICorner") menuCorner.CornerRadius = UDim.new(0, 8) menuCorner.Parent = menuButton -- 2. MAIN INTERFACE BOX (TOP RIGHT) local mainFrame = Instance.new("Frame") mainFrame.Name = "MainFrame" mainFrame.Size = UDim2.new(0, 210, 0, 260) mainFrame.AnchorPoint = Vector2.new(1, 0) mainFrame.Position = UDim2.new(1, -15, 0, 70) mainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 25) mainFrame.BorderSizePixel = 0 mainFrame.Visible = false mainFrame.Parent = screenGui local mainCorner = Instance.new("UICorner") mainCorner.CornerRadius = UDim.new(0, 10) mainCorner.Parent = mainFrame local uiLayout = Instance.new("UIListLayout") uiLayout.Parent = mainFrame uiLayout.Padding = UDim.new(0, 10) uiLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center uiLayout.SortOrder = Enum.SortOrder.LayoutOrder local uiPadding = Instance.new("UIPadding") uiPadding.Parent = mainFrame uiPadding.PaddingTop = UDim.new(0, 10) -- ========================================== -- BOX 1: CURRENT STANDING COORDINATES & COPY -- ========================================== local box1 = Instance.new("Frame") box1.Name = "Box1_Standing" box1.Size = UDim2.new(0, 190, 0, 110) box1.BackgroundColor3 = Color3.fromRGB(35, 35, 40) box1.Parent = mainFrame local b1Corner = Instance.new("UICorner") b1Corner.CornerRadius = UDim.new(0, 8) b1Corner.Parent = box1 local getCoordsBtn = Instance.new("TextButton") getCoordsBtn.Size = UDim2.new(0, 170, 0, 30) getCoordsBtn.Position = UDim2.new(0, 10, 0, 10) getCoordsBtn.BackgroundColor3 = Color3.fromRGB(0, 120, 255) getCoordsBtn.Text = "Get Coords" getCoordsBtn.TextColor3 = Color3.fromRGB(255, 255, 255) getCoordsBtn.TextSize = 14 getCoordsBtn.Font = Enum.Font.SourceSansBold getCoordsBtn.Parent = box1 local b1BtnCorner = Instance.new("UICorner") b1BtnCorner.CornerRadius = UDim.new(0, 6) b1BtnCorner.Parent = getCoordsBtn local coordLabel = Instance.new("TextLabel") coordLabel.Size = UDim2.new(0, 170, 0, 25) coordLabel.Position = UDim2.new(0, 10, 0, 45) coordLabel.BackgroundTransparency = 1 coordLabel.Text = "0, 0, 0" coordLabel.TextColor3 = Color3.fromRGB(220, 220, 220) coordLabel.TextSize = 14 coordLabel.Font = Enum.Font.Code coordLabel.Parent = box1 local copyBtn = Instance.new("TextButton") copyBtn.Size = UDim2.new(0, 170, 0, 25) copyBtn.Position = UDim2.new(0, 10, 0, 75) copyBtn.BackgroundColor3 = Color3.fromRGB(55, 55, 60) copyBtn.Text = "Copy" copyBtn.TextColor3 = Color3.fromRGB(255, 255, 255) copyBtn.TextSize = 13 copyBtn.Font = Enum.Font.SourceSansBold copyBtn.Parent = box1 local copyCorner = Instance.new("UICorner") copyCorner.CornerRadius = UDim.new(0, 6) copyCorner.Parent = copyBtn -- ========================================== -- BOX 2: MANUAL TEXT INPUT & TELEPORT SYSTEM -- ========================================== local box2 = Instance.new("Frame") box2.Name = "Box2_Teleport" box2.Size = UDim2.new(0, 190, 0, 110) box2.BackgroundColor3 = Color3.fromRGB(35, 35, 40) box2.Parent = mainFrame local b2Corner = Instance.new("UICorner") b2Corner.CornerRadius = UDim.new(0, 8) b2Corner.Parent = box2 local coordInput = Instance.new("TextBox") coordInput.Size = UDim2.new(0, 170, 0, 35) coordInput.Position = UDim2.new(0, 10, 0, 12) coordInput.BackgroundColor3 = Color3.fromRGB(15, 15, 20) coordInput.PlaceholderText = "Example: 0 0 0" coordInput.Text = "" coordInput.TextColor3 = Color3.fromRGB(255, 255, 255) coordInput.PlaceholderColor3 = Color3.fromRGB(120, 120, 120) coordInput.TextSize = 14 coordInput.Font = Enum.Font.Code coordInput.ClearTextOnFocus = false coordInput.Parent = box2 local inputCorner = Instance.new("UICorner") inputCorner.CornerRadius = UDim.new(0, 6) inputCorner.Parent = coordInput local tpBtn = Instance.new("TextButton") tpBtn.Size = UDim2.new(0, 170, 0, 35) tpBtn.Position = UDim2.new(0, 10, 0, 60) tpBtn.BackgroundColor3 = Color3.fromRGB(0, 175, 90) -- Back to green color tpBtn.Text = "Teleport" tpBtn.TextColor3 = Color3.fromRGB(255, 255, 255) tpBtn.TextSize = 15 tpBtn.Font = Enum.Font.SourceSansBold tpBtn.Parent = box2 local tpCorner = Instance.new("UICorner") tpCorner.CornerRadius = UDim.new(0, 6) tpCorner.Parent = tpBtn -- ========================================== -- FUNCTIONALITY AND FUNCTION LOGIC -- ========================================== local activeCoords = "0, 0, 0" -- Menu Button Behavior: Opens and closes the main frame menuButton.MouseButton1Click:Connect(function() mainFrame.Visible = not mainFrame.Visible end) -- Reads player position, updates upper block, and fills text input box getCoordsBtn.MouseButton1Click:Connect(function() local character = player.Character local root = character and character:FindFirstChild("HumanoidRootPart") if root then local pos = root.Position -- Format coordinates with single spaces for easy text manipulation activeCoords = math.floor(pos.X) .. " " .. math.floor(pos.Y) .. " " .. math.floor(pos.Z) coordLabel.Text = activeCoords coordInput.Text = activeCoords -- Automatically transfers text to the input field copyBtn.Text = "Copy" else coordLabel.Text = "Character missing!" end end) -- Clipboard integration for mobile executors copyBtn.MouseButton1Click:Connect(function() local setClip = setclipboard or toclipboard or (Clipboard and Clipboard.set) if setClip then setClip(activeCoords) copyBtn.Text = "Copied!" task.delay(1.5, function() copyBtn.Text = "Copy" end) else copyBtn.Text = "Clipboard Error" end end) -- Teleportation Engine (Re-enabled and functioning) tpBtn.MouseButton1Click:Connect(function() local text = coordInput.Text local numbers = {} -- Safely isolates individual float/integer numbers from input string for num in string.gmatch(text, "([%d%-%.]+)") do table.insert(numbers, tonumber(num)) end -- Requires exact X, Y, and Z parameters to initiate jump if #numbers >= 3 then local character = player.Character local root = character and character:FindFirstChild("HumanoidRootPart") if root then -- Safely places player 2 studs higher to avoid dropping through map floors root.CFrame = CFrame.new(Vector3.new(numbers[1], numbers[2] + 2, numbers[3])) end else coordInput.Text = "" coordInput.PlaceholderText = "Use format: 0 0 0" task.delay(1.5, function() coordInput.PlaceholderText = "Example: 0 0 0" end) end end)