Coordinates
Key RequiredUniversal

Coordinates

Universal ScriptJ0hN_DoeJ0hN_Doe 511 views 7 executesUpdated Nov 10, 2025
0.0/ 5(1 votes)
010% Positive
Lua Script•307 lines (10168 chars)
local script = Instance.new("ScreenGui")
local popup = Instance.new("Frame")
local UICorner = Instance.new("UICorner")
local topbar = Instance.new("Frame")
local UICorner_2 = Instance.new("UICorner")
local TextLabel = Instance.new("TextLabel")
local TextButton = Instance.new("TextButton")
local UICorner_3 = Instance.new("UICorner")
local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
local text = Instance.new("TextLabel")
local y = Instance.new("TextLabel")
local dot = Instance.new("TextLabel")
local z = Instance.new("TextLabel")
local dot_2 = Instance.new("TextLabel")
local x = Instance.new("TextLabel")
local dot_3 = Instance.new("TextLabel")
local text_2 = Instance.new("TextLabel")
local text_3 = Instance.new("TextLabel")
script.Name = "script"
script.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
script.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
popup.Name = "popup"
popup.Parent = script
popup.AnchorPoint = Vector2.new(0.5, 0.5)
popup.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
popup.BorderColor3 = Color3.fromRGB(0, 0, 0)
popup.BorderSizePixel = 0
popup.Position = UDim2.new(0.506056011, 0, 0.470481932, 0)
popup.Size = UDim2.new(0.219530657, 0, 0.116867468, 0)

UICorner.Parent = popup

topbar.Name = "topbar"
topbar.Parent = popup
topbar.BackgroundColor3 = Color3.fromRGB(211, 211, 211)
topbar.BorderColor3 = Color3.fromRGB(0, 0, 0)
topbar.BorderSizePixel = 0
topbar.Size = UDim2.new(1, 0, 0.193035796, 0)
UICorner_2.Parent = topbar
TextLabel.Parent = topbar
TextLabel.BackgroundTransparency = 1.000
TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
TextLabel.BorderSizePixel = 0
TextLabel.Position = UDim2.new(0.0293040294, 0, 0, 0)
TextLabel.Size = UDim2.new(0.703296721, 0, 1, 0)
TextLabel.Font = Enum.Font.SourceSansBold
TextLabel.Text = "Coordinates"
TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
TextLabel.TextScaled = true
TextLabel.TextSize = 14.000
TextLabel.TextStrokeTransparency = 0.000
TextLabel.TextWrapped = true
TextLabel.TextXAlignment = Enum.TextXAlignment.Left
TextButton.Parent = topbar
TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
TextButton.BorderSizePixel = 0
TextButton.Position = UDim2.new(0.937728941, 0, 0.0504833534, 0)
TextButton.Size = UDim2.new(0.0615696274, 0, 1, 0)
TextButton.Font = Enum.Font.SourceSansBold
TextButton.Text = "x"
TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
TextButton.TextScaled = true
TextButton.TextSize = 14.000
TextButton.TextWrapped = true
UICorner_3.Parent = TextButton
UIAspectRatioConstraint.Parent = TextButton
text.Name = "text"
text.Parent = popup
text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
text.BackgroundTransparency = 1.000
text.BorderColor3 = Color3.fromRGB(0, 0, 0)
text.BorderSizePixel = 0
text.Position = UDim2.new(0.0256410167, 0, 0.192857251, 0)
text.Size = UDim2.new(0.333332539, 0, 0.261045545, 0)
text.Font = Enum.Font.SourceSans
text.Text = "X"
text.TextColor3 = Color3.fromRGB(0, 0, 0)
text.TextScaled = true
text.TextSize = 14.000
text.TextWrapped = true
y.Name = "y"
y.Parent = popup
y.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
y.BackgroundTransparency = 1.000
y.BorderColor3 = Color3.fromRGB(0, 0, 0)
y.BorderSizePixel = 0
y.Position = UDim2.new(0.358974367, 0, 0.45058921, 0)
y.Size = UDim2.new(0.32967034, 0, 0.291973382, 0)
y.Font = Enum.Font.SourceSans
y.Text = "ypos"
y.TextColor3 = Color3.fromRGB(0, 0, 0)
y.TextScaled = true
y.TextSize = 14.000
y.TextWrapped = true
dot.Name = "dot"
dot.Parent = y
dot.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
dot.BackgroundTransparency = 1.000
dot.BorderColor3 = Color3.fromRGB(0, 0, 0)
dot.BorderSizePixel = 0
dot.Position = UDim2.new(0.0781244859, 0, 0.980225742, 0)
dot.Size = UDim2.new(0.921875536, 0, 0.549410403, 0)
dot.Font = Enum.Font.SourceSans
dot.Text = ".999999999999999"
dot.TextColor3 = Color3.fromRGB(0, 0, 0)
dot.TextScaled = true
dot.TextSize = 14.000
dot.TextWrapped = true
z.Name = "z"
z.Parent = popup
z.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
z.BackgroundTransparency = 1.000
z.BorderColor3 = Color3.fromRGB(0, 0, 0)
z.BorderSizePixel = 0
z.Position = UDim2.new(0.667955041, 0, 0.45058921, 0)
z.Size = UDim2.new(0.32967034, 0, 0.291973382, 0)
z.Font = Enum.Font.SourceSans
z.Text = "zpos"
z.TextColor3 = Color3.fromRGB(0, 0, 0)
z.TextScaled = true
z.TextSize = 14.000
z.TextWrapped = true
dot_2.Name = "dot"
dot_2.Parent = z
dot_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
dot_2.BackgroundTransparency = 1.000
dot_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
dot_2.BorderSizePixel = 0
dot_2.Position = UDim2.new(0.0627589971, 0, 0.980225742, 0)
dot_2.Size = UDim2.new(0.936642289, 0, 0.549410403, 0)
dot_2.Font = Enum.Font.SourceSans
dot_2.Text = ".999999999999999"
dot_2.TextColor3 = Color3.fromRGB(0, 0, 0)
dot_2.TextScaled = true
dot_2.TextSize = 14.000
dot_2.TextWrapped = true

x.Name = "x"
x.Parent = popup
x.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
x.BackgroundTransparency = 1.000
x.BorderColor3 = Color3.fromRGB(0, 0, 0)
x.BorderSizePixel = 0
x.Position = UDim2.new(-4.20932111e-07, 0, 0.45058921, 0)
x.Size = UDim2.new(0.358974397, 0, 0.291973382, 0)
x.Font = Enum.Font.SourceSans
x.Text = "xpos"
x.TextColor3 = Color3.fromRGB(0, 0, 0)
x.TextScaled = true
x.TextSize = 14.000
x.TextWrapped = true

dot_3.Name = "dot"
dot_3.Parent = x
dot_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
dot_3.BackgroundTransparency = 1.000
dot_3.BorderColor3 = Color3.fromRGB(0, 0, 0)
dot_3.BorderSizePixel = 0
dot_3.Position = UDim2.new(0.0714297891, 0, 0.980225742, 0)
dot_3.Size = UDim2.new(0.928569734, 0, 0.549410403, 0)
dot_3.Font = Enum.Font.SourceSans
dot_3.Text = ".999999999999999"
dot_3.TextColor3 = Color3.fromRGB(0, 0, 0)
dot_3.TextScaled = true
dot_3.TextSize = 14.000
dot_3.TextWrapped = true

text_2.Name = "text"
text_2.Parent = popup
text_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
text_2.BackgroundTransparency = 1.000
text_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
text_2.BorderSizePixel = 0
text_2.Position = UDim2.new(0.353113025, 0, 0.192857251, 0)
text_2.Size = UDim2.new(0.333332539, 0, 0.261045545, 0)
text_2.Font = Enum.Font.SourceSans
text_2.Text = "Y"
text_2.TextColor3 = Color3.fromRGB(0, 0, 0)
text_2.TextScaled = true
text_2.TextSize = 14.000
text_2.TextWrapped = true

