-- LocalScript in StarterGui local Players = game:GetService("Players") local RunService = game:GetService("RunService") local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local hrp = character:WaitForChild("HumanoidRootPart") -- Create UI local screenGui = Instance.new("ScreenGui") screenGui.Name = "ModMenu" screenGui.ResetOnSpawn = false screenGui.Parent = player:WaitForChild("PlayerGui") -- Create Frame local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 220, 0, 100) frame.Position = UDim2.new(0, 10, 0.25, 0) frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) frame.BorderSizePixel = 0 frame.BackgroundTransparency = 0.2 frame.Parent = screenGui -- Create Position Label local posLabel = Instance.new("TextLabel") posLabel.Size = UDim2.new(1, -10, 0, 60) posLabel.Position = UDim2.new(0, 5, 0, 5) posLabel.BackgroundTransparency = 1 posLabel.TextColor3 = Color3.fromRGB(255, 255, 255) posLabel.TextXAlignment = Enum.TextXAlignment.Left posLabel.Font = Enum.Font.Code posLabel.TextSize = 16 posLabel.TextWrapped = true posLabel.Text = "Position: Loading..." posLabel.Parent = frame -- Create Copy Button local copyButton = Instance.new("TextButton") copyButton.Size = UDim2.new(1, -10, 0, 30) copyButton.Position = UDim2.new(0, 5, 1, -35) copyButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50) copyButton.TextColor3 = Color3.fromRGB(255, 255, 255) copyButton.Font = Enum.Font.Code copyButton.TextSize = 16 copyButton.Text = "Copy Position" copyButton.Parent = frame -- Update position text live RunService.RenderStepped:Connect(function() if hrp and hrp.Parent then local pos = hrp.Position posLabel.Text = string.format("Position:\nX: %.1f\nY: %.1f\nZ: %.1f", pos.X, pos.Y, pos.Z) end end) -- Copy position to clipboard on click copyButton.MouseButton1Click:Connect(function() if hrp and hrp.Parent then local pos = hrp.Position local text = string.format("Vector3.new(%.1f, %.1f, %.1f)", pos.X, pos.Y, pos.Z) -- Only works in exploits (or studio with enable setclipboard) pcall(function() setclipboard(text) end) copyButton.Text = "Copied!" wait(1) copyButton.Text = "Copy Position" end end)