Totalxterror

PetBattleSim

Oct 14th, 2020
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.83 KB | None | 0 0
  1. local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/AikaV3rm/UiLib/master/Lib.lua')))()
  2.  
  3. local w = library:CreateWindow("PetBattleSim") -- Creates the window
  4. local b = w:CreateFolder("Eggs 1x") -- Creates the folder(U will put here your buttons,etc)
  5. b:Toggle("Forest",function(boolA)
  6.     shared.toggleA = boolA
  7. end)
  8.  
  9. spawn(function()
  10.     while wait() do
  11.         if shared.toggleA then
  12.             local oh1 = "BuyEgg"
  13.             local oh2 = "ForestEgg"
  14.             game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
  15.         end
  16.     end
  17. end)
  18.  
  19. b:Toggle("Arctic",function(boolB)
  20.     shared.toggleB = boolB
  21. end)
  22.  
  23. spawn(function()
  24.     while wait() do
  25.         if shared.toggleB then
  26.             local oh1 = "BuyEgg"
  27.             local oh2 = "ArcticEgg"
  28.             game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
  29.         end
  30.     end
  31. end)
  32.  
  33. b:Toggle("Desert",function(boolC)
  34.     shared.toggleC = boolC
  35. end)
  36.  
  37. spawn(function()
  38.     while wait() do
  39.         if shared.toggleC then
  40.             local oh1 = "BuyEgg"
  41.             local oh2 = "DesertEgg"
  42.             game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
  43.         end
  44.     end
  45. end)
  46.  
  47. b:Toggle("Forest",function(boolD)
  48.     shared.toggleD = boolD
  49. end)
  50.  
  51. spawn(function()
  52.     while wait() do
  53.         if shared.toggleD then
  54.             local oh1 = "BuyEgg"
  55.             local oh2 = "ForestEgg"
  56.             game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
  57.         end
  58.     end
  59. end)
  60.  
  61. b:Toggle("Aquatic",function(boolE)
  62.     shared.toggleE = boolE
  63. end)
  64.  
  65. spawn(function()
  66.     while wait() do
  67.         if shared.toggleE then
  68.             local oh1 = "BuyEgg"
  69.             local oh2 = "AquaticEgg"
  70.             game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
  71.         end
  72.     end
  73. end)
  74.  
  75. b:Toggle("Volcano",function(boolF)
  76.     shared.toggleF = boolF
  77. end)
  78.  
  79. spawn(function()
  80.     while wait() do
  81.         if shared.toggleF then
  82.             local oh1 = "BuyEgg"
  83.             local oh2 = "VolcanoEgg"
  84.             game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
  85.         end
  86.     end
  87. end)
  88.  
  89. b:Toggle("MagicForest",function(boolG)
  90.     shared.toggleG = boolG
  91. end)
  92.  
  93. spawn(function()
  94.     while wait() do
  95.         if shared.toggleG then
  96.             local oh1 = "BuyEgg"
  97.             local oh2 = "MagicForestEgg"
  98.             game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
  99.         end
  100.     end
  101. end)
  102.  
  103. b:Toggle("Beach",function(boolH)
  104.     shared.toggleH = boolH
  105. end)
  106.  
  107. spawn(function()
  108.     while wait() do
  109.         if shared.toggleH then
  110.             local oh1 = "BuyEgg"
  111.             local oh2 = "BeachEgg"
  112.             game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
  113.         end
  114.     end
  115. end)
  116.  
  117. --===============================================================================================================================
  118.  
  119. local b = w:CreateFolder("Eggs 3x") -- Creates the folder(U will put here your buttons,etc)
  120.  
  121. b:Toggle("Forest",function(bool1)
  122.     shared.toggle1 = bool1
  123. end)
  124.  
  125. spawn(function()
  126.     while wait() do
  127.         if shared.toggle1 then
  128.             local oh1 = "BuyThreeEggs"
  129.             local oh2 = "ForestEgg"
  130.             game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
  131.         end
  132.     end
  133. end)
  134.  
  135. b:Toggle("Arctic",function(bool2)
  136.     shared.toggle2 = bool2
  137. end)
  138.  
  139. spawn(function()
  140.     while wait() do
  141.         if shared.toggle2 then
  142.             local oh1 = "BuyThreeEggs"
  143.             local oh2 = "ArcticEgg"
  144.             game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
  145.         end
  146.     end
  147. end)
  148.  
  149. b:Toggle("Desert",function(bool3)
  150.     shared.toggle3 = bool3
  151. end)
  152.  
  153. spawn(function()
  154.     while wait() do
  155.         if shared.toggle3 then
  156.             local oh1 = "BuyThreeEggs"
  157.             local oh2 = "DesertEgg"
  158.             game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
  159.         end
  160.     end
  161. end)
  162.  
  163. b:Toggle("Forest",function(bool4)
  164.     shared.toggle4 = bool4
  165. end)
  166.  
  167. spawn(function()
  168.     while wait() do
  169.         if shared.toggle4 then
  170.             local oh1 = "BuyThreeEggs"
  171.             local oh2 = "ForestEgg"
  172.             game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
  173.         end
  174.     end
  175. end)
  176.  
  177. b:Toggle("Aquatic",function(bool5)
  178.     shared.toggle5 = bool5
  179. end)
  180.  
  181. spawn(function()
  182.     while wait() do
  183.         if shared.toggle5 then
  184.             local oh1 = "BuyThreeEggs"
  185.             local oh2 = "AquaticEgg"
  186.             game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
  187.         end
  188.     end
  189. end)
  190.  
  191. b:Toggle("Volcano",function(bool6)
  192.     shared.toggle6 = bool6
  193. end)
  194.  
  195. spawn(function()
  196.     while wait() do
  197.         if shared.toggle6 then
  198.             local oh1 = "BuyThreeEggs"
  199.             local oh2 = "VolcanoEgg"
  200.             game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
  201.         end
  202.     end
  203. end)
  204.  
  205. b:Toggle("MagicForest",function(bool7)
  206.     shared.toggle7 = bool7
  207. end)
  208.  
  209. spawn(function()
  210.     while wait() do
  211.         if shared.toggle7 then
  212.             local oh1 = "BuyThreeEggs"
  213.             local oh2 = "MagicForestEgg"
  214.             game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
  215.         end
  216.     end
  217. end)
  218.  
  219. b:Toggle("Beach",function(bool8)
  220.     shared.toggle8 = bool8
  221. end)
  222.  
  223. spawn(function()
  224.     while wait() do
  225.         if shared.toggle8 then
  226.             local oh1 = "BuyThreeEggs"
  227.             local oh2 = "BeachEgg"
  228.             game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
  229.         end
  230.     end
  231. end)
  232.  
  233. local b = w:CreateFolder("Event Eggs") -- Creates the folder(U will put here your buttons,etc)
  234.  
  235. b:Toggle("Pumpkin 3x",function(boole1)
  236.     shared.togglee1 = boole1
  237. end)
  238.  
  239. spawn(function()
  240.     while wait() do
  241.         if shared.togglee1 then
  242.             local oh1 = "BuyThreeEggs"
  243.             local oh2 = "PumpkinEgg"
  244.             game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
  245.         end
  246.     end
  247. end)
  248.  
  249. b:Toggle("Pumpkin 1x",function(boole2)
  250.     shared.togglee2 = boole2
  251. end)
  252.  
  253. spawn(function()
  254.     while wait() do
  255.         if shared.togglee2 then
  256.             local oh1 = "BuyEgg"
  257.             local oh2 = "PumpkinEgg"
  258.             game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(oh1, oh2)
  259.         end
  260.     end
  261. end)
  262.  
  263. local b = w:CreateFolder("Credits") -- Creates the folder(U will put here your buttons,etc)
  264. b:Toggle("Scripts: Total",function(bool19)
  265.     shared.toggle19 = bool19
  266. end)
  267.  
  268. spawn(function()
  269.     while wait() do
  270.         if shared.toggle19 then
  271.             print("Nub")
  272.         end
  273.     end
  274. end)
  275.  
  276.  
Add Comment
Please, Sign In to add comment