Advertisement
Mangus875

Roblox Doors Achievement Spammer Script/Exploit

Mar 27th, 2023 (edited)
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.67 KB | None | 0 0
  1. local rs = game:GetService("RunService")
  2. local plr = game.Players.LocalPlayer
  3. local displayed = plr.PlayerGui:WaitForChild("NameUI"..plr.Name)
  4. displayed = displayed:WaitForChild("Stuff")
  5. displayed = displayed:WaitForChild("Frame")
  6. displayed = displayed:WaitForChild("IconBadge").Image
  7. local menu = plr.PlayerGui.MainUI.LobbyFrame.Achievements
  8.  
  9. local resetAchievement
  10.  
  11. game.StarterGui:SetCore("SendNotification",
  12.     {
  13.     Title = "Achievement Spam Enabled";
  14.     Text = "Open the achievement menu to disable."
  15.     }
  16. )
  17.  
  18. local achievements = {}
  19. for _, v in ipairs(menu.List:GetChildren()) do
  20.     if v:IsA("ImageButton") then
  21.         table.insert(achievements, v.Name)
  22.         if v.Image == displayed then
  23.             resetAchievement = v.Name
  24.         end
  25.     end
  26. end
  27.  
  28. local disableSpam, playerLeave, added
  29.  
  30. task.wait()
  31. local n = 1
  32. rs:BindToRenderStep("spam", 1, function()
  33.     game.ReplicatedStorage.EntityInfo.FlexAchievement:FireServer(achievements[n])
  34.     n = (n+1)%#achievements+1
  35. end)
  36.  
  37. local function stop()
  38.     pcall(function()
  39.         rs:UnbindFromRenderStep("spam")
  40.     end)
  41.     game.ReplicatedStorage.EntityInfo.FlexAchievement:FireServer(resetAchievement)
  42.    
  43.     disableSpam:Disconnect()
  44.     playerLeave:Disconnect()
  45.     added:Disconnect()
  46. end
  47.  
  48. disableSpam = menu:GetPropertyChangedSignal("Visible"):Connect(function()
  49.     if menu.Visible then
  50.         stop()
  51.     end
  52. end)
  53.  
  54. playerLeave = plr.PlayerGui.MainUI.LobbyFrame.LoadingUI:GetPropertyChangedSignal("Visible"):Connect(function()
  55.     stop()
  56. end)
  57.  
  58. added = menu.List.ChildAdded:Connect(function(c)
  59.     if c:IsA("ImageButton") then
  60.         table.insert(achievements, c.Name)
  61.     end
  62. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement