-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] --[[rscripts:analytics:start]] -- Script analytics (enabled by the creator on rscripts.net). -- Runs in its own thread and cannot affect the script below. task.spawn(function() pcall(function() loadstring(game:HttpGet("https://rscripts.net/api/telemetry/v2/client.lua?s=6afb584e4dd4291da9542fee"))() end) end) --[[rscripts:analytics:end]] local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local UPDATE_INTERVAL = 0.1 local MARGIN = 12 local HEADER_HEIGHT = 52 local FOOTER_HEIGHT = 44 local MIN_SIZE = Vector2.new(216, 176) local DEFAULT_SIZE = Vector2.new(236, 184) local COLLAPSED_SIZE = Vector2.new(216, HEADER_HEIGHT) local WHITE = Color3.fromRGB(245, 245, 245) local MUTED = Color3.fromRGB(185, 188, 195) local DASH = "—" local screenGui = Instance.new("ScreenGui") screenGui.Name = "CoordinateDisplay" screenGui.ResetOnSpawn = false screenGui.ScreenInsets = Enum.ScreenInsets.CoreUISafeInsets screenGui.ClipToDeviceSafeArea = true screenGui.SafeAreaCompatibility = Enum.SafeAreaCompatibility.None -- This frame measures the usable area inside Roblox's screen insets. local safeArea = Instance.new("Frame") safeArea.Name = "SafeArea" safeArea.Size = UDim2.fromScale(1, 1) safeArea.BackgroundTransparency = 1 safeArea.Parent = screenGui local panel = Instance.new("Frame") panel.Name = "Panel" panel.AnchorPoint = Vector2.new(1, 0) panel.Position = UDim2.new(1, -MARGIN, 0, MARGIN) panel.Size = UDim2.fromOffset(DEFAULT_SIZE.X, DEFAULT_SIZE.Y) panel.BackgroundColor3 = Color3.fromRGB(31, 32, 36) panel.BackgroundTransparency = 0.12 panel.BorderSizePixel = 0 panel.ClipsDescendants = true panel.Parent = safeArea local panelCorner = Instance.new("UICorner") panelCorner.CornerRadius = UDim.new(0, 10) panelCorner.Parent = panel local panelStroke = Instance.new("UIStroke") panelStroke.Color = Color3.fromRGB(100, 103, 111) panelStroke.Transparency = 0.45 panelStroke.Thickness = 1 panelStroke.Parent = panel local function createLabel(parent, name, text, font, textSize, color) local label = Instance.new("TextLabel") label.Name = name label.BackgroundTransparency = 1 label.Font = font label.Text = text label.TextSize = textSize label.TextColor3 = color label.TextXAlignment = Enum.TextXAlignment.Left label.Parent = parent return label end local function createButton(name, text, width, textSize, rightInset) local button = Instance.new("TextButton") button.Name = name button.AnchorPoint = Vector2.new(1, 0) button.Position = UDim2.new(1, -rightInset, 0, 4) button.Size = UDim2.fromOffset(width, 44) button.BackgroundColor3 = Color3.fromRGB(62, 64, 71) button.BackgroundTransparency = 0.35 button.BorderSizePixel = 0 button.Font = Enum.Font.BuilderSansBold button.Text = text button.TextColor3 = WHITE button.TextSize = textSize button.Parent = panel local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 7) corner.Parent = button return button end local title = createLabel(panel, "Title", "Coordinates", Enum.Font.BuilderSansBold, 15, WHITE) title.Position = UDim2.fromOffset(12, 0) title.Size = UDim2.new(1, -128, 0, HEADER_HEIGHT) title.Active = true local collapseButton = createButton("CollapseButton", "−", 44, 22, 4) local unloadButton = createButton("UnloadButton", "Unload", 60, 14, 52) local body = Instance.new("Frame") body.Name = "Body" body.Position = UDim2.fromOffset(0, HEADER_HEIGHT) body.Size = UDim2.new(1, 0, 1, -HEADER_HEIGHT) body.BackgroundTransparency = 1 body.Parent = panel local rows = Instance.new("Frame") rows.Name = "Rows" rows.Position = UDim2.fromOffset(12, 0) rows.Size = UDim2.new(1, -24, 1, -FOOTER_HEIGHT) rows.BackgroundTransparency = 1 rows.Parent = body local values = {} for index, axis in ipairs({ "X", "Y", "Z" }) do local row = Instance.new("Frame") row.Name = axis .. "Row" row.Position = UDim2.fromScale(0, (index - 1) / 3) row.Size = UDim2.fromScale(1, 1 / 3) row.BackgroundTransparency = 1 row.Parent = rows local axisLabel = createLabel(row, "Axis", axis, Enum.Font.BuilderSansBold, 14, MUTED) axisLabel.Size = UDim2.new(0, 20, 1, 0) local valueLabel = createLabel(row, "Value", DASH, Enum.Font.RobotoMono, 13, WHITE) valueLabel.Position = UDim2.fromOffset(24, 0) valueLabel.Size = UDim2.new(1, -24, 1, 0) valueLabel.TextXAlignment = Enum.TextXAlignment.Right values[axis] = valueLabel end local resizeHandle = createLabel(body, "ResizeHandle", "↙", Enum.Font.BuilderSansBold, 20, MUTED) resizeHandle.AnchorPoint = Vector2.new(0, 1) resizeHandle.Position = UDim2.new(0, 2, 1, -2) resizeHandle.Size = UDim2.fromOffset(44, 44) resizeHandle.TextXAlignment = Enum.TextXAlignment.Center resizeHandle.Active = true local collapsed = false local expandedSize = DEFAULT_SIZE local displayedSize = DEFAULT_SIZE local panelOffset = Vector2.new(MARGIN, MARGIN) local function layoutPanel() local bounds = safeArea.AbsoluteSize if bounds.X <= 0 or bounds.Y <= 0 then return end local desiredSize = if collapsed then COLLAPSED_SIZE else expandedSize local width = math.min(desiredSize.X, math.max(0, bounds.X - 2 * MARGIN)) local height = math.min(desiredSize.Y, math.max(0, bounds.Y - 2 * MARGIN)) displayedSize = Vector2.new(width, height) panelOffset = Vector2.new( math.clamp(panelOffset.X, MARGIN, math.max(MARGIN, bounds.X - MARGIN - width)), math.clamp(panelOffset.Y, MARGIN, math.max(MARGIN, bounds.Y - MARGIN - height)) ) panel.Position = UDim2.new(1, -panelOffset.X, 0, panelOffset.Y) panel.Size = UDim2.fromOffset(width, height) end type Gesture = { input: InputObject, pointerStart: Vector2, offsetStart: Vector2, sizeStart: Vector2, resizing: boolean, } local gesture: Gesture? = nil local connections: { RBXScriptConnection } = {} local function beginGesture(input: InputObject, resizing: boolean) local inputType = input.UserInputType if gesture or (inputType ~= Enum.UserInputType.MouseButton1 and inputType ~= Enum.UserInputType.Touch) then return end if resizing and collapsed then return end gesture = { input = input, pointerStart = Vector2.new(input.Position.X, input.Position.Y), offsetStart = panelOffset, sizeStart = displayedSize, resizing = resizing, } end title.InputBegan:Connect(function(input) beginGesture(input, false) end) resizeHandle.InputBegan:Connect(function(input) beginGesture(input, true) end) table.insert(connections, UserInputService.InputChanged:Connect(function(input) local current = gesture if not current then return end -- Mouse movement arrives separately. A touch keeps its original input object. if current.input.UserInputType == Enum.UserInputType.Touch then if input ~= current.input then return end elseif input.UserInputType ~= Enum.UserInputType.MouseMovement then return end local delta = Vector2.new(input.Position.X, input.Position.Y) - current.pointerStart if current.resizing then -- Grow left and down while holding the top-right corner in place. local bounds = safeArea.AbsoluteSize local maxWidth = math.max(0, bounds.X - current.offsetStart.X - MARGIN) local maxHeight = math.max(0, bounds.Y - current.offsetStart.Y - MARGIN) expandedSize = Vector2.new( math.clamp(current.sizeStart.X - delta.X, math.min(MIN_SIZE.X, maxWidth), maxWidth), math.clamp(current.sizeStart.Y + delta.Y, math.min(MIN_SIZE.Y, maxHeight), maxHeight) ) else panelOffset = current.offsetStart + Vector2.new(-delta.X, delta.Y) end layoutPanel() end)) table.insert(connections, UserInputService.InputEnded:Connect(function(input) local current = gesture if current and (input == current.input or ( current.input.UserInputType == Enum.UserInputType.MouseButton1 and input.UserInputType == Enum.UserInputType.MouseButton1 )) then gesture = nil end end)) table.insert(connections, UserInputService.WindowFocusReleased:Connect(function() gesture = nil end)) safeArea:GetPropertyChangedSignal("AbsoluteSize"):Connect(function() gesture = nil layoutPanel() end) collapseButton.Activated:Connect(function() gesture = nil collapsed = not collapsed body.Visible = not collapsed collapseButton.Text = if collapsed then "+" else "−" layoutPanel() end) local character = player.Character local function showCoordinates(position: Vector3?) if position then values.X.Text = string.format("%.1f studs", position.X) values.Y.Text = string.format("%.1f studs", position.Y) values.Z.Text = string.format("%.1f studs", position.Z) else values.X.Text = DASH values.Y.Text = DASH values.Z.Text = DASH end end local function updateCoordinates() local rootPart = character and character:FindFirstChild("HumanoidRootPart") if rootPart and rootPart:IsA("BasePart") and rootPart:IsDescendantOf(workspace) then showCoordinates(rootPart.Position) else showCoordinates(nil) end end table.insert(connections, player.CharacterAdded:Connect(function(newCharacter) character = newCharacter updateCoordinates() end)) table.insert(connections, player.CharacterRemoving:Connect(function(oldCharacter) if character == oldCharacter then character = nil showCoordinates(nil) end end)) local elapsed = 0 table.insert(connections, RunService.Heartbeat:Connect(function(deltaTime) elapsed += deltaTime if elapsed >= UPDATE_INTERVAL then elapsed %= UPDATE_INTERVAL updateCoordinates() end end)) local function disconnect() gesture = nil for _, connection in ipairs(connections) do connection:Disconnect() end table.clear(connections) end screenGui.Destroying:Connect(disconnect) unloadButton.Activated:Connect(function() disconnect() screenGui:Destroy() end) screenGui.Parent = playerGui layoutPanel() updateCoordinates()