Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Auto Username Claimer – 3L Uppercase / Lowercase + 4L Uppercase
- Features: speed control, randomization, anti‑AFK, and optional chat message.
- EDIT THE CONFIG BELOW TO YOUR LIKING
- ]]
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local UserInputService = game:GetService("UserInputService")
- local VirtualInput = game:GetService("VirtualInputManager")
- -- ======================= CONFIGURATION =======================
- local CONFIG = {
- -- Which patterns to enable (true = enabled, false = disabled)
- patterns = {
- ["3LU"] = false, -- 3L Uppercase (A-Z)
- ["3LL"] = true, -- 3L Lowercase (a-z)
- ["4L"] = false, -- 4L Uppercase (A-Z) – LARGE, use with caution
- },
- -- Delay between claims (seconds). Set to 0 for NO DELAY (very risky!)
- delay = 0.1,
- -- Randomize the order of usernames?
- randomize = true,
- -- Anti‑AFK: sends a harmless key press every 90 seconds
- antiAFK = true,
- -- Chat message every 5 minutes
- chatMessage = false,
- chatMessageText = "CLAIMING EVERY 3L, JOIN /WARM NOW",
- -- Remote path (change if the game updates)
- remotePath = {"UsernameGame", "Remotes", "ClaimUsername"},
- }
- -- =============================================================
- -- Build the remote path
- local remote = ReplicatedStorage
- for _, childName in ipairs(CONFIG.remotePath) do
- remote = remote:WaitForChild(childName)
- end
- -- Expect it to be a RemoteFunction
- remote = remote
- -- ------------------------------------------------------------
- -- GUI Creation
- -- ------------------------------------------------------------
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "AutoClaimerGUI"
- screenGui.Parent = LocalPlayer:WaitForChild("PlayerGui")
- screenGui.ResetOnSpawn = false
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 300, 0, 400)
- frame.Position = UDim2.new(0.5, -150, 0.5, -200)
- frame.BackgroundColor3 = Color3.fromRGB(25, 25, 35)
- frame.BackgroundTransparency = 0.1
- frame.BorderSizePixel = 0
- frame.Parent = screenGui
- -- Draggable
- local dragging = false
- local dragStartPos, dragStartMousePos
- frame.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStartPos = frame.Position
- dragStartMousePos = input.Position
- 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 - dragStartMousePos
- local newX = dragStartPos.X.Offset + delta.X
- local newY = dragStartPos.Y.Offset + delta.Y
- frame.Position = UDim2.new(0, newX, 0, newY)
- end
- end)
- -- Title bar
- local titleBar = Instance.new("Frame")
- titleBar.Size = UDim2.new(1, 0, 0, 30)
- titleBar.BackgroundColor3 = Color3.fromRGB(40, 40, 50)
- titleBar.BorderSizePixel = 0
- titleBar.Parent = frame
- local title = Instance.new("TextLabel")
- title.Size = UDim2.new(1, 0, 1, 0)
- title.BackgroundTransparency = 1
- title.Text = "Auto Claimer (3L/4L)"
- title.TextColor3 = Color3.fromRGB(255, 255, 255)
- title.Font = Enum.Font.GothamBold
- title.TextSize = 16
- title.Parent = titleBar
- -- Status
- local status = Instance.new("TextLabel")
- status.Size = UDim2.new(1, -10, 0, 20)
- status.Position = UDim2.new(0, 5, 0, 35)
- status.BackgroundTransparency = 1
- status.Text = "Status: Idle"
- status.TextColor3 = Color3.fromRGB(200, 200, 200)
- status.Font = Enum.Font.Gotham
- status.TextSize = 14
- status.Parent = frame
- -- Current username
- local currentLabel = Instance.new("TextLabel")
- currentLabel.Size = UDim2.new(1, -10, 0, 20)
- currentLabel.Position = UDim2.new(0, 5, 0, 60)
- currentLabel.BackgroundTransparency = 1
- currentLabel.Text = "Current: ---"
- currentLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
- currentLabel.Font = Enum.Font.Gotham
- currentLabel.TextSize = 12
- currentLabel.Parent = frame
- -- Patterns container
- local patternsFrame = Instance.new("Frame")
- patternsFrame.Size = UDim2.new(1, -10, 0, 100)
- patternsFrame.Position = UDim2.new(0, 5, 0, 85)
- patternsFrame.BackgroundTransparency = 1
- patternsFrame.Parent = frame
- local patternsLayout = Instance.new("UIListLayout")
- patternsLayout.Padding = UDim.new(0, 5)
- patternsLayout.SortOrder = Enum.SortOrder.LayoutOrder
- patternsLayout.Parent = patternsFrame
- -- Pattern definitions (ordered list, with initial state from CONFIG)
- local patternList = {
- { name = "3LU", label = "3L Uppercase (A-Z)", enabled = CONFIG.patterns["3LU"] },
- { name = "3LL", label = "3L Lowercase (a-z)", enabled = CONFIG.patterns["3LL"] },
- { name = "4L", label = "4L Uppercase (A-Z)", enabled = CONFIG.patterns["4L"] },
- }
- local checkboxes = {}
- for _, p in ipairs(patternList) do
- local btn = Instance.new("TextButton")
- btn.Size = UDim2.new(1, 0, 0, 30)
- btn.BackgroundColor3 = Color3.fromRGB(60, 60, 70)
- btn.Text = p.label .. (p.enabled and " ✓" or " ")
- btn.TextColor3 = Color3.fromRGB(255, 255, 255)
- btn.Font = Enum.Font.Gotham
- btn.TextSize = 14
- btn.Parent = patternsFrame
- btn.MouseButton1Click:Connect(function()
- p.enabled = not p.enabled
- btn.Text = p.label .. (p.enabled and " ✓" or " ")
- print("[DEBUG] Pattern " .. p.name .. " is now " .. (p.enabled and "enabled" or "disabled"))
- end)
- checkboxes[p.name] = btn
- end
- -- Settings container
- local settingsFrame = Instance.new("Frame")
- settingsFrame.Size = UDim2.new(1, -10, 0, 120)
- settingsFrame.Position = UDim2.new(0, 5, 0, 195)
- settingsFrame.BackgroundTransparency = 1
- settingsFrame.Parent = frame
- -- Delay row
- local speedRow = Instance.new("Frame")
- speedRow.Size = UDim2.new(1, 0, 0, 40)
- speedRow.BackgroundTransparency = 1
- speedRow.Parent = settingsFrame
- local speedLabel = Instance.new("TextLabel")
- speedLabel.Size = UDim2.new(0.4, 0, 1, 0)
- speedLabel.BackgroundTransparency = 1
- speedLabel.Text = "Delay (s):"
- speedLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- speedLabel.Font = Enum.Font.Gotham
- speedLabel.TextSize = 14
- speedLabel.Parent = speedRow
- local speedValue = Instance.new("TextBox")
- speedValue.Size = UDim2.new(0.3, 0, 1, 0)
- speedValue.Position = UDim2.new(0.45, 0, 0, 0)
- speedValue.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
- speedValue.Text = tostring(CONFIG.delay)
- speedValue.TextColor3 = Color3.fromRGB(255, 255, 255)
- speedValue.Font = Enum.Font.Gotham
- speedValue.TextSize = 14
- speedValue.Parent = speedRow
- local randomizeBtn = Instance.new("TextButton")
- randomizeBtn.Size = UDim2.new(0.2, 0, 1, 0)
- randomizeBtn.Position = UDim2.new(0.8, 0, 0, 0)
- randomizeBtn.BackgroundColor3 = CONFIG.randomize and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(60, 60, 70)
- randomizeBtn.Text = CONFIG.randomize and "Rand ✓" or "Rand"
- randomizeBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- randomizeBtn.Font = Enum.Font.Gotham
- randomizeBtn.TextSize = 14
- randomizeBtn.Parent = speedRow
- local randomizeActive = CONFIG.randomize
- randomizeBtn.MouseButton1Click:Connect(function()
- randomizeActive = not randomizeActive
- randomizeBtn.BackgroundColor3 = randomizeActive and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(60, 60, 70)
- randomizeBtn.Text = randomizeActive and "Rand ✓" or "Rand"
- print("[DEBUG] Randomization is now " .. (randomizeActive and "ON" or "OFF"))
- end)
- -- Anti-AFK row
- local afkRow = Instance.new("Frame")
- afkRow.Size = UDim2.new(1, 0, 0, 40)
- afkRow.Position = UDim2.new(0, 0, 0, 40)
- afkRow.BackgroundTransparency = 1
- afkRow.Parent = settingsFrame
- local afkLabel = Instance.new("TextLabel")
- afkLabel.Size = UDim2.new(0.5, 0, 1, 0)
- afkLabel.BackgroundTransparency = 1
- afkLabel.Text = "Anti-AFK:"
- afkLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- afkLabel.Font = Enum.Font.Gotham
- afkLabel.TextSize = 14
- afkLabel.Parent = afkRow
- local afkToggle = Instance.new("TextButton")
- afkToggle.Size = UDim2.new(0.3, 0, 1, 0)
- afkToggle.Position = UDim2.new(0.55, 0, 0, 0)
- afkToggle.BackgroundColor3 = CONFIG.antiAFK and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(60, 60, 70)
- afkToggle.Text = CONFIG.antiAFK and "ON" or "OFF"
- afkToggle.TextColor3 = Color3.fromRGB(255, 255, 255)
- afkToggle.Font = Enum.Font.Gotham
- afkToggle.TextSize = 14
- afkToggle.Parent = afkRow
- local antiAFKEnabled = CONFIG.antiAFK
- afkToggle.MouseButton1Click:Connect(function()
- antiAFKEnabled = not antiAFKEnabled
- afkToggle.BackgroundColor3 = antiAFKEnabled and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(60, 60, 70)
- afkToggle.Text = antiAFKEnabled and "ON" or "OFF"
- print("[DEBUG] Anti‑AFK is now " .. (antiAFKEnabled and "ON" or "OFF"))
- end)
- -- Chat message row
- local chatRow = Instance.new("Frame")
- chatRow.Size = UDim2.new(1, 0, 0, 40)
- chatRow.Position = UDim2.new(0, 0, 0, 80)
- chatRow.BackgroundTransparency = 1
- chatRow.Parent = settingsFrame
- local chatLabel = Instance.new("TextLabel")
- chatLabel.Size = UDim2.new(0.5, 0, 1, 0)
- chatLabel.BackgroundTransparency = 1
- chatLabel.Text = "Chat every 5min:"
- chatLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- chatLabel.Font = Enum.Font.Gotham
- chatLabel.TextSize = 14
- chatLabel.Parent = chatRow
- local chatToggle = Instance.new("TextButton")
- chatToggle.Size = UDim2.new(0.3, 0, 1, 0)
- chatToggle.Position = UDim2.new(0.55, 0, 0, 0)
- chatToggle.BackgroundColor3 = CONFIG.chatMessage and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(60, 60, 70)
- chatToggle.Text = CONFIG.chatMessage and "ON" or "OFF"
- chatToggle.TextColor3 = Color3.fromRGB(255, 255, 255)
- chatToggle.Font = Enum.Font.Gotham
- chatToggle.TextSize = 14
- chatToggle.Parent = chatRow
- local chatEnabled = CONFIG.chatMessage
- chatToggle.MouseButton1Click:Connect(function()
- chatEnabled = not chatEnabled
- chatToggle.BackgroundColor3 = chatEnabled and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(60, 60, 70)
- chatToggle.Text = chatEnabled and "ON" or "OFF"
- print("[DEBUG] Chat message is now " .. (chatEnabled and "ON" or "OFF"))
- end)
- -- Start/Stop button
- local controlBtn = Instance.new("TextButton")
- controlBtn.Size = UDim2.new(1, -10, 0, 40)
- controlBtn.Position = UDim2.new(0, 5, 1, -45)
- controlBtn.BackgroundColor3 = Color3.fromRGB(0, 120, 200)
- controlBtn.Text = "Start"
- controlBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- controlBtn.Font = Enum.Font.GothamBold
- controlBtn.TextSize = 16
- controlBtn.Parent = frame
- -- ------------------------------------------------------------
- -- Utility functions
- -- ------------------------------------------------------------
- local function generateUsernames(pattern)
- local chars = {}
- local length = 3
- if pattern == "3LU" then
- for i = 65, 90 do chars[#chars+1] = string.char(i) end
- length = 3
- elseif pattern == "3LL" then
- for i = 97, 122 do chars[#chars+1] = string.char(i) end
- length = 3
- elseif pattern == "4L" then
- for i = 65, 90 do chars[#chars+1] = string.char(i) end
- length = 4
- end
- local combos = {}
- local function recurse(current)
- if #current == length then
- combos[#combos+1] = table.concat(current)
- return
- end
- for _, ch in ipairs(chars) do
- local new = {unpack(current)}
- new[#new+1] = ch
- recurse(new)
- end
- end
- recurse({})
- print("[DEBUG] Generated " .. #combos .. " usernames for pattern " .. pattern)
- return combos
- end
- local function attemptClaim(username)
- local success, result = pcall(function()
- return remote:InvokeServer(username)
- end)
- if not success then
- warn("[ERROR] Remote call failed for " .. username .. ": " .. tostring(result))
- return false
- end
- if result == true or result == "Success" or (type(result) == "string" and result:lower() == "claimed") then
- print("[SUCCESS] " .. username .. " claimed!")
- return true
- else
- print("[FAIL] " .. username .. " - " .. tostring(result))
- return false
- end
- end
- -- ------------------------------------------------------------
- -- Anti‑AFK loop
- -- ------------------------------------------------------------
- local antiAFKCo = nil
- local function startAntiAFK()
- if antiAFKCo then return end
- antiAFKCo = coroutine.create(function()
- while true do
- wait(90)
- if antiAFKEnabled then
- pcall(function()
- VirtualInput:SendKeyEvent(true, Enum.KeyCode.W, false, game)
- wait(0.1)
- VirtualInput:SendKeyEvent(false, Enum.KeyCode.W, false, game)
- print("[Anti‑AFK] Sent W key press.")
- end)
- end
- end
- end)
- coroutine.resume(antiAFKCo)
- end
- startAntiAFK()
- -- ------------------------------------------------------------
- -- Chat message loop
- -- ------------------------------------------------------------
- local chatLoop = nil
- local function startChatLoop()
- if chatLoop then return end
- chatLoop = coroutine.create(function()
- while true do
- wait(300) -- 5 minutes
- if chatEnabled then
- pcall(function()
- local chatService = game:GetService("ReplicatedStorage"):FindFirstChild("DefaultChatSystemChatEvents")
- if chatService then
- local sayRequest = chatService:FindFirstChild("SayMessageRequest")
- if sayRequest then
- sayRequest:FireServer(CONFIG.chatMessageText, "All")
- print("[Chat] Sent message.")
- end
- end
- end)
- end
- end
- end)
- coroutine.resume(chatLoop)
- end
- startChatLoop()
- -- ------------------------------------------------------------
- -- Auto‑claimer loop
- -- ------------------------------------------------------------
- local running = false
- local currentCo = nil
- local function stopClaiming()
- if currentCo then
- coroutine.close(currentCo)
- currentCo = nil
- end
- running = false
- status.Text = "Status: Idle"
- currentLabel.Text = "Current: ---"
- controlBtn.Text = "Start"
- print("[DEBUG] Auto‑claimer stopped.")
- end
- local function startClaiming()
- if running then return end
- local enabledPatterns = {}
- for _, p in ipairs(patternList) do
- if p.enabled then
- table.insert(enabledPatterns, p.name)
- end
- end
- if #enabledPatterns == 0 then
- status.Text = "Status: No pattern selected"
- print("[WARN] No patterns selected. Please enable at least one.")
- return
- end
- print("[DEBUG] Enabled patterns: " .. table.concat(enabledPatterns, ", "))
- local delay = tonumber(speedValue.Text)
- if not delay or delay < 0 then delay = 0 end -- allow zero delay
- speedValue.Text = tostring(delay)
- running = true
- controlBtn.Text = "Stop"
- status.Text = "Status: Running"
- currentCo = coroutine.create(function()
- for idx, pattern in ipairs(enabledPatterns) do
- if not running then break end
- status.Text = "Status: Running (" .. pattern .. ")"
- print("[DEBUG] Starting pattern " .. pattern .. " (" .. idx .. "/" .. #enabledPatterns .. ")")
- local usernames = generateUsernames(pattern)
- if randomizeActive then
- for i = #usernames, 2, -1 do
- local j = math.random(i)
- usernames[i], usernames[j] = usernames[j], usernames[i]
- end
- print("[DEBUG] Usernames for " .. pattern .. " have been randomized.")
- end
- for _, name in ipairs(usernames) do
- if not running then break end
- currentLabel.Text = "Current: " .. name
- attemptClaim(name)
- if delay > 0 then wait(delay) end -- only wait if delay > 0
- end
- if running then
- print("[DEBUG] Finished pattern " .. pattern)
- end
- end
- stopClaiming()
- end)
- coroutine.resume(currentCo)
- print("[DEBUG] Auto‑claimer started.")
- end
- controlBtn.MouseButton1Click:Connect(function()
- if running then
- stopClaiming()
- else
- startClaiming()
- end
- end)
- -- Keep script alive
- game:GetService("RunService").Stepped:Wait()
Advertisement