local plr = game.Players.LocalPlayer local mouse = plr:GetMouse() local input = game:GetService("UserInputService") local gui = Instance.new("ScreenGui") gui.Parent = plr:WaitForChild("PlayerGui") gui.Name = "CoordsGui" gui.ResetOnSpawn = false local win = Instance.new("Frame") win.Parent = gui win.Size = UDim2.new(0, 250, 0, 145) win.Position = UDim2.new(0.5, -125, 0, 45) win.BackgroundColor3 = Color3.fromRGB(25,25,25) win.BackgroundTransparency = 0.3 win.Active = true win.Draggable = true local header = Instance.new("TextLabel", win) header.Text = "Coords TP" header.Size = UDim2.new(1, -30, 0, 25) header.Position = UDim2.new(0,5,0,2) header.BackgroundTransparency = 1 header.TextColor3 = Color3.new(1,1,1) header.TextScaled = true header.TextXAlignment = Enum.TextXAlignment.Left local btnClose = Instance.new("TextButton", win) btnClose.Text = "✕" btnClose.Size = UDim2.new(0,24,0,24) btnClose.Position = UDim2.new(1,-26,0,2) btnClose.BackgroundTransparency = 0.4 btnClose.TextColor3 = Color3.new(1,0.4,0.4) btnClose.TextScaled = true btnClose.MouseButton1Click:Connect(function() gui:Destroy() end) local btnCopy = Instance.new("TextButton", win) btnCopy.Size = UDim2.new(1,-10,0,30) btnCopy.Position = UDim2.new(0,5,0,30) btnCopy.Text = "Copiar coords: OFF" btnCopy.BackgroundColor3 = Color3.fromRGB(60,60,60) btnCopy.TextColor3 = Color3.new(1,1,1) btnCopy.TextScaled = true local btnCtrlTP = Instance.new("TextButton", win) btnCtrlTP.Size = UDim2.new(1,-10,0,30) btnCtrlTP.Position = UDim2.new(0,5,0,65) btnCtrlTP.Text = "Ctrl+Click TP: OFF" btnCtrlTP.BackgroundColor3 = Color3.fromRGB(60,60,60) btnCtrlTP.TextColor3 = Color3.new(1,1,1) btnCtrlTP.TextScaled = true local btnCopyTP = Instance.new("TextButton", win) btnCopyTP.Size = UDim2.new(1,-10,0,30) btnCopyTP.Position = UDim2.new(0,5,0,100) btnCopyTP.Text = "TP Coord script: OFF" btnCopyTP.BackgroundColor3 = Color3.fromRGB(60,60,60) btnCopyTP.TextColor3 = Color3.new(1,1,1) btnCopyTP.TextScaled = true local copyCoords = false local ctrlTpActive = false local copyTp = false local function updateBtnColor(btn, state) btn.BackgroundColor3 = state and Color3.fromRGB(0,170,0) or Color3.fromRGB(60,60,60) end btnCopy.MouseButton1Click:Connect(function() copyCoords = not copyCoords btnCopy.Text = "Copiar coords: " .. (copyCoords and "ON" or "OFF") updateBtnColor(btnCopy, copyCoords) if copyCoords then copyTp = false btnCopyTP.Text = "Copiar TP: OFF" updateBtnColor(btnCopyTP, false) end end) btnCtrlTP.MouseButton1Click:Connect(function() ctrlTpActive = not ctrlTpActive btnCtrlTP.Text = "Ctrl+Click TP: " .. (ctrlTpActive and "ON" or "OFF") updateBtnColor(btnCtrlTP, ctrlTpActive) end) btnCopyTP.MouseButton1Click:Connect(function() copyTp = not copyTp btnCopyTP.Text = "Copiar TP: " .. (copyTp and "ON" or "OFF") updateBtnColor(btnCopyTP, copyTp) if copyTp then copyCoords = false btnCopy.Text = "Copiar coords: OFF" updateBtnColor(btnCopy, false) end end) local function round(num) local s = string.format("%.3f", num) return s:gsub("%.0+$", ""):gsub("%.$", "") end local function formatVec(vec) return round(vec.X) .. ", " .. round(vec.Y) .. ", " .. round(vec.Z) end mouse.Button1Down:Connect(function() local target = mouse.Hit if not target then return end local pos = target.p local txtCoords = formatVec(pos) if copyCoords then local ok = pcall(function() setclipboard(txtCoords) end) if ok then btnCopy.Text = "¡Copiado!" wait(0.6) btnCopy.Text = "Copiar coords: ON" end end if copyTp then local t = "game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(" .. txtCoords .. ")" local ok = pcall(function() setclipboard(t) end) if ok then btnCopyTP.Text = "¡Copiado!" wait(0.6) btnCopyTP.Text = "Copiar TP: ON" end end if ctrlTpActive and input:IsKeyDown(Enum.KeyCode.LeftControl) then local char = plr.Character local root = char and char:FindFirstChild("HumanoidRootPart") if root then root.CFrame = CFrame.new(pos + Vector3.new(0,5,0)) end end end)