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)