KirchohexSX

Untitled

Mar 23rd, 2026 (edited)
139
0
Never
7
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.66 KB | None | 0 0
  1. --[[
  2. Auto Username Claimer – 3L Uppercase / Lowercase + 4L Uppercase
  3. Features: speed control, randomization, anti‑AFK, and optional chat message.
  4. EDIT THE CONFIG BELOW TO YOUR LIKING
  5. ]]
  6.  
  7. local Players = game:GetService("Players")
  8. local LocalPlayer = Players.LocalPlayer
  9. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  10. local UserInputService = game:GetService("UserInputService")
  11. local VirtualInput = game:GetService("VirtualInputManager")
  12.  
  13. -- ======================= CONFIGURATION =======================
  14. local CONFIG = {
  15. -- Which patterns to enable (true = enabled, false = disabled)
  16. patterns = {
  17. ["3LU"] = false, -- 3L Uppercase (A-Z)
  18. ["3LL"] = true, -- 3L Lowercase (a-z)
  19. ["4L"] = false, -- 4L Uppercase (A-Z) – LARGE, use with caution
  20. },
  21.  
  22. -- Delay between claims (seconds). Set to 0 for NO DELAY (very risky!)
  23. delay = 0.1,
  24.  
  25. -- Randomize the order of usernames?
  26. randomize = true,
  27.  
  28. -- Anti‑AFK: sends a harmless key press every 90 seconds
  29. antiAFK = true,
  30.  
  31. -- Chat message every 5 minutes
  32. chatMessage = false,
  33. chatMessageText = "CLAIMING EVERY 3L, JOIN /WARM NOW",
  34.  
  35. -- Remote path (change if the game updates)
  36. remotePath = {"UsernameGame", "Remotes", "ClaimUsername"},
  37. }
  38. -- =============================================================
  39.  
  40. -- Build the remote path
  41. local remote = ReplicatedStorage
  42. for _, childName in ipairs(CONFIG.remotePath) do
  43. remote = remote:WaitForChild(childName)
  44. end
  45. -- Expect it to be a RemoteFunction
  46. remote = remote
  47.  
  48. -- ------------------------------------------------------------
  49. -- GUI Creation
  50. -- ------------------------------------------------------------
  51. local screenGui = Instance.new("ScreenGui")
  52. screenGui.Name = "AutoClaimerGUI"
  53. screenGui.Parent = LocalPlayer:WaitForChild("PlayerGui")
  54. screenGui.ResetOnSpawn = false
  55.  
  56. local frame = Instance.new("Frame")
  57. frame.Size = UDim2.new(0, 300, 0, 400)
  58. frame.Position = UDim2.new(0.5, -150, 0.5, -200)
  59. frame.BackgroundColor3 = Color3.fromRGB(25, 25, 35)
  60. frame.BackgroundTransparency = 0.1
  61. frame.BorderSizePixel = 0
  62. frame.Parent = screenGui
  63.  
  64. -- Draggable
  65. local dragging = false
  66. local dragStartPos, dragStartMousePos
  67.  
  68. frame.InputBegan:Connect(function(input)
  69. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  70. dragging = true
  71. dragStartPos = frame.Position
  72. dragStartMousePos = input.Position
  73. input.Changed:Connect(function()
  74. if input.UserInputState == Enum.UserInputState.End then
  75. dragging = false
  76. end
  77. end)
  78. end
  79. end)
  80.  
  81. UserInputService.InputChanged:Connect(function(input)
  82. if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
  83. local delta = input.Position - dragStartMousePos
  84. local newX = dragStartPos.X.Offset + delta.X
  85. local newY = dragStartPos.Y.Offset + delta.Y
  86. frame.Position = UDim2.new(0, newX, 0, newY)
  87. end
  88. end)
  89.  
  90. -- Title bar
  91. local titleBar = Instance.new("Frame")
  92. titleBar.Size = UDim2.new(1, 0, 0, 30)
  93. titleBar.BackgroundColor3 = Color3.fromRGB(40, 40, 50)
  94. titleBar.BorderSizePixel = 0
  95. titleBar.Parent = frame
  96.  
  97. local title = Instance.new("TextLabel")
  98. title.Size = UDim2.new(1, 0, 1, 0)
  99. title.BackgroundTransparency = 1
  100. title.Text = "Auto Claimer (3L/4L)"
  101. title.TextColor3 = Color3.fromRGB(255, 255, 255)
  102. title.Font = Enum.Font.GothamBold
  103. title.TextSize = 16
  104. title.Parent = titleBar
  105.  
  106. -- Status
  107. local status = Instance.new("TextLabel")
  108. status.Size = UDim2.new(1, -10, 0, 20)
  109. status.Position = UDim2.new(0, 5, 0, 35)
  110. status.BackgroundTransparency = 1
  111. status.Text = "Status: Idle"
  112. status.TextColor3 = Color3.fromRGB(200, 200, 200)
  113. status.Font = Enum.Font.Gotham
  114. status.TextSize = 14
  115. status.Parent = frame
  116.  
  117. -- Current username
  118. local currentLabel = Instance.new("TextLabel")
  119. currentLabel.Size = UDim2.new(1, -10, 0, 20)
  120. currentLabel.Position = UDim2.new(0, 5, 0, 60)
  121. currentLabel.BackgroundTransparency = 1
  122. currentLabel.Text = "Current: ---"
  123. currentLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
  124. currentLabel.Font = Enum.Font.Gotham
  125. currentLabel.TextSize = 12
  126. currentLabel.Parent = frame
  127.  
  128. -- Patterns container
  129. local patternsFrame = Instance.new("Frame")
  130. patternsFrame.Size = UDim2.new(1, -10, 0, 100)
  131. patternsFrame.Position = UDim2.new(0, 5, 0, 85)
  132. patternsFrame.BackgroundTransparency = 1
  133. patternsFrame.Parent = frame
  134.  
  135. local patternsLayout = Instance.new("UIListLayout")
  136. patternsLayout.Padding = UDim.new(0, 5)
  137. patternsLayout.SortOrder = Enum.SortOrder.LayoutOrder
  138. patternsLayout.Parent = patternsFrame
  139.  
  140. -- Pattern definitions (ordered list, with initial state from CONFIG)
  141. local patternList = {
  142. { name = "3LU", label = "3L Uppercase (A-Z)", enabled = CONFIG.patterns["3LU"] },
  143. { name = "3LL", label = "3L Lowercase (a-z)", enabled = CONFIG.patterns["3LL"] },
  144. { name = "4L", label = "4L Uppercase (A-Z)", enabled = CONFIG.patterns["4L"] },
  145. }
  146.  
  147. local checkboxes = {}
  148. for _, p in ipairs(patternList) do
  149. local btn = Instance.new("TextButton")
  150. btn.Size = UDim2.new(1, 0, 0, 30)
  151. btn.BackgroundColor3 = Color3.fromRGB(60, 60, 70)
  152. btn.Text = p.label .. (p.enabled and " ✓" or " ")
  153. btn.TextColor3 = Color3.fromRGB(255, 255, 255)
  154. btn.Font = Enum.Font.Gotham
  155. btn.TextSize = 14
  156. btn.Parent = patternsFrame
  157. btn.MouseButton1Click:Connect(function()
  158. p.enabled = not p.enabled
  159. btn.Text = p.label .. (p.enabled and " ✓" or " ")
  160. print("[DEBUG] Pattern " .. p.name .. " is now " .. (p.enabled and "enabled" or "disabled"))
  161. end)
  162. checkboxes[p.name] = btn
  163. end
  164.  
  165. -- Settings container
  166. local settingsFrame = Instance.new("Frame")
  167. settingsFrame.Size = UDim2.new(1, -10, 0, 120)
  168. settingsFrame.Position = UDim2.new(0, 5, 0, 195)
  169. settingsFrame.BackgroundTransparency = 1
  170. settingsFrame.Parent = frame
  171.  
  172. -- Delay row
  173. local speedRow = Instance.new("Frame")
  174. speedRow.Size = UDim2.new(1, 0, 0, 40)
  175. speedRow.BackgroundTransparency = 1
  176. speedRow.Parent = settingsFrame
  177.  
  178. local speedLabel = Instance.new("TextLabel")
  179. speedLabel.Size = UDim2.new(0.4, 0, 1, 0)
  180. speedLabel.BackgroundTransparency = 1
  181. speedLabel.Text = "Delay (s):"
  182. speedLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  183. speedLabel.Font = Enum.Font.Gotham
  184. speedLabel.TextSize = 14
  185. speedLabel.Parent = speedRow
  186.  
  187. local speedValue = Instance.new("TextBox")
  188. speedValue.Size = UDim2.new(0.3, 0, 1, 0)
  189. speedValue.Position = UDim2.new(0.45, 0, 0, 0)
  190. speedValue.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
  191. speedValue.Text = tostring(CONFIG.delay)
  192. speedValue.TextColor3 = Color3.fromRGB(255, 255, 255)
  193. speedValue.Font = Enum.Font.Gotham
  194. speedValue.TextSize = 14
  195. speedValue.Parent = speedRow
  196.  
  197. local randomizeBtn = Instance.new("TextButton")
  198. randomizeBtn.Size = UDim2.new(0.2, 0, 1, 0)
  199. randomizeBtn.Position = UDim2.new(0.8, 0, 0, 0)
  200. randomizeBtn.BackgroundColor3 = CONFIG.randomize and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(60, 60, 70)
  201. randomizeBtn.Text = CONFIG.randomize and "Rand ✓" or "Rand"
  202. randomizeBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  203. randomizeBtn.Font = Enum.Font.Gotham
  204. randomizeBtn.TextSize = 14
  205. randomizeBtn.Parent = speedRow
  206.  
  207. local randomizeActive = CONFIG.randomize
  208. randomizeBtn.MouseButton1Click:Connect(function()
  209. randomizeActive = not randomizeActive
  210. randomizeBtn.BackgroundColor3 = randomizeActive and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(60, 60, 70)
  211. randomizeBtn.Text = randomizeActive and "Rand ✓" or "Rand"
  212. print("[DEBUG] Randomization is now " .. (randomizeActive and "ON" or "OFF"))
  213. end)
  214.  
  215. -- Anti-AFK row
  216. local afkRow = Instance.new("Frame")
  217. afkRow.Size = UDim2.new(1, 0, 0, 40)
  218. afkRow.Position = UDim2.new(0, 0, 0, 40)
  219. afkRow.BackgroundTransparency = 1
  220. afkRow.Parent = settingsFrame
  221.  
  222. local afkLabel = Instance.new("TextLabel")
  223. afkLabel.Size = UDim2.new(0.5, 0, 1, 0)
  224. afkLabel.BackgroundTransparency = 1
  225. afkLabel.Text = "Anti-AFK:"
  226. afkLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  227. afkLabel.Font = Enum.Font.Gotham
  228. afkLabel.TextSize = 14
  229. afkLabel.Parent = afkRow
  230.  
  231. local afkToggle = Instance.new("TextButton")
  232. afkToggle.Size = UDim2.new(0.3, 0, 1, 0)
  233. afkToggle.Position = UDim2.new(0.55, 0, 0, 0)
  234. afkToggle.BackgroundColor3 = CONFIG.antiAFK and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(60, 60, 70)
  235. afkToggle.Text = CONFIG.antiAFK and "ON" or "OFF"
  236. afkToggle.TextColor3 = Color3.fromRGB(255, 255, 255)
  237. afkToggle.Font = Enum.Font.Gotham
  238. afkToggle.TextSize = 14
  239. afkToggle.Parent = afkRow
  240.  
  241. local antiAFKEnabled = CONFIG.antiAFK
  242. afkToggle.MouseButton1Click:Connect(function()
  243. antiAFKEnabled = not antiAFKEnabled
  244. afkToggle.BackgroundColor3 = antiAFKEnabled and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(60, 60, 70)
  245. afkToggle.Text = antiAFKEnabled and "ON" or "OFF"
  246. print("[DEBUG] Anti‑AFK is now " .. (antiAFKEnabled and "ON" or "OFF"))
  247. end)
  248.  
  249. -- Chat message row
  250. local chatRow = Instance.new("Frame")
  251. chatRow.Size = UDim2.new(1, 0, 0, 40)
  252. chatRow.Position = UDim2.new(0, 0, 0, 80)
  253. chatRow.BackgroundTransparency = 1
  254. chatRow.Parent = settingsFrame
  255.  
  256. local chatLabel = Instance.new("TextLabel")
  257. chatLabel.Size = UDim2.new(0.5, 0, 1, 0)
  258. chatLabel.BackgroundTransparency = 1
  259. chatLabel.Text = "Chat every 5min:"
  260. chatLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  261. chatLabel.Font = Enum.Font.Gotham
  262. chatLabel.TextSize = 14
  263. chatLabel.Parent = chatRow
  264.  
  265. local chatToggle = Instance.new("TextButton")
  266. chatToggle.Size = UDim2.new(0.3, 0, 1, 0)
  267. chatToggle.Position = UDim2.new(0.55, 0, 0, 0)
  268. chatToggle.BackgroundColor3 = CONFIG.chatMessage and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(60, 60, 70)
  269. chatToggle.Text = CONFIG.chatMessage and "ON" or "OFF"
  270. chatToggle.TextColor3 = Color3.fromRGB(255, 255, 255)
  271. chatToggle.Font = Enum.Font.Gotham
  272. chatToggle.TextSize = 14
  273. chatToggle.Parent = chatRow
  274.  
  275. local chatEnabled = CONFIG.chatMessage
  276. chatToggle.MouseButton1Click:Connect(function()
  277. chatEnabled = not chatEnabled
  278. chatToggle.BackgroundColor3 = chatEnabled and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(60, 60, 70)
  279. chatToggle.Text = chatEnabled and "ON" or "OFF"
  280. print("[DEBUG] Chat message is now " .. (chatEnabled and "ON" or "OFF"))
  281. end)
  282.  
  283. -- Start/Stop button
  284. local controlBtn = Instance.new("TextButton")
  285. controlBtn.Size = UDim2.new(1, -10, 0, 40)
  286. controlBtn.Position = UDim2.new(0, 5, 1, -45)
  287. controlBtn.BackgroundColor3 = Color3.fromRGB(0, 120, 200)
  288. controlBtn.Text = "Start"
  289. controlBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  290. controlBtn.Font = Enum.Font.GothamBold
  291. controlBtn.TextSize = 16
  292. controlBtn.Parent = frame
  293.  
  294. -- ------------------------------------------------------------
  295. -- Utility functions
  296. -- ------------------------------------------------------------
  297. local function generateUsernames(pattern)
  298. local chars = {}
  299. local length = 3
  300. if pattern == "3LU" then
  301. for i = 65, 90 do chars[#chars+1] = string.char(i) end
  302. length = 3
  303. elseif pattern == "3LL" then
  304. for i = 97, 122 do chars[#chars+1] = string.char(i) end
  305. length = 3
  306. elseif pattern == "4L" then
  307. for i = 65, 90 do chars[#chars+1] = string.char(i) end
  308. length = 4
  309. end
  310.  
  311. local combos = {}
  312. local function recurse(current)
  313. if #current == length then
  314. combos[#combos+1] = table.concat(current)
  315. return
  316. end
  317. for _, ch in ipairs(chars) do
  318. local new = {unpack(current)}
  319. new[#new+1] = ch
  320. recurse(new)
  321. end
  322. end
  323. recurse({})
  324. print("[DEBUG] Generated " .. #combos .. " usernames for pattern " .. pattern)
  325. return combos
  326. end
  327.  
  328. local function attemptClaim(username)
  329. local success, result = pcall(function()
  330. return remote:InvokeServer(username)
  331. end)
  332. if not success then
  333. warn("[ERROR] Remote call failed for " .. username .. ": " .. tostring(result))
  334. return false
  335. end
  336. if result == true or result == "Success" or (type(result) == "string" and result:lower() == "claimed") then
  337. print("[SUCCESS] " .. username .. " claimed!")
  338. return true
  339. else
  340. print("[FAIL] " .. username .. " - " .. tostring(result))
  341. return false
  342. end
  343. end
  344.  
  345. -- ------------------------------------------------------------
  346. -- Anti‑AFK loop
  347. -- ------------------------------------------------------------
  348. local antiAFKCo = nil
  349. local function startAntiAFK()
  350. if antiAFKCo then return end
  351. antiAFKCo = coroutine.create(function()
  352. while true do
  353. wait(90)
  354. if antiAFKEnabled then
  355. pcall(function()
  356. VirtualInput:SendKeyEvent(true, Enum.KeyCode.W, false, game)
  357. wait(0.1)
  358. VirtualInput:SendKeyEvent(false, Enum.KeyCode.W, false, game)
  359. print("[Anti‑AFK] Sent W key press.")
  360. end)
  361. end
  362. end
  363. end)
  364. coroutine.resume(antiAFKCo)
  365. end
  366. startAntiAFK()
  367.  
  368. -- ------------------------------------------------------------
  369. -- Chat message loop
  370. -- ------------------------------------------------------------
  371. local chatLoop = nil
  372. local function startChatLoop()
  373. if chatLoop then return end
  374. chatLoop = coroutine.create(function()
  375. while true do
  376. wait(300) -- 5 minutes
  377. if chatEnabled then
  378. pcall(function()
  379. local chatService = game:GetService("ReplicatedStorage"):FindFirstChild("DefaultChatSystemChatEvents")
  380. if chatService then
  381. local sayRequest = chatService:FindFirstChild("SayMessageRequest")
  382. if sayRequest then
  383. sayRequest:FireServer(CONFIG.chatMessageText, "All")
  384. print("[Chat] Sent message.")
  385. end
  386. end
  387. end)
  388. end
  389. end
  390. end)
  391. coroutine.resume(chatLoop)
  392. end
  393. startChatLoop()
  394.  
  395. -- ------------------------------------------------------------
  396. -- Auto‑claimer loop
  397. -- ------------------------------------------------------------
  398. local running = false
  399. local currentCo = nil
  400. local function stopClaiming()
  401. if currentCo then
  402. coroutine.close(currentCo)
  403. currentCo = nil
  404. end
  405. running = false
  406. status.Text = "Status: Idle"
  407. currentLabel.Text = "Current: ---"
  408. controlBtn.Text = "Start"
  409. print("[DEBUG] Auto‑claimer stopped.")
  410. end
  411.  
  412. local function startClaiming()
  413. if running then return end
  414.  
  415. local enabledPatterns = {}
  416. for _, p in ipairs(patternList) do
  417. if p.enabled then
  418. table.insert(enabledPatterns, p.name)
  419. end
  420. end
  421. if #enabledPatterns == 0 then
  422. status.Text = "Status: No pattern selected"
  423. print("[WARN] No patterns selected. Please enable at least one.")
  424. return
  425. end
  426.  
  427. print("[DEBUG] Enabled patterns: " .. table.concat(enabledPatterns, ", "))
  428.  
  429. local delay = tonumber(speedValue.Text)
  430. if not delay or delay < 0 then delay = 0 end -- allow zero delay
  431. speedValue.Text = tostring(delay)
  432.  
  433. running = true
  434. controlBtn.Text = "Stop"
  435. status.Text = "Status: Running"
  436.  
  437. currentCo = coroutine.create(function()
  438. for idx, pattern in ipairs(enabledPatterns) do
  439. if not running then break end
  440. status.Text = "Status: Running (" .. pattern .. ")"
  441. print("[DEBUG] Starting pattern " .. pattern .. " (" .. idx .. "/" .. #enabledPatterns .. ")")
  442. local usernames = generateUsernames(pattern)
  443.  
  444. if randomizeActive then
  445. for i = #usernames, 2, -1 do
  446. local j = math.random(i)
  447. usernames[i], usernames[j] = usernames[j], usernames[i]
  448. end
  449. print("[DEBUG] Usernames for " .. pattern .. " have been randomized.")
  450. end
  451.  
  452. for _, name in ipairs(usernames) do
  453. if not running then break end
  454. currentLabel.Text = "Current: " .. name
  455. attemptClaim(name)
  456. if delay > 0 then wait(delay) end -- only wait if delay > 0
  457. end
  458. if running then
  459. print("[DEBUG] Finished pattern " .. pattern)
  460. end
  461. end
  462. stopClaiming()
  463. end)
  464. coroutine.resume(currentCo)
  465. print("[DEBUG] Auto‑claimer started.")
  466. end
  467.  
  468. controlBtn.MouseButton1Click:Connect(function()
  469. if running then
  470. stopClaiming()
  471. else
  472. startClaiming()
  473. end
  474. end)
  475.  
  476. -- Keep script alive
  477. game:GetService("RunService").Stepped:Wait()
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment