-- GUI principal local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "TeleportGui" ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") -- Frame draggeable local Frame = Instance.new("Frame") Frame.Size = UDim2.new(0, 240, 0, 160) Frame.Position = UDim2.new(0.5, -120, 0.5, -80) Frame.BackgroundColor3 = Color3.fromRGB(100, 150, 255) Frame.Active = true Frame.Draggable = true Frame.Parent = ScreenGui Frame.BorderSizePixel = 0 Frame.BackgroundTransparency = 0.1 Frame.Name = "MainFrame" -- Función para crear textboxes local function createBox(name, posY, placeholder) local box = Instance.new("TextBox") box.Size = UDim2.new(1, -20, 0, 35) box.Position = UDim2.new(0, 10, 0, posY) box.PlaceholderText = placeholder box.Text = "" box.TextScaled = true box.BackgroundColor3 = Color3.fromRGB(255, 255, 255) box.TextColor3 = Color3.fromRGB(0, 0, 0) box.Parent = Frame box.Name = name return box end -- Crea los tres textbox local XBox = createBox("XBox", 10, "Coordenada X") local YBox = createBox("YBox", 50, "Coordenada Y") local ZBox = createBox("ZBox", 90, "Coordenada Z") -- Botón de teletransporte local Button = Instance.new("TextButton") Button.Size = UDim2.new(1, -20, 0, 25) Button.Position = UDim2.new(0, 10, 0, 130) Button.Text = "Teleport" Button.TextScaled = true Button.Parent = Frame Button.BackgroundColor3 = Color3.fromRGB(80, 120, 200) Button.TextColor3 = Color3.fromRGB(255, 255, 255) -- Función del botón Button.MouseButton1Click:Connect(function() local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoidRoot = character:WaitForChild("HumanoidRootPart") local xValue = tonumber(XBox.Text) local yValue = tonumber(YBox.Text) local zValue = tonumber(ZBox.Text) if xValue and yValue and zValue then humanoidRoot.CFrame = CFrame.new(xValue, yValue, zValue) else if not xValue then XBox.Text = "Inválido" end if not yValue then YBox.Text = "Inválido" end if not zValue then ZBox.Text = "Inválido" end end end) -- 🧭 Contador de coordenadas en tiempo real local CoordsFrame = Instance.new("Frame") CoordsFrame.Size = UDim2.new(0, 180, 0, 60) CoordsFrame.Position = UDim2.new(1, -190, 1, -70) CoordsFrame.BackgroundColor3 = Color3.fromRGB(80, 120, 200) CoordsFrame.BackgroundTransparency = 0.2 CoordsFrame.BorderSizePixel = 0 CoordsFrame.Parent = ScreenGui local CoordsLabel = Instance.new("TextLabel") CoordsLabel.Size = UDim2.new(1, 0, 1, 0) CoordsLabel.Position = UDim2.new(0, 0, 0, 0) CoordsLabel.BackgroundTransparency = 1 CoordsLabel.TextColor3 = Color3.fromRGB(255, 255, 255) CoordsLabel.TextScaled = true CoordsLabel.Font = Enum.Font.SourceSansBold CoordsLabel.Text = "X: 0 | Y: 0 | Z: 0" CoordsLabel.Parent = CoordsFrame -- Actualizar coordenadas task.spawn(function() local player = game.Players.LocalPlayer while true do task.wait(0.1) local character = player.Character if character and character:FindFirstChild("HumanoidRootPart") then local pos = character.HumanoidRootPart.Position CoordsLabel.Text = string.format("X: %d | Y: %d | Z: %d", pos.X, pos.Y, pos.Z) end end end)