Advertisement
Guest User

Desync's Dupe Script For Bubble Gum Simulator

a guest
Nov 27th, 2022
2,737
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.92 KB | Gaming | 1 0
  1. Desyncs Dupe Script For Bubble Gum Simulator 11/27/22
  2.  
  3. ----- MADE BY Desync#8545 --------------
  4.  
  5. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/DesyncDeveloper/E/main/GUI.lua"))()
  6. local Window = Library.CreateLib("BGS Auto Trade", "Midnight")
  7. local Player = game.Players.LocalPlayer
  8. local TradeFrame = Player.PlayerGui.ScreenGui.TradeFrame
  9. local TradeSendDelay = 0
  10. local TradeAcceptDelay = 0
  11. local TradeConfirmDelay = 0
  12.  
  13. function SendTrade(Player)
  14. task.wait(TradeSendDelay)
  15. local args = {
  16. [1] = "TradeSendRequest",
  17. [2] = Player
  18. }
  19.  
  20. game:GetService("ReplicatedStorage").NetworkRemoteEvent:FireServer(unpack(args))
  21. end
  22.  
  23. function AddPet(ItemID)
  24. local args = {
  25. [1] = "TradeAddItem",
  26. [2] = ItemID
  27. }
  28.  
  29. game:GetService("ReplicatedStorage").NetworkRemoteEvent:FireServer(unpack(args))
  30. return
  31. end
  32.  
  33. function RemovePet(ItemID)
  34. local args = {
  35. [1] = "TradeRemoveItem",
  36. [2] = ItemID
  37. }
  38.  
  39. game:GetService("ReplicatedStorage").NetworkRemoteEvent:FireServer(unpack(args))
  40. return
  41. end
  42.  
  43. function AcceptTrade()
  44. task.wait(TradeAcceptDelay)
  45. local args = {
  46. [1] = "TradeReady"
  47. }
  48.  
  49. game:GetService("ReplicatedStorage").NetworkRemoteEvent:FireServer(unpack(args))
  50. return
  51. end
  52.  
  53. function ConfirmTrade()
  54. task.wait(TradeConfirmDelay)
  55. local args = {
  56. [1] = "TradeConfirm"
  57. }
  58.  
  59. game:GetService("ReplicatedStorage").NetworkRemoteEvent:FireServer(unpack(args))
  60. return
  61. end
  62.  
  63. function CheckIfFreeSpace()
  64. if #TradeFrame.YourOffer.Frame:GetChildren() == 9 then
  65. return false
  66. else
  67. return true
  68. end
  69. end
  70.  
  71. function CheckIfOwn(ItemID)
  72. local ItemOwned = false
  73.  
  74. for i,v in pairs(TradeFrame.TheirInventory.Grid:GetChildren()) do
  75. if v:IsA("ImageButton") then
  76. if v.Name == ItemID then
  77. ItemOwned = true
  78. break
  79. end
  80. end
  81. end
  82.  
  83. if #TradeFrame.TheirInventory.Grid:GetChildren() == 1 then
  84. ItemOwned = false
  85. end
  86.  
  87. return ItemOwned
  88. end
  89.  
  90. function DeleteItem(ItemID)
  91. local args = {
  92. [1] = "DeletePet",
  93. [2] = ItemID
  94. }
  95.  
  96. game:GetService("ReplicatedStorage").NetworkRemoteEvent:FireServer(unpack(args))
  97. return
  98. end
  99.  
  100. function UnlockItem(ItemID)
  101.  
  102. local args = {
  103. [1] = "SetPetLocked",
  104. [2] = ItemID,
  105. [3] = false
  106. }
  107.  
  108. game:GetService("ReplicatedStorage").NetworkRemoteEvent:FireServer(unpack(args))
  109. return
  110. end
  111.  
  112. function DealWithCustom(C, SplitString)
  113.  
  114. TradeFrame.YourInventory.Search.TextBox.Text = SplitString[2] or SplitString[1]
  115.  
  116. coroutine.resume(coroutine.create(function()
  117. for i,v in pairs(TradeFrame.YourInventory.Grid:GetChildren()) do
  118. if TradeFrame.Visible == true then
  119. if v:FindFirstChild("Frame") then
  120. if CheckIfFreeSpace() then
  121. if v.Frame.Tick.Visible == true then else
  122. if CheckIfOwn(v.Name) == true then else
  123. local String2 = _G.PetsToGive[C]
  124. local SplitString2 = String2:split(' ')
  125.  
  126. local SplitStringName = SplitString[2]
  127.  
  128. if SplitString[2] == nil then
  129. SplitStringName = SplitString[1]
  130. elseif SplitString[1] == nil then
  131. SplitStringName = SplitString[2]
  132. end
  133.  
  134. if string.lower(v.Frame.Inner.PetName.Text) == string.lower(SplitStringName) then
  135. if string.lower(SplitString2[1]) == string.lower("Shiny") then
  136. if v.Frame.Inner.ImageColor3 ~= Color3.fromRGB(0, 179, 255) then
  137. AddPet(v.Name)
  138. table.remove(_G.PetsToGive, v.Frame.Inner.PetName.Text)
  139. return
  140. end
  141. else
  142. if v.Frame.Inner.ImageColor3 == Color3.fromRGB(0, 179, 255) then
  143. AddPet(v.Name)
  144. table.remove(_G.PetsToGive, v.Frame.Inner.PetName.Text)
  145. return
  146. end
  147. end
  148. end
  149. end
  150. end
  151. else
  152. AcceptTrade()
  153. repeat
  154. ConfirmTrade()
  155. game:GetService("RunService").RenderStepped:Wait()
  156. until TradeFrame.TheirOffer.Ready.Visible == true or TradeFrame.Processing.Visible == true
  157. return
  158. end
  159. game:GetService("RunService").RenderStepped:Wait()
  160. end
  161. game:GetService("RunService").RenderStepped:Wait()
  162. end
  163. game:GetService("RunService").RenderStepped:Wait()
  164. end
  165. end))
  166. game:GetService("RunService").RenderStepped:Wait()
  167. end
  168.  
  169. function DoCustomPets(Option)
  170. if Option == "Add" then
  171. if TradeFrame.Visible == true then
  172. coroutine.resume(coroutine.create(function()
  173. for C,S in pairs(_G.PetsToGive) do
  174. local String = _G.PetsToGive[C]
  175. local SplitString = String:split(string.lower("Shiny "))
  176. game:GetService("RunService").RenderStepped:Wait()
  177. DealWithCustom(C, SplitString)
  178. game:GetService("RunService").RenderStepped:Wait()
  179. end
  180. end))
  181. AcceptTrade()
  182. repeat
  183. ConfirmTrade()
  184. game:GetService("RunService").RenderStepped:Wait()
  185. until TradeFrame.TheirOffer.Ready.Visible == true or TradeFrame.Processing.Visible == true
  186. return
  187. end
  188. elseif Option == "Remove" then
  189. coroutine.resume(coroutine.create(function()
  190. for i,v in pairs(TradeFrame.YourOffer.Frame:GetChildren()) do
  191. if v:IsA("Frame") then
  192. RemovePet(v.GUID.Value)
  193. game:GetService("RunService").RenderStepped:Wait()
  194. end
  195. game:GetService("RunService").RenderStepped:Wait()
  196. end
  197. game:GetService("RunService").RenderStepped:Wait()
  198. end))
  199. end
  200. game:GetService("RunService").RenderStepped:Wait()
  201. end
  202.  
  203. function DoDirtyWork(Option)
  204. if Option == "Add" then
  205. if TradeFrame.Visible == true then
  206. coroutine.resume(coroutine.create(function()
  207. for i,v in pairs(TradeFrame.YourInventory.Grid:GetChildren()) do
  208. if TradeFrame.Visible == true then
  209. if CheckIfFreeSpace() then
  210. if CheckIfOwn(v.Name) == true then else
  211.  
  212. AddPet(v.Name)
  213. end
  214. else
  215. task.wait(TradeAcceptDelay)
  216. AcceptTrade()
  217. repeat
  218. task.wait(TradeConfirmDelay)
  219. ConfirmTrade()
  220. game:GetService("RunService").RenderStepped:Wait()
  221. until TradeFrame.TheirOffer.Ready.Visible == true or TradeFrame.Processing.Visible == true
  222. return
  223. end
  224. end
  225. game:GetService("RunService").RenderStepped:Wait()
  226. end
  227. end))
  228. game:GetService("RunService").RenderStepped:Wait()
  229. end
  230. game:GetService("RunService").RenderStepped:Wait()
  231. elseif Option == "Remove" then
  232. coroutine.resume(coroutine.create(function()
  233. for i,v in pairs(TradeFrame.YourOffer.Frame:GetChildren()) do
  234. if v:IsA("Frame") then
  235. RemovePet(v.GUID.Value)
  236. game:GetService("RunService").RenderStepped:Wait()
  237. end
  238. game:GetService("RunService").RenderStepped:Wait()
  239. end
  240. end))
  241. game:GetService("RunService").RenderStepped:Wait()
  242. end
  243. game:GetService("RunService").RenderStepped:Wait()
  244. end
  245.  
  246. local AutoSendTrade = false
  247. local AutoAddPets = false
  248.  
  249. local Game = Window:NewTab("Auto Functions")
  250. local Section1 = Game:NewSection("Auto Trade")
  251.  
  252. local PlayersT = {}
  253. local PlayerToTrade
  254.  
  255. for i,v in pairs(game.Players:GetChildren()) do
  256. table.insert(PlayersT, v.Name)
  257. end
  258.  
  259. local dropdown = Section1:NewDropdown("Choose Player", "Spams The Trade!", PlayersT, function(currentOption)
  260. PlayerToTrade = currentOption
  261. end)
  262.  
  263. Section1:NewButton("Auto Trade Send", "Sends Trades!", function()
  264. AutoSendTrade = true
  265. repeat
  266. SendTrade(game.Players:FindFirstChild(PlayerToTrade))
  267. task.wait(TradeSendDelay)
  268. game:GetService("RunService").RenderStepped:Wait()
  269. until AutoSendTrade == false
  270. end)
  271.  
  272. Section1:NewButton("Auto Trade Disable", "Sends Trades!", function()
  273. AutoSendTrade = false
  274. end)
  275.  
  276. local Section2 = Game:NewSection("Auto Pets")
  277.  
  278. local OptionOfAuto = ""
  279.  
  280. local dropdown2 = Section2:NewDropdown("Choose Option", "Option For Auto Give!", {"Add All", "Add Custom"}, function(currentOption)
  281. OptionOfAuto = currentOption
  282. end)
  283.  
  284. Section2:NewButton("Auto Add Pets Enable", "Auto Adds Pets!", function()
  285. AutoAddPets = true
  286. repeat
  287. if OptionOfAuto == "Add All" then
  288. if TradeFrame.Visible == true then
  289. DoDirtyWork("Add")
  290. end
  291. elseif OptionOfAuto == "Add Custom" then
  292. if TradeFrame.Visible == true then
  293. DoCustomPets("Add")
  294. end
  295. end
  296. game:GetService("RunService").RenderStepped:Wait()
  297. until AutoAddPets == false
  298. end)
  299.  
  300.  
  301. Section2:NewButton("Auto Add Pets Disable", "Sends Trades!", function()
  302. AutoAddPets = false
  303. end)
  304.  
  305. Section2:NewButton("Add All Pets", "Adds All Pets (only 8)", function()
  306. if TradeFrame.Visible == true then
  307. task.wait(1)
  308. DoDirtyWork("Add")
  309. end
  310. game:GetService("RunService").RenderStepped:Wait()
  311. end)
  312.  
  313. Section2:NewButton("Remove ALL Pets", "Removes All Pets (only 8)", function()
  314. if TradeFrame.Visible == true then
  315. task.wait(1)
  316. DoCustomPets("Remove")
  317. end
  318. game:GetService("RunService").RenderStepped:Wait()
  319. end)
  320.  
  321. local Game2 = Window:NewTab("Dupe Functions")
  322. local Section3 = Game2:NewSection("Dupe Trade")
  323.  
  324. function Death()
  325. spawn(function()
  326. local args = {
  327. [1] = "GetPlayerData"
  328. }
  329.  
  330. game:GetService("ReplicatedStorage").NetworkRemoteFunction:InvokeServer(unpack(args))
  331. end)
  332. end
  333.  
  334. Section3:NewButton("Dupe Items", "Dupes All Items (UP TO 64 PETS) (DO 6 TRADES MAX)", function()
  335. for i=1,2500 do
  336. spawn(function()
  337. Death()
  338. end)
  339. end
  340. end)
  341.  
  342. local Game3 = Window:NewTab("Inventory Functions")
  343. local Section4 = Game3:NewSection("Delete Duped Pets")
  344.  
  345. Section4:NewButton("Delete Duped Pets", "Deletes all pets what are causing trade ban!", function()
  346. local PetsFrame = Player.PlayerGui.ScreenGui.PetsFrame
  347. local PetGrid = PetsFrame.Main.Pages.Pets.List.Grid
  348.  
  349. local Pets = {}
  350.  
  351. for i,v in pairs(PetGrid:GetChildren()) do
  352. if v:IsA("ImageButton") then
  353. if Pets[v.Name] then
  354. DeleteItem(v.Name)
  355. else
  356. Pets[v.Name] = true
  357. end
  358. end
  359. end
  360. end)
  361.  
  362. Section4:NewButton("Unlock All Pets", "Unlocks all pets!", function()
  363. local PetsFrame = Player.PlayerGui.ScreenGui.PetsFrame
  364. local PetGrid = PetsFrame.Main.Pages.Pets.List.Grid
  365.  
  366. for i,v in pairs(PetGrid:GetChildren()) do
  367. if v:IsA("ImageButton") then
  368. UnlockItem(v.Name)
  369. end
  370. end
  371. end)
  372.  
  373. local Game4 = Window:NewTab("Settings/Credits")
  374. local Section5 = Game4:NewSection("Settings")
  375.  
  376. Section5:NewSlider("Trade Send Delay", "Delay Between Sending Trades", 5, 0, function(s)
  377. TradeSendDelay = s
  378. end)
  379.  
  380. Section5:NewSlider("Trade Accept Delay", "Delay Between Accepting Trades", 5, 1, function(s)
  381. TradeAcceptDelay = s
  382. end)
  383.  
  384. Section5:NewSlider("Trade Confirm Delay", "Delay Between Confirming Trades", 5, 1, function(s)
  385. TradeConfirmDelay = s
  386. end)
  387.  
  388. Section5:NewButton("Anti AFK", "Never get kicked for been idle!", function()
  389. game:GetService("Players").LocalPlayer.Idled:connect(function()
  390. local vu = game:GetService("VirtualUser")
  391. vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  392. wait(1)
  393. vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  394. end)
  395. end)
  396.  
  397. Game4:NewSection("Credits: ZuprizeDev#6443")
  398. Game4:NewSection("Discord Server: https://discord.gg/bgs")
  399.  
  400. Section5:NewKeybind("Toggle Keybind", "Set Keybind to toggle the gui", Enum.KeyCode.F, function()
  401. Library:ToggleUI()
  402. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement