Advertisement
Gerard_games

I'M SO HOT

Sep 25th, 2021 (edited)
13,236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. --[[
  2. Do
  3. Not
  4. Touch
  5. Down
  6. Here
  7. You
  8. Stoopis
  9. Kids
  10. ]]
  11.  
  12. if not workspace.__THINGS.__REMOTES:FindFirstChild("fuse pets") then
  13. workspace.__THINGS.__REMOTES.MAIN:FireServer("b", "fuse pets")
  14. repeat wait() until workspace.__THINGS.__REMOTES:FindFirstChild("fuse pets")
  15. end
  16.  
  17. local Library = require(game:GetService("ReplicatedStorage").Framework.Library)
  18. local IDToName = {}
  19. local NameToID = {}
  20. for i,v in pairs(Library.Directory.Pets ) do
  21. IDToName[i] = v.name
  22. NameToID[v.name] = i
  23. end
  24.  
  25. function GetPets()
  26. local MyPets = {}
  27. for i,v in pairs(Library.Save.Get().Pets) do
  28. local ThingyThingyTempTypeThing = (v.g and 'Gold') or (v.r and 'Rainbow') or (v.dm and 'Dark Matter') or 'Normal'
  29. local TempString = ThingyThingyTempTypeThing .. IDToName[v.id]
  30. if MyPets[TempString] then
  31. table.insert(MyPets[TempString], v.uid)
  32. else
  33. MyPets[TempString] = {}
  34. table.insert(MyPets[TempString], v.uid)
  35. end
  36. end
  37. return MyPets
  38. end
  39.  
  40. function IsPossibleFuse(DirectoryOfPets)
  41. local ispossible = true
  42. local Pets = GetPets()
  43. local totalfusenum = 0
  44. for i,v in pairs(DirectoryOfPets) do
  45. local TempString = _G.Type .. i
  46. if not Pets[TempString] or #Pets[TempString] < v then
  47. ispossible = false
  48. end
  49. totalfusenum = totalfusenum + v
  50. end
  51. if totalfusenum > 12 then
  52. ispossible = false
  53. end
  54. return ispossible
  55. end
  56.  
  57. local otherfuselist = {}
  58. function getapet(petname)
  59. local LookingFor = (_G.Type == 'Gold' and 'g') or (_G.Type == 'Rainbow' and 'r') or (_G.Type == 'Dark Matter' and 'dm') or _G.Type == 'Normal' and 'eeeeee'
  60. local WantedPetID = NameToID[petname]
  61. for i,v in pairs(Library.Save.Get().Pets) do
  62. if v.id == WantedPetID and (_G.Type == 'Normal' or v[LookingFor]) and not table.find(otherfuselist, v.uid) then
  63. return v.uid
  64. end
  65. end
  66. end
  67.  
  68. while wait() and _G.Enabled do
  69. for i,v in pairs(_G.FuseList) do
  70. if IsPossibleFuse(v) then
  71. local EekFuselist = {}
  72. otherfuselist = {}
  73. for a,b in pairs(v) do
  74. for eeeek = 1, b do
  75. local PetUID = getapet(a)
  76. EekFuselist[#EekFuselist + 1] = PetUID
  77. table.insert(otherfuselist, PetUID)
  78. end
  79. end
  80. workspace.__THINGS.__REMOTES["fuse pets"]:InvokeServer({[1] = EekFuselist})
  81. wait(0.1)
  82. end
  83. end
  84. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement