Universal Coordinate system
Key RequiredUniversal

Universal Coordinate system

Universal ScriptMartikMartik 484 views 173 executesUpdated Apr 3, 2026
5.0/ 5(1 votes)
10100% Positive
Lua Script•95 lines (2587 chars)
local player = game.Players.LocalPlayer
local UIS = game:GetService("UserInputService")

-- SS
local gui = Instance.new("ScreenGui")
gui.ResetOnSpawn = false
gui.Parent = player:WaitForChild("PlayerGui")

local frame = Instance.new("Frame", gui)
frame.Size = UDim2.new(0, 220, 0, 120)
frame.Position = UDim2.new(0, 100, 0, 100)
frame.BackgroundColor3 = Color3.fromRGB(25,25,25)
frame.BorderSizePixel = 0

local corner = Instance.new("UICorner", frame)
corner.CornerRadius = UDim.new(0, 10)

local title = Instance.new("TextLabel", frame)
title.Size = UDim2.new(1, 0, 0, 30)
title.Text = "Coordinates"
title.TextColor3 = Color3.new(1,1,1)
title.BackgroundTransparency = 1
title.Font = Enum.Font.GothamBold
title.TextSize = 16

local coords = Instance.new("TextLabel", frame)
coords.Size = UDim2.new(1, -20, 0, 60)
coords.Position = UDim2.new(0, 10, 0, 40)
coords.BackgroundTransparency = 1
coords.TextColor3 = Color3.new(1,1,1)
coords.Font = Enum.Font.Code
coords.TextSize = 14
coords.Text = "X: 0\nY: 0\nZ: 0"
coords.TextXAlignment = Enum.TextXAlignment.Left

-- SS
local dragging = false
local dragInput, dragStart, startPos

frame.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 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 then
        dragInput = input
    end
end)

UIS.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)

-- SS
task.spawn(function()
    while true do
        local char = player.Character
        local root = char and char:FindFirstChild("HumanoidRootPart")
        
        if root then
            local pos = root.Position
            coords.Text = string.format(
                "X: %.2f\nY: %.2f\nZ: %.2f",
                pos.X, pos.Y, pos.Z
            )
        end
        
        task.wait(0.1)
    end
end)

-- SS
UIS.InputBegan:Connect(function(input, gp)
    if not gp and input.KeyCode == Enum.KeyCode.Insert then
        frame.Visible = not frame.Visible
    end
end)

Features & Information

Coordinate system Insert - Open/Close
#Coordinate system#free

Community Comments (1)

liam_young7331liam_young7331Apr 3, 2026

<b>work?</b>

More Scripts for Universal Scripts