local player = game.Players.LocalPlayer
local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
gui.Name = "AutoCutterGUI"
local mainFrame = Instance.new("Frame", gui)
mainFrame.Size = UDim2.new(0, 220, 0, 160)
mainFrame.Position = UDim2.new(0.5, -110, 0.7, 0)
mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
mainFrame.Active = true
mainFrame.Draggable = true
-- Label
local dropdownLabel = Instance.new("TextLabel", mainFrame)
dropdownLabel.Size = UDim2.new(1, -20, 0, 25)
dropdownLabel.Position = UDim2.new(0, 10, 0, 5)
dropdownLabel.BackgroundTransparency = 1
dropdownLabel.Text = "Select Area:"
dropdownLabel.TextColor3 = Color3.new(1, 1, 1)
dropdownLabel.Font = Enum.Font.Gotham
dropdownLabel.TextScaled = true
-- Dropdown button
local dropdown = Instance.new("TextButton", mainFrame)
dropdown.Size = UDim2.new(1, -20, 0, 30)
dropdown.Position = UDim2.new(0, 10, 0, 30)
dropdown.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
dropdown.Text = "SakuraFields"
dropdown.TextColor3 = Color3.new(1, 1, 1)
dropdown.Font = Enum.Font.Gotham
dropdown.TextScaled = true
-- Toggle button
local toggleBtn = Instance.new("TextButton", mainFrame)
toggleBtn.Size = UDim2.new(1, -20, 0, 30)
toggleBtn.Position = UDim2.new(0, 10, 0, 120)
toggleBtn.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
toggleBtn.Text = "Auto Cutter: OFF"
toggleBtn.TextScaled = true
toggleBtn.Font = Enum.Font.GothamBold
toggleBtn.TextColor3 = Color3.new(1, 1, 1)
-- Dropdown frame
local options = {
"ArcticBase", "CastleKeep", "CrystalCave", "SakuraFields", "Spawn",
"TheJungle", "ThePark", "TheSea", "TheSwamp", "TrainingGrounds"
}
local dropdownFrame = Instance.new("Frame", mainFrame)
dropdownFrame.Size = UDim2.new(1, -20, 0, #options * 25)
dropdownFrame.Position = UDim2.new(0, 10, 0, 60)
dropdownFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
dropdownFrame.Visible = false
dropdownFrame.ClipsDescendants = true
for i, area in ipairs(options) do
local optionBtn = Instance.new("TextButton", dropdownFrame)
optionBtn.Size = UDim2.new(1, 0, 0, 25)
optionBtn.Position = UDim2.new(0, 0, 0, (i - 1) * 25)
optionBtn.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
optionBtn.TextColor3 = Color3.new(1, 1, 1)
optionBtn.Text = area
optionBtn.Font = Enum.Font.Gotham
optionBtn.TextScaled = true
optionBtn.MouseButton1Click:Connect(function()
dropdown.Text = area
dropdownFrame.Visible = false
end)
end
dropdown.MouseButton1Click:Connect(function()
dropdownFrame.Visible = not dropdownFrame.Visible
end)
--// Logic
local replicatedStorage = game:GetService("ReplicatedStorage")
local destroyRemote = replicatedStorage:WaitForChild("Remotes"):WaitForChild("DestroySegment")
local running = false
local function autoDestroyLoop()
while running do
for segmentId = 1, 500 do
destroyRemote:FireServer(segmentId, dropdown.Text, 2)
end
task.wait(.5)
end
end
toggleBtn.MouseButton1Click:Connect(function()
running = not running
if running then
toggleBtn.Text = "Auto Cutter: ON"
toggleBtn.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
task.spawn(autoDestroyLoop)
else
toggleBtn.Text = "Auto Cutter: OFF"
toggleBtn.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
end
end)
Comments
thnak you works quickly and no lag