Advertisement
Gerard_games

fuse

Sep 28th, 2021
17,516
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. workspace.__THINGS.__REMOTES.MAIN:FireServer("b", "use golden machine")
  2. workspace.__THINGS.__REMOTES.MAIN:FireServer("b", "use rainbow machine")
  3.  
  4. local Library = require(game:GetService("ReplicatedStorage").Framework.Library)
  5. local IDToName = {}
  6. local NameToID = {}
  7. for i,v in pairs(Library.Directory.Pets ) do
  8. IDToName[i] = v.name
  9. NameToID[v.name] = i
  10. end
  11.  
  12. function GetPets()
  13. local MyPets = {}
  14. for i,v in pairs(Library.Save.Get().Pets) do
  15. if not table.find(_G.Exclusions, IDToName[v.id]) then
  16. local ThingyThingyTempTypeThing = (v.g and 'Gold') or (v.r and 'Rainbow') or (v.dm and 'Dark Matter') or 'Normal'
  17. local TempString = ThingyThingyTempTypeThing .. IDToName[v.id]
  18. if MyPets[TempString] then
  19. table.insert(MyPets[TempString], v.uid)
  20. else
  21. MyPets[TempString] = {}
  22. table.insert(MyPets[TempString], v.uid)
  23. end
  24. end
  25. end
  26. return MyPets
  27. end
  28.  
  29. while wait() and _G.AutoCombine do
  30. for i, v in pairs(GetPets()) do
  31. if #v >= _G.CombineNumber and _G.AutoCombine then
  32. if string.find(i, "Normal") and _G.AutoCombine and _G.Gold then
  33. local Args = {}
  34. for eeeee = 1, _G.CombineNumber do
  35. Args[#Args+1] = v[#Args+1]
  36. end
  37. Library.Network.Invoke("use golden machine", Args)
  38.  
  39. elseif string.find(i, "Gold") and _G.AutoCombine and _G.Rainbow then
  40. local Args = {}
  41. for eeeee = 1, _G.CombineNumber do
  42. Args[#Args+1] = v[#Args+1]
  43. end
  44. Library.Network.Invoke("use rainbow machine", Args)
  45. end
  46. end
  47. end
  48. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement