local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoidRootPart = character:WaitForChild("HumanoidRootPart") local screenGui = Instance.new("ScreenGui") screenGui.Name = "CoordinateGUI" screenGui.Parent = player:WaitForChild("PlayerGui") local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 220, 0, 130) frame.Position = UDim2.new(0, 10, 0, 10) frame.BackgroundTransparency = 0.5 frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0) frame.Active = true frame.Draggable = true frame.Parent = screenGui local coordinatesLabel = Instance.new("TextLabel") coordinatesLabel.Size = UDim2.new(1, 0, 0, 80) coordinatesLabel.Position = UDim2.new(0, 0, 0, 0) coordinatesLabel.TextColor3 = Color3.fromRGB(255, 255, 255) coordinatesLabel.TextSize = 20 coordinatesLabel.BackgroundTransparency = 1 coordinatesLabel.Text = "X: 0\nY: 0\nZ: 0" coordinatesLabel.Font = Enum.Font.SourceSansBold coordinatesLabel.TextWrapped = true coordinatesLabel.Parent = frame local copyButton = Instance.new("TextButton") copyButton.Size = UDim2.new(1, -10, 0, 40) copyButton.Position = UDim2.new(0, 5, 0, 85) copyButton.BackgroundColor3 = Color3.fromRGB(30, 144, 255) copyButton.TextColor3 = Color3.fromRGB(255, 255, 255) copyButton.TextSize = 18 copyButton.Font = Enum.Font.SourceSansBold copyButton.Text = "Coordinate Copy" copyButton.Parent = frame local currentCoordinates = "" local function updateCoordinates() local position = humanoidRootPart.Position currentCoordinates = string.format("X: %.2f\nY: %.2f\nZ: %.2f", position.X, position.Y, position.Z) coordinatesLabel.Text = currentCoordinates end game:GetService("RunService").RenderStepped:Connect(updateCoordinates) copyButton.MouseButton1Click:Connect(function() if setclipboard then setclipboard(currentCoordinates) end end)