Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Ultimate Roblox Username Scraper (Fixed: mobile dropdowns, custom drag, webhook)
- -- Output is a selectable, scrollable TextBox inside a ScrollingFrame.
- -- Dropdown overlays, start/stop/copy all work.
- -- Scrape Amount and Scrape Mode labels are always visible.
- -- Added webhook support: when an available username is found, it posts to the webhook URL (if provided).
- local Players = game:GetService("Players")
- local HttpService = game:GetService("HttpService")
- local UserInputService = game:GetService("UserInputService")
- local player = Players.LocalPlayer
- local function createUI()
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "UltimateUsernameScraper"
- screenGui.Parent = player:WaitForChild("PlayerGui")
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 500, 0, 540)
- frame.Position = UDim2.new(0.5, -250, 0.5, -270)
- frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- frame.BorderSizePixel = 0
- frame.ZIndex = 1
- frame.Parent = screenGui
- -- Do NOT use Frame.Draggable (interferes with touch input on mobile).
- -- We'll implement custom dragging using the title bar.
- local title = Instance.new("TextLabel")
- title.Text = "Ultimate Roblox Username Scraper"
- title.Font = Enum.Font.GothamBlack
- title.TextSize = 24
- title.Size = UDim2.new(1, 0, 0, 40)
- title.BackgroundTransparency = 1
- title.TextColor3 = Color3.fromRGB(220, 220, 220)
- title.ZIndex = 2
- title.Parent = frame
- local digitLabel = Instance.new("TextLabel")
- digitLabel.Text = "Username Length:"
- digitLabel.Font = Enum.Font.Gotham
- digitLabel.TextSize = 18
- digitLabel.Position = UDim2.new(0, 20, 0, 48)
- digitLabel.Size = UDim2.new(0, 160, 0, 30)
- digitLabel.BackgroundTransparency = 1
- digitLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
- digitLabel.ZIndex = 2
- digitLabel.Parent = frame
- local digitDropdown = Instance.new("TextButton")
- digitDropdown.Size = UDim2.new(0, 140, 0, 30)
- digitDropdown.Position = UDim2.new(0, 180, 0, 48)
- digitDropdown.Text = "6"
- digitDropdown.Font = Enum.Font.Gotham
- digitDropdown.TextSize = 18
- digitDropdown.BackgroundColor3 = Color3.fromRGB(230, 230, 230)
- digitDropdown.TextColor3 = Color3.fromRGB(0, 0, 0)
- digitDropdown.ZIndex = 2
- digitDropdown.Parent = frame
- local digitDropdownMenu = Instance.new("Frame")
- digitDropdownMenu.Size = UDim2.new(0, 140, 0, 340)
- digitDropdownMenu.Position = UDim2.new(0, 180, 0, 78)
- digitDropdownMenu.BackgroundColor3 = Color3.fromRGB(220, 220, 220)
- digitDropdownMenu.Visible = false
- digitDropdownMenu.ZIndex = 10
- digitDropdownMenu.Parent = frame
- local digitOptions = {}
- for i=4,20 do
- local btn = Instance.new("TextButton")
- btn.Size = UDim2.new(1, 0, 0, 17)
- btn.Position = UDim2.new(0, 0, 0, (i-4)*17)
- btn.Text = tostring(i)
- btn.Font = Enum.Font.Gotham
- btn.TextSize = 15
- btn.TextColor3 = Color3.fromRGB(0, 0, 0)
- btn.BackgroundColor3 = Color3.fromRGB(220, 220, 220)
- btn.ZIndex = 11
- btn.Parent = digitDropdownMenu
- digitOptions[i] = btn
- end
- digitDropdown.MouseButton1Click:Connect(function()
- digitDropdownMenu.Visible = not digitDropdownMenu.Visible
- -- Ensure other menus are closed
- variantDropdownMenu.Visible = false
- amtTypeDropdownMenu.Visible = false
- end)
- for i, btn in pairs(digitOptions) do
- btn.MouseButton1Click:Connect(function()
- digitDropdown.Text = btn.Text
- digitDropdownMenu.Visible = false
- end)
- end
- -- Variant label and dropdown
- local variantLabel = Instance.new("TextLabel")
- variantLabel.Text = "Variant:"
- variantLabel.Font = Enum.Font.Gotham
- variantLabel.TextSize = 18
- variantLabel.Position = UDim2.new(0, 20, 0, 88)
- variantLabel.Size = UDim2.new(0, 160, 0, 30)
- variantLabel.BackgroundTransparency = 1
- variantLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
- variantLabel.ZIndex = 2
- variantLabel.Parent = frame
- local variantDropdown = Instance.new("TextButton")
- variantDropdown.Size = UDim2.new(0, 140, 0, 30)
- variantDropdown.Position = UDim2.new(0, 180, 0, 88)
- variantDropdown.Text = "Random"
- variantDropdown.Font = Enum.Font.Gotham
- variantDropdown.TextSize = 18
- variantDropdown.BackgroundColor3 = Color3.fromRGB(230, 230, 230)
- variantDropdown.TextColor3 = Color3.fromRGB(0, 0, 0)
- variantDropdown.ZIndex = 2
- variantDropdown.Parent = frame
- local variantDropdownMenu = Instance.new("Frame")
- variantDropdownMenu.Size = UDim2.new(0, 140, 0, 51)
- variantDropdownMenu.Position = UDim2.new(0, 180, 0, 118)
- variantDropdownMenu.BackgroundColor3 = Color3.fromRGB(220, 220, 220)
- variantDropdownMenu.Visible = false
- variantDropdownMenu.ZIndex = 10
- variantDropdownMenu.Parent = frame
- local variants = {"Random", "Double Digit", "Repeating Numbers"}
- local variantButtons = {}
- for i, v in ipairs(variants) do
- local btn = Instance.new("TextButton")
- btn.Size = UDim2.new(1, 0, 0, 17)
- btn.Position = UDim2.new(0, 0, 0, (i-1)*17)
- btn.Text = v
- btn.Font = Enum.Font.Gotham
- btn.TextSize = 15
- btn.TextColor3 = Color3.fromRGB(0, 0, 0)
- btn.BackgroundColor3 = Color3.fromRGB(220, 220, 220)
- btn.ZIndex = 11
- btn.Parent = variantDropdownMenu
- variantButtons[v] = btn
- end
- variantDropdown.MouseButton1Click:Connect(function()
- variantDropdownMenu.Visible = not variantDropdownMenu.Visible
- -- Ensure other menus are closed
- digitDropdownMenu.Visible = false
- amtTypeDropdownMenu.Visible = false
- end)
- for v, btn in pairs(variantButtons) do
- btn.MouseButton1Click:Connect(function()
- variantDropdown.Text = btn.Text
- variantDropdownMenu.Visible = false
- end)
- end
- -- Scrape Mode label and dropdown (always visible)
- local scrapeModeLabel = Instance.new("TextLabel")
- scrapeModeLabel.Text = "Scrape Mode:"
- scrapeModeLabel.Font = Enum.Font.Gotham
- scrapeModeLabel.TextSize = 18
- scrapeModeLabel.Position = UDim2.new(0, 20, 0, 128)
- scrapeModeLabel.Size = UDim2.new(0, 160, 0, 30)
- scrapeModeLabel.BackgroundTransparency = 1
- scrapeModeLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
- scrapeModeLabel.ZIndex = 2
- scrapeModeLabel.Parent = frame
- local amtTypeDropdown = Instance.new("TextButton")
- amtTypeDropdown.Size = UDim2.new(0, 140, 0, 30)
- amtTypeDropdown.Position = UDim2.new(0, 180, 0, 128)
- amtTypeDropdown.Text = "Set Amount"
- amtTypeDropdown.Font = Enum.Font.Gotham
- amtTypeDropdown.TextSize = 18
- amtTypeDropdown.BackgroundColor3 = Color3.fromRGB(230, 230, 230)
- amtTypeDropdown.TextColor3 = Color3.fromRGB(0, 0, 0)
- amtTypeDropdown.ZIndex = 2
- amtTypeDropdown.Parent = frame
- local amtTypeDropdownMenu = Instance.new("Frame")
- amtTypeDropdownMenu.Size = UDim2.new(0, 140, 0, 34)
- amtTypeDropdownMenu.Position = UDim2.new(0, 180, 0, 158)
- amtTypeDropdownMenu.BackgroundColor3 = Color3.fromRGB(220, 220, 220)
- amtTypeDropdownMenu.Visible = false
- amtTypeDropdownMenu.ZIndex = 10
- amtTypeDropdownMenu.Parent = frame
- local amtTypes = {"Set Amount", "Until Stopped"}
- local amtTypeButtons = {}
- for i, v in ipairs(amtTypes) do
- local btn = Instance.new("TextButton")
- btn.Size = UDim2.new(1, 0, 0, 17)
- btn.Position = UDim2.new(0, 0, 0, (i-1)*17)
- btn.Text = v
- btn.Font = Enum.Font.Gotham
- btn.TextSize = 15
- btn.TextColor3 = Color3.fromRGB(0, 0, 0)
- btn.BackgroundColor3 = Color3.fromRGB(220, 220, 220)
- btn.ZIndex = 11
- btn.Parent = amtTypeDropdownMenu
- amtTypeButtons[v] = btn
- end
- amtTypeDropdown.MouseButton1Click:Connect(function()
- amtTypeDropdownMenu.Visible = not amtTypeDropdownMenu.Visible
- -- Ensure other menus are closed
- digitDropdownMenu.Visible = false
- variantDropdownMenu.Visible = false
- end)
- for v, btn in pairs(amtTypeButtons) do
- btn.MouseButton1Click:Connect(function()
- amtTypeDropdown.Text = btn.Text
- amtTypeDropdownMenu.Visible = false
- end)
- end
- -- Scrape Amount label and box (always visible, hide box only for "Until Stopped")
- local scrapeAmountLabel = Instance.new("TextLabel")
- scrapeAmountLabel.Text = "Scrape Amount:"
- scrapeAmountLabel.Font = Enum.Font.Gotham
- scrapeAmountLabel.TextSize = 18
- scrapeAmountLabel.Position = UDim2.new(0, 20, 0, 168)
- scrapeAmountLabel.Size = UDim2.new(0, 160, 0, 30)
- scrapeAmountLabel.BackgroundTransparency = 1
- scrapeAmountLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
- scrapeAmountLabel.ZIndex = 2
- scrapeAmountLabel.Parent = frame
- local amtBox = Instance.new("TextBox")
- amtBox.Size = UDim2.new(0, 140, 0, 30)
- amtBox.Position = UDim2.new(0, 180, 0, 168)
- amtBox.Font = Enum.Font.Gotham
- amtBox.Text = "25"
- amtBox.TextSize = 18
- amtBox.TextColor3 = Color3.fromRGB(0, 0, 0)
- amtBox.BackgroundColor3 = Color3.fromRGB(230, 230, 230)
- amtBox.ZIndex = 2
- amtBox.Parent = frame
- -- New: Webhook label and box (optional)
- local webhookLabel = Instance.new("TextLabel")
- webhookLabel.Text = "Webhook URL (optional):"
- webhookLabel.Font = Enum.Font.Gotham
- webhookLabel.TextSize = 16
- webhookLabel.Position = UDim2.new(0, 20, 0, 208)
- webhookLabel.Size = UDim2.new(0, 160, 0, 26)
- webhookLabel.BackgroundTransparency = 1
- webhookLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
- webhookLabel.ZIndex = 2
- webhookLabel.Parent = frame
- local webhookBox = Instance.new("TextBox")
- webhookBox.Size = UDim2.new(0, 300, 0, 26)
- webhookBox.Position = UDim2.new(0, 180, 0, 208)
- webhookBox.Font = Enum.Font.Gotham
- webhookBox.Text = "" -- put your webhook URL here if you want
- webhookBox.TextSize = 16
- webhookBox.TextColor3 = Color3.fromRGB(0, 0, 0)
- webhookBox.BackgroundColor3 = Color3.fromRGB(230, 230, 230)
- webhookBox.ZIndex = 2
- webhookBox.ClearTextOnFocus = false
- webhookBox.Parent = frame
- local speedLabel = Instance.new("TextLabel")
- speedLabel.Text = "Speed (sec/request):"
- speedLabel.Font = Enum.Font.Gotham
- speedLabel.TextSize = 18
- speedLabel.Position = UDim2.new(0, 20, 0, 248)
- speedLabel.Size = UDim2.new(0, 180, 0, 30)
- speedLabel.BackgroundTransparency = 1
- speedLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
- speedLabel.ZIndex = 2
- speedLabel.Parent = frame
- local speedBox = Instance.new("TextBox")
- speedBox.Size = UDim2.new(0, 60, 0, 30)
- speedBox.Position = UDim2.new(0, 200, 0, 248)
- speedBox.Font = Enum.Font.Gotham
- speedBox.Text = "0.5"
- speedBox.TextSize = 18
- speedBox.TextColor3 = Color3.fromRGB(0, 0, 0)
- speedBox.BackgroundColor3 = Color3.fromRGB(230, 230, 230)
- speedBox.ZIndex = 2
- speedBox.Parent = frame
- local startBtn = Instance.new("TextButton")
- startBtn.Size = UDim2.new(0, 160, 0, 36)
- startBtn.Position = UDim2.new(0, 20, 0, 294)
- startBtn.Text = "Start Scraping"
- startBtn.Font = Enum.Font.GothamBold
- startBtn.TextSize = 20
- startBtn.BackgroundColor3 = Color3.fromRGB(60, 180, 75)
- startBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- startBtn.ZIndex = 2
- startBtn.Parent = frame
- local stopBtn = Instance.new("TextButton")
- stopBtn.Size = UDim2.new(0, 120, 0, 36)
- stopBtn.Position = UDim2.new(0, 200, 0, 294)
- stopBtn.Text = "Stop"
- stopBtn.Font = Enum.Font.GothamBold
- stopBtn.TextSize = 20
- stopBtn.BackgroundColor3 = Color3.fromRGB(180, 60, 60)
- stopBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- stopBtn.ZIndex = 2
- stopBtn.Parent = frame
- stopBtn.Visible = false
- local statusLabel = Instance.new("TextLabel")
- statusLabel.Text = "Status: Idle"
- statusLabel.Font = Enum.Font.Gotham
- statusLabel.TextSize = 16
- statusLabel.Position = UDim2.new(0, 20, 0, 337)
- statusLabel.Size = UDim2.new(0, 460, 0, 22)
- statusLabel.BackgroundTransparency = 1
- statusLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
- statusLabel.ZIndex = 2
- statusLabel.Parent = frame
- local outLabel = Instance.new("TextLabel")
- outLabel.Text = "Potentially Available Usernames:"
- outLabel.Font = Enum.Font.Gotham
- outLabel.TextSize = 18
- outLabel.Position = UDim2.new(0, 20, 0, 362)
- outLabel.Size = UDim2.new(0, 260, 0, 26)
- outLabel.BackgroundTransparency = 1
- outLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
- outLabel.ZIndex = 2
- outLabel.Parent = frame
- -- Scrollable & copyable output (TextBox inside ScrollingFrame)
- local outputScroll = Instance.new("ScrollingFrame")
- outputScroll.Size = UDim2.new(0, 460, 0, 150)
- outputScroll.Position = UDim2.new(0, 20, 0, 392)
- outputScroll.BackgroundColor3 = Color3.fromRGB(240, 240, 240)
- outputScroll.BorderSizePixel = 0
- outputScroll.CanvasSize = UDim2.new(0,0,0,150)
- outputScroll.ScrollBarThickness = 10
- outputScroll.ZIndex = 2
- outputScroll.Parent = frame
- outputScroll.AutomaticCanvasSize = Enum.AutomaticSize.Y
- outputScroll.ClipsDescendants = true
- local outputBox = Instance.new("TextBox")
- outputBox.Size = UDim2.new(1, -12, 0, 0)
- outputBox.Position = UDim2.new(0, 4, 0, 0)
- outputBox.BackgroundTransparency = 1
- outputBox.TextColor3 = Color3.fromRGB(0, 0, 0)
- outputBox.Font = Enum.Font.Code
- outputBox.TextSize = 22
- outputBox.TextXAlignment = Enum.TextXAlignment.Left
- outputBox.TextYAlignment = Enum.TextYAlignment.Top
- outputBox.TextWrapped = false
- outputBox.Text = ""
- outputBox.ZIndex = 2
- outputBox.MultiLine = true
- outputBox.TextEditable = true -- Allows selection & copy!
- outputBox.ClearTextOnFocus = false
- outputBox.AutomaticSize = Enum.AutomaticSize.Y
- outputBox.Parent = outputScroll
- local copyBtn = Instance.new("TextButton")
- copyBtn.Size = UDim2.new(0, 120, 0, 32)
- copyBtn.Position = UDim2.new(0, 360, 0, 362)
- copyBtn.Text = "Copy"
- copyBtn.Font = Enum.Font.GothamBold
- copyBtn.TextSize = 17
- copyBtn.BackgroundColor3 = Color3.fromRGB(70, 130, 180)
- copyBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- copyBtn.ZIndex = 2
- copyBtn.Parent = frame
- -- Helper to close menus when clicking/touching outside the frame
- local function pointIsInsideGui(gui, point)
- local pos = gui.AbsolutePosition
- local size = gui.AbsoluteSize
- return point.X >= pos.X and point.X <= pos.X + size.X and point.Y >= pos.Y and point.Y <= pos.Y + size.Y
- end
- UserInputService.InputBegan:Connect(function(input, gameProcessed)
- -- Only run on primary touch/mouse button (avoid keyboard)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- local p = input.Position
- -- If clicked/touched outside the frame, close menus
- if not pointIsInsideGui(frame, p) then
- digitDropdownMenu.Visible = false
- variantDropdownMenu.Visible = false
- amtTypeDropdownMenu.Visible = false
- end
- end
- end)
- -- Keep the labels visible and hide/show amtBox when mode changes
- amtTypeDropdown:GetPropertyChangedSignal("Text"):Connect(function()
- if amtTypeDropdown.Text == "Set Amount" then
- amtBox.Visible = true
- else
- amtBox.Visible = false
- end
- -- Labels always visible
- scrapeModeLabel.Visible = true
- scrapeAmountLabel.Visible = true
- end)
- -- Custom drag on title only (so child buttons still receive input on mobile)
- local dragging = false
- local dragInput, dragStart, startPos
- title.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = frame.Position
- -- Track when this input ends (touch/mouse up)
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
- local delta = input.Position - dragStart
- local newX = startPos.X.Offset + delta.X
- local newY = startPos.Y.Offset + delta.Y
- frame.Position = UDim2.new(0, newX, 0, newY)
- end
- end)
- return {
- digitDropdown = digitDropdown,
- variantDropdown = variantDropdown,
- amtTypeDropdown = amtTypeDropdown,
- amtBox = amtBox,
- speedBox = speedBox,
- startBtn = startBtn,
- stopBtn = stopBtn,
- outputBox = outputBox,
- copyBtn = copyBtn,
- statusLabel = statusLabel,
- webhookBox = webhookBox,
- }
- end
- local function isUsernameTaken(username)
- local success = pcall(function()
- return Players:GetUserIdFromNameAsync(username)
- end)
- -- pcall returns true if the call succeeded (username taken), false if error (username not found)
- return success
- end
- local function randomVariant(length)
- local s = ""
- for i = 1, length do
- s = s .. tostring(math.random(0,9))
- end
- return s
- end
- local function doubleDigitVariant(length)
- -- Build a string and ensure length is respected
- local digits = {}
- local doublePos = math.random(1, math.max(1, length-1))
- local i = 1
- while #digits < length do
- if i == doublePos and #digits <= length-2 then
- local d = tostring(math.random(0,9))
- table.insert(digits, d)
- table.insert(digits, d)
- else
- table.insert(digits, tostring(math.random(0,9)))
- end
- i = i + 1
- end
- return table.concat(digits, ""):sub(1, length)
- end
- local function repeatingNumbersVariant(length)
- local s = ""
- local repeatDigitsCount = math.random(2, math.min(4, length))
- local repeatDigit = tostring(math.random(0,9))
- local repeatPositions = {}
- while #repeatPositions < repeatDigitsCount do
- local pos = math.random(1, length)
- if not repeatPositions[pos] then
- repeatPositions[pos] = true
- -- Keep a count by using table length method indirectly
- end
- -- count filled positions
- local filled = 0
- for _, v in pairs(repeatPositions) do
- if v then filled = filled + 1 end
- end
- if filled >= repeatDigitsCount then break end
- end
- for i=1, length do
- if repeatPositions[i] then
- s = s .. repeatDigit
- else
- s = s .. tostring(math.random(0,9))
- end
- end
- return s
- end
- local function getUsernameGenerator(variant)
- if variant == "Double Digit" then return doubleDigitVariant end
- if variant == "Repeating Numbers" then return repeatingNumbersVariant end
- return randomVariant
- end
- local running = false
- local function scrapeUsernames(settings)
- running = true
- local digitCount = settings.digitCount
- local variant = settings.variant
- local mode = settings.mode
- local amount = settings.amount
- local speed = settings.speed
- local outputBox = settings.outputBox
- local statusLabel = settings.statusLabel
- local webhookBox = settings.webhookBox
- local maxResults = 300
- local availableUsernames = {}
- local tried = {}
- local generator = getUsernameGenerator(variant)
- local checked = 0
- local function updateOutput()
- outputBox.Text = table.concat(availableUsernames, "\n")
- end
- local function sendWebhook(username)
- local url = webhookBox and webhookBox.Text or ""
- if not url or url == "" then return end
- -- Prepare a simple JSON payload
- local payload = {
- username = username,
- foundAt = os.time(),
- source = "UltimateUsernameScraper",
- player = player and player.Name or "unknown"
- }
- local ok, err = pcall(function()
- local json = HttpService:JSONEncode(payload)
- -- Default to application/json
- HttpService:PostAsync(url, json, Enum.HttpContentType.ApplicationJson)
- end)
- if not ok then
- -- Do not interrupt scraping for webhook failures; optionally log to status
- -- statusLabel.Text = "Webhook error: "..tostring(err)
- end
- end
- local function tryUsername()
- local username
- repeat
- username = generator(digitCount)
- until not tried[username]
- tried[username] = true
- statusLabel.Text = string.format("Checking %d: %s", checked+1, username)
- if not isUsernameTaken(username) then
- table.insert(availableUsernames, username)
- if #availableUsernames > maxResults then
- table.remove(availableUsernames, 1)
- end
- updateOutput()
- -- Send webhook in a separate thread (non-blocking)
- spawn(function()
- sendWebhook(username)
- end)
- end
- checked = checked + 1
- end
- if mode == "Set Amount" then
- for i=1,amount do
- if not running then break end
- tryUsername()
- wait(speed)
- end
- statusLabel.Text = string.format("Done! Checked %d usernames.", checked)
- running = false
- else
- while running do
- tryUsername()
- wait(speed)
- end
- statusLabel.Text = "Stopped."
- end
- end
- local ui = createUI()
- ui.startBtn.MouseButton1Click:Connect(function()
- if running then return end
- local digitCount = tonumber(ui.digitDropdown.Text) or 6
- digitCount = math.clamp(digitCount, 4, 20)
- local variant = ui.variantDropdown.Text
- local mode = ui.amtTypeDropdown.Text
- local amount = tonumber(ui.amtBox.Text) or 25
- if mode == "Set Amount" then amount = math.clamp(amount, 1, 1000) end
- local speed = tonumber(ui.speedBox.Text) or 0.5
- speed = math.clamp(speed, 0.1, 2.0)
- ui.statusLabel.Text = "Starting scraper..."
- ui.startBtn.Visible = false
- ui.stopBtn.Visible = true
- spawn(function()
- scrapeUsernames({
- digitCount = digitCount,
- variant = variant,
- mode = mode,
- amount = amount,
- speed = speed,
- outputBox = ui.outputBox,
- statusLabel = ui.statusLabel,
- webhookBox = ui.webhookBox,
- })
- end)
- end)
- ui.stopBtn.MouseButton1Click:Connect(function()
- running = false
- ui.startBtn.Visible = true
- ui.stopBtn.Visible = false
- ui.statusLabel.Text = "Status: Idle"
- end)
- ui.copyBtn.MouseButton1Click:Connect(function()
- ui.outputBox:CaptureFocus()
- ui.outputBox.SelectionStart = 1
- ui.outputBox.CursorPosition = #ui.outputBox.Text + 1
- -- User can now Ctrl+A, Ctrl+C, or right-click > copy!
- end)
Advertisement