local Players = game:GetService("Players") local TweenService = game:GetService("TweenService") local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() -- GUI Setup local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui")) screenGui.Name = "StudGrinderUI" screenGui.ResetOnSpawn = false -- Main Frame local mainFrame = Instance.new("Frame") mainFrame.Size = UDim2.new(0, 250, 0, 180) mainFrame.Position = UDim2.new(0.3, 0, 0.2, 0) mainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25) mainFrame.BorderSizePixel = 0 mainFrame.Active = true mainFrame.Draggable = true mainFrame.Parent = screenGui mainFrame.Name = "MainFrame" mainFrame.Visible = true -- Frame UI Corner local uiCorner = Instance.new("UICorner", mainFrame) uiCorner.CornerRadius = UDim.new(0, 10) -- Title Label local title = Instance.new("TextLabel") title.Text = "Stud Grinder v2 script by MRWHITE_BOBO" title.Size = UDim2.new(1, 0, 0, 30) title.BackgroundTransparency = 1 title.TextColor3 = Color3.new(1, 1, 1) title.Font = Enum.Font.GothamBold title.TextSize = 18 title.Parent = mainFrame -- Close Button local closeButton = Instance.new("TextButton") closeButton.Text = "X" closeButton.Size = UDim2.new(0, 30, 0, 30) closeButton.Position = UDim2.new(1, -30, 0, 0) closeButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50) closeButton.TextColor3 = Color3.new(1, 1, 1) closeButton.Font = Enum.Font.Gotham closeButton.TextSize = 14 closeButton.Parent = mainFrame Instance.new("UICorner", closeButton).CornerRadius = UDim.new(0, 5) -- Minimize Button local minimizeButton = Instance.new("TextButton") minimizeButton.Text = "-" minimizeButton.Size = UDim2.new(0, 30, 0, 30) minimizeButton.Position = UDim2.new(1, -60, 0, 0) minimizeButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100) minimizeButton.TextColor3 = Color3.new(1, 1, 1) minimizeButton.Font = Enum.Font.Gotham minimizeButton.TextSize = 14 minimizeButton.Parent = mainFrame Instance.new("UICorner", minimizeButton).CornerRadius = UDim.new(0, 5) -- Minimized Button local minimizedButton = Instance.new("TextButton") minimizedButton.Text = "📦" minimizedButton.Size = UDim2.new(0, 40, 0, 40) minimizedButton.Position = UDim2.new(0, 10, 0.5, -20) minimizedButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40) minimizedButton.TextColor3 = Color3.new(1, 1, 1) minimizedButton.Font = Enum.Font.GothamBold minimizedButton.TextSize = 20 minimizedButton.Visible = false minimizedButton.Parent = screenGui Instance.new("UICorner", minimizedButton).CornerRadius = UDim.new(0, 10) -- Start Grinding Button local startButton = Instance.new("TextButton") startButton.Text = "Start Grinding" startButton.Size = UDim2.new(0.8, 0, 0, 40) startButton.Position = UDim2.new(0.1, 0, 0.5, -20) startButton.BackgroundColor3 = Color3.fromRGB(50, 150, 250) startButton.TextColor3 = Color3.new(1, 1, 1) startButton.Font = Enum.Font.GothamBold startButton.TextSize = 16 startButton.Parent = mainFrame Instance.new("UICorner", startButton).CornerRadius = UDim.new(0, 8) -- Button Actions closeButton.MouseButton1Click:Connect(function() screenGui:Destroy() end) minimizeButton.MouseButton1Click:Connect(function() mainFrame.Visible = false minimizedButton.Visible = true end) minimizedButton.MouseButton1Click:Connect(function() mainFrame.Visible = true minimizedButton.Visible = false end) -- Grinding Logic local grinding = false local function teleportToPosition(pos) if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then player.Character:MoveTo(pos) end end local function teleportToPart(part) if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then player.Character:MoveTo(part.Position) end end startButton.MouseButton1Click:Connect(function() if grinding then return end grinding = true -- Initial teleport teleportToPosition(Vector3.new(-43.1, 4.0, 12860.2)) task.wait(1) while grinding do local studPart = workspace:FindFirstChild("Stud9") if studPart then teleportToPart(studPart) else grinding = false warn("Stopped grinding. Stud9 not found.") end task.wait(1) end end)