local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local player = Players.LocalPlayer local Remote = ReplicatedStorage:WaitForChild("BlockTouched") -- GUI local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui")) gui.Name = "BlockGUI" local frame = Instance.new("Frame", gui) frame.Size = UDim2.new(0, 250, 0, 150) frame.Position = UDim2.new(0.5, -125, 0.5, -75) frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) frame.Active = true frame.Draggable = true -- Title local title = Instance.new("TextLabel", frame) title.Size = UDim2.new(1, 0, 0, 30) title.Text = "Block Auto" title.BackgroundColor3 = Color3.fromRGB(20, 20, 20) title.TextColor3 = Color3.new(1,1,1) -- TextBox (Area name) local box = Instance.new("TextBox", frame) box.Size = UDim2.new(1, -20, 0, 30) box.Position = UDim2.new(0, 10, 0, 40) box.PlaceholderText = "Enter Area (e.g. Starter)" box.Text = "Starter" box.BackgroundColor3 = Color3.fromRGB(50, 50, 50) box.TextColor3 = Color3.new(1,1,1) -- Toggle button local toggle = Instance.new("TextButton", frame) toggle.Size = UDim2.new(1, -20, 0, 30) toggle.Position = UDim2.new(0, 10, 0, 80) toggle.Text = "Start" toggle.BackgroundColor3 = Color3.fromRGB(70, 70, 70) toggle.TextColor3 = Color3.new(1,1,1) local running = false toggle.MouseButton1Click:Connect(function() running = not running toggle.Text = running and "Stop" or "Start" end) -- Loop task.spawn(function() while true do task.wait(0.2) if running then local areaName = box.Text local area = workspace:FindFirstChild("Areas") and workspace.Areas:FindFirstChild(areaName) if area and area:FindFirstChild("Blocks") then for _, block in pairs(area.Blocks:GetChildren()) do if block:IsA("BasePart") or block:IsA("Model") then Remote:FireServer(block, 100) end end end end end end)