local Players = game:GetService("Players") local player = Players.LocalPlayer local teleporting = false local screenGui = Instance.new("ScreenGui", game.CoreGui) screenGui.Name = "StudGrindUI" screenGui.ResetOnSpawn = false local mainFrame = Instance.new("Frame") mainFrame.Size = UDim2.new(0, 300, 0, 180) mainFrame.Position = UDim2.new(0.3, 0, 0.3, 0) mainFrame.BackgroundColor3 = Color3.fromRGB(35, 35, 35) mainFrame.BorderSizePixel = 0 mainFrame.Active = true mainFrame.Draggable = true mainFrame.Parent = screenGui local titleLabel = Instance.new("TextLabel") titleLabel.Size = UDim2.new(1, 0, 0, 30) titleLabel.Position = UDim2.new(0, 0, 0, 0) titleLabel.BackgroundColor3 = Color3.fromRGB(20, 20, 20) titleLabel.Text = "Phoneix Stud Simulator Script" titleLabel.TextColor3 = Color3.new(1, 1, 1) titleLabel.TextSize = 14 titleLabel.Font = Enum.Font.SourceSansBold titleLabel.Parent = mainFrame local closeButton = Instance.new("TextButton") closeButton.Size = UDim2.new(0, 30, 0, 30) closeButton.Position = UDim2.new(1, -30, 0, 0) closeButton.Text = "X" closeButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50) closeButton.TextColor3 = Color3.new(1, 1, 1) closeButton.Font = Enum.Font.SourceSans closeButton.TextSize = 18 closeButton.Parent = mainFrame local minimizeButton = Instance.new("TextButton") minimizeButton.Size = UDim2.new(0, 30, 0, 30) minimizeButton.Position = UDim2.new(1, -60, 0, 0) minimizeButton.Text = "–" minimizeButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100) minimizeButton.TextColor3 = Color3.new(1, 1, 1) minimizeButton.Font = Enum.Font.SourceSans minimizeButton.TextSize = 18 minimizeButton.Parent = mainFrame local grindButton = Instance.new("TextButton") grindButton.Size = UDim2.new(1, -40, 0, 50) grindButton.Position = UDim2.new(0, 20, 0, 80) grindButton.BackgroundColor3 = Color3.fromRGB(70, 150, 70) grindButton.TextColor3 = Color3.new(1, 1, 1) grindButton.Font = Enum.Font.SourceSansBold grindButton.TextSize = 20 grindButton.Text = "Get all Studs" grindButton.Parent = mainFrame local openButton = Instance.new("TextButton") openButton.Size = UDim2.new(0, 120, 0, 30) openButton.Position = UDim2.new(0, 10, 0, 10) openButton.Text = "Open Mod Menu" openButton.BackgroundColor3 = Color3.fromRGB(70, 70, 70) openButton.TextColor3 = Color3.new(1, 1, 1) openButton.Font = Enum.Font.SourceSansBold openButton.TextSize = 14 openButton.Visible = false openButton.Parent = screenGui closeButton.MouseButton1Click:Connect(function() mainFrame:Destroy() openButton:Destroy() end) minimizeButton.MouseButton1Click:Connect(function() mainFrame.Visible = false openButton.Visible = true end) openButton.MouseButton1Click:Connect(function() mainFrame.Visible = true openButton.Visible = false end) local function teleportLoop() for i=1,math.huge do if teleporting then local stud = workspace:FindFirstChild("Stud") or workspace:FindFirstChild("Stud2") if stud and stud:IsA("BasePart") then local hrp = player.Character and player.Character:FindFirstChild("HumanoidRootPart") hrp.CFrame = stud.CFrame else print("Failed to find stud!!!") end task.wait() else break end end end grindButton.MouseButton1Click:Connect(function() teleporting = not teleporting if teleporting then grindButton.Text = "Stop Grinding" task.spawn(teleportLoop) else grindButton.Text = "Get All Studs" end end)