text_3.Name = "text"
text_3.Parent = popup
text_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
text_3.BackgroundTransparency = 1.000
text_3.BorderColor3 = Color3.fromRGB(0, 0, 0)
text_3.BorderSizePixel = 0
text_3.Position = UDim2.new(0.66586715, 0, 0.192857251, 0)
text_3.Size = UDim2.new(0.333332539, 0, 0.261045545, 0)
text_3.Font = Enum.Font.SourceSans
text_3.Text = "Z"
text_3.TextColor3 = Color3.fromRGB(0, 0, 0)
text_3.TextScaled = true
text_3.TextSize = 14.000
text_3.TextWrapped = true

-- Scripts:

local function SGXMIC_fake_script() -- script.UpdatePlayerPositionLabels 
	local script = Instance.new('LocalScript', script)

	local Players = game:GetService("Players")
	local RunService = game:GetService("RunService")
	local UserInputService = game:GetService("UserInputService")
	
	local player = Players.LocalPlayer
	local gui = script.Parent
	local popup = gui:FindFirstChild("popup")
	if not popup then return end
	
	local xLabel = popup:FindFirstChild("x")
	local yLabel = popup:FindFirstChild("y")
	local zLabel = popup:FindFirstChild("z")
	if not xLabel or not yLabel or not zLabel then return end
	
	local xDot = xLabel:FindFirstChild("dot")
	local yDot = yLabel:FindFirstChild("dot")
	local zDot = zLabel:FindFirstChild("dot")
	if not xDot or not yDot or not zDot then return end
	
	-- Find the TextButton inside popup.topbar
	local topbar = popup:FindFirstChild("topbar")
	local textButton = nil
	if topbar then
	    textButton = topbar:FindFirstChildOfClass("TextButton")
	end
	
	if textButton then
	    textButton.MouseButton1Click:Connect(function()
	        gui:Destroy()
	    end)
	end
	
	local function formatDot(value)
	    local intPart = math.floor(value)
	    local decimal = value - intPart
	    -- Format to show up to 10 decimal digits, remove leading "0"
	    local decimalStr = string.format("%.10f", decimal)
	    decimalStr = decimalStr:sub(2) -- remove leading "0"
	    return decimalStr
	end
	
	local function updateLabels()
	    local character = player.Character or player.CharacterAdded:Wait()
	    local hrp = character:FindFirstChild("HumanoidRootPart")
	    if hrp then
	        local pos = hrp.Position
	
	        -- Integer part
	        xLabel.Text = tostring(math.floor(pos.X))
	        yLabel.Text = tostring(math.floor(pos.Y))
	        zLabel.Text = tostring(math.floor(pos.Z))
	
	        -- Decimal part
	        xDot.Text = formatDot(pos.X)
	        yDot.Text = formatDot(pos.Y)
	        zDot.Text = formatDot(pos.Z)
	    end
	end
	
	RunService.RenderStepped:Connect(updateLabels)
	player.CharacterAdded:Connect(function()
	    updateLabels()
	end)
	
	-- Drag logic for topbar to move popup
	if topbar then
	    local dragging = false
	    local dragStart = nil
	    local popupStartPos = nil
	
	    topbar.InputBegan:Connect(function(input)
	        if input.UserInputType == Enum.UserInputType.MouseButton1 then
	            dragging = true
	            dragStart = input.Position
	            popupStartPos = popup.Position
	            input.MouseIconEnabled = false
	        end
	    end)
	
	    topbar.InputEnded:Connect(function(input)
	        if input.UserInputType == Enum.UserInputType.MouseButton1 then
	            dragging = false
	            dragStart = nil
	            popupStartPos = nil
	            input.MouseIconEnabled = true
	        end
	    end)
	
	    UserInputService.InputChanged:Connect(function(input)
	        if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
	            local delta = input.Position - dragStart
	            popup.Position = UDim2.new(
	                popupStartPos.X.Scale,
	                popupStartPos.X.Offset + delta.X,
	                popupStartPos.Y.Scale,
	                popupStartPos.Y.Offset + delta.Y
	            )
	        end
	    end)
	end
	
	
end
coroutine.wrap(SGXMIC_fake_script)()

Features & Information

THIS SCRIPT WILL BE DETECTED BY SOME GAMES!
#hi#fyp

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts