Universal Cords Grabber
Key RequiredUniversal

Universal Cords Grabber

Universal ScriptOnixChloroOnixChloro 735 views 132 executesUpdated Apr 26, 2026
Unrated
00
Lua Script•127 lines (4086 chars)
-- [[ UNIVERSAL COORDINATE GRABBER BY ONIX ]] --
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local lp = Players.LocalPlayer
local set_clip = setclipboard or toclipboard or set_clipboard or print

-- UI Root
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "OnixCoordGrabber"
ScreenGui.Parent = game:GetService("CoreGui")
ScreenGui.ResetOnSpawn = false

-- [[ MAIN UI ]] --
local Main = Instance.new("Frame")
Main.Size = UDim2.new(0, 220, 0, 170)
Main.Position = UDim2.new(0.5, -110, 0.5, -85)
Main.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
Main.BorderSizePixel = 0
Main.Active = true
Main.Draggable = true
Main.Parent = ScreenGui

local MainStroke = Instance.new("UIStroke")
MainStroke.Thickness = 2
MainStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
MainStroke.Parent = Main

local MainCorner = Instance.new("UICorner")
MainCorner.CornerRadius = UDim.new(0, 6)
MainCorner.Parent = Main

-- Rainbow Border
task.spawn(function()
    while task.wait() do
        MainStroke.Color = Color3.fromHSV(tick() % 5 / 5, 0.7, 1)
    end
end)

-- Title
local Title = Instance.new("TextLabel")
Title.Size = UDim2.new(1, 0, 0, 30)
Title.BackgroundTransparency = 1
Title.Text = "ONIX COORDINATE GRABBER"
Title.TextColor3 = Color3.new(1, 1, 1)
Title.Font = Enum.Font.GothamBold
Title.TextSize = 12
Title.Parent = Main

-- Display Label
local PosDisplay = Instance.new("TextLabel")
PosDisplay.Size = UDim2.new(0.9, 0, 0, 40)
PosDisplay.Position = UDim2.new(0.05, 0, 0.22, 0)
PosDisplay.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
PosDisplay.Text = "X: 0 | Y: 0 | Z: 0"
PosDisplay.TextColor3 = Color3.fromRGB(0, 255, 150)
PosDisplay.Font = Enum.Font.Code
PosDisplay.TextSize = 11
PosDisplay.Parent = Main
Instance.new("UICorner", PosDisplay).CornerRadius = UDim.new(0, 4)

-- Dynamic Update
RunService.RenderStepped:Connect(function()
    if lp.Character and lp.Character:FindFirstChild("HumanoidRootPart") then
        local p = lp.Character.HumanoidRootPart.Position
        PosDisplay.Text = string.format("X: %.3f\nY: %.3f\nZ: %.3f", p.X, p.Y, p.Z)
    end
end)

-- [[ COPY LOGIC ]] --
local function CreateButton(text, pos, callback)
    local btn = Instance.new("TextButton")
    btn.Size = UDim2.new(0.42, 0, 0, 35)
    btn.Position = pos
    btn.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
    btn.Text = text
    btn.TextColor3 = Color3.new(1, 1, 1)
    btn.Font = Enum.Font.GothamBold
    btn.TextSize = 11
    btn.AutoButtonColor = true
    btn.Parent = Main
    Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 4)
    
    btn.MouseButton1Click:Connect(function()
        if lp.Character and lp.Character:FindFirstChild("HumanoidRootPart") then
            local hrp = lp.Character.HumanoidRootPart
            local val = callback(hrp)
            set_clip(val)
            
            local oldText = btn.Text
            btn.Text = "COPIED!"
            btn.BackgroundColor3 = Color3.fromRGB(0, 120, 255)
            task.wait(0.5)
            btn.Text = oldText
            btn.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
        end
    end)
end

-- Button 1: CFrame
CreateButton("COPY CFRAME", UDim2.new(0.05, 0, 0.65, 0), function(hrp)
    return "CFrame.new(" .. tostring(hrp.CFrame) .. ")"
end)

-- Button 2: Vector3
CreateButton("COPY VECTOR3", UDim2.new(0.53, 0, 0.65, 0), function(hrp)
    return "Vector3.new(" .. tostring(hrp.Position) .. ")"
end)

-- Minimize
local Close = Instance.new("TextButton")
Close.Size = UDim2.new(0, 20, 0, 20)
Close.Position = UDim2.new(1, -25, 0, 5)
Close.Text = "_"
Close.BackgroundTransparency = 1
Close.TextColor3 = Color3.new(1, 1, 1)
Close.Font = Enum.Font.GothamBold
Close.Parent = Main

local toggled = true
Close.MouseButton1Click:Connect(function()
    toggled = not toggled
    PosDisplay.Visible = toggled
    Main:TweenSize(toggled and UDim2.new(0, 220, 0, 170) or UDim2.new(0, 220, 0, 30), "Out", "Quart", 0.2, true)
    for _, v in pairs(Main:GetChildren()) do
        if v:IsA("TextButton") and v ~= Close then v.Visible = toggled end
    end
end)

Features & Information

Universal Cords grabber. It's open source so don't mind taking it but give credits. Basically good for teleports in your game scripts.

Community Comments (5)

OnixChloroOnixChloroApr 26, 2026

Comment if need help and give suggestions for next script

Masonb11745Masonb11745May 8, 2026

How do you use it

Replying to @Masonb11745
OnixChloroOnixChloroMay 17, 2026

@Masonb11745 just copy it

Replying to @Masonb11745
OnixChloroOnixChloroMay 17, 2026

Walk around and copy the cframe or vector 3

Replying to @Masonb11745
OnixChloroOnixChloroMay 17, 2026

I can make an another version that has more

More Scripts for Universal Scripts