Coordinates Viewer
Key RequiredUniversal

Coordinates Viewer

Universal Scriptssoiluressoilure 359 views 7 executesUpdated Jan 14, 2026
Unrated
00
Lua Script•74 lines (2225 chars)
local player = game.Players.LocalPlayer
local runService = game:GetService("RunService")


local screenGui = Instance.new("ScreenGui")
screenGui.Name = "PositionGUI"
screenGui.ResetOnSpawn = false
screenGui.Parent = player:WaitForChild("PlayerGui")


local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 200, 0, 120)
frame.Position = UDim2.new(0, 20, 0, 20)
frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
frame.BorderSizePixel = 2
frame.Parent = screenGui


local function createRow(name, yPos)
    local label = Instance.new("TextLabel")
    label.Size = UDim2.new(0, 30, 0, 30)
    label.Position = UDim2.new(0, 10, 0, yPos)
    label.Text = name..":"
    label.TextColor3 = Color3.fromRGB(255, 255, 255)
    label.BackgroundTransparency = 1
    label.TextXAlignment = Enum.TextXAlignment.Left
    label.Parent = frame

    local textbox = Instance.new("TextBox")
    textbox.Size = UDim2.new(0, 150, 0, 30)
    textbox.Position = UDim2.new(0, 50, 0, yPos)
    textbox.Text = "0"
    textbox.ClearTextOnFocus = false
    textbox.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
    textbox.TextColor3 = Color3.fromRGB(255, 255, 255)
    textbox.Parent = frame

    return textbox
end


local textboxX = createRow("X", 10)
local textboxY = createRow("Y", 45)
local textboxZ = createRow("Z", 80)


local function updatePosition()
    local character = player.Character
    if character and character:FindFirstChild("HumanoidRootPart") then
        local pos = character.HumanoidRootPart.Position
        textboxX.Text = string.format("%.2f", pos.X)
        textboxY.Text = string.format("%.2f", pos.Y)
        textboxZ.Text = string.format("%.2f", pos.Z)
    end
end

runService.RenderStepped:Connect(updatePosition)


local function teleport()
    local character = player.Character
    if character and character:FindFirstChild("HumanoidRootPart") then
        local x = tonumber(textboxX.Text)
        local y = tonumber(textboxY.Text)
        local z = tonumber(textboxZ.Text)
        if x and y and z then
            character.HumanoidRootPart.CFrame = CFrame.new(x, y, z)
        end
    end
end

textboxX.FocusLost:Connect(teleport)
textboxY.FocusLost:Connect(teleport)
textboxZ.FocusLost:Connect(teleport)

Features & Information

This script shows your character’s X, Y, Z position in game.
#coordinates

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts