Totalxterror

Shopping Simulator GUI

Sep 28th, 2020 (edited)
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.77 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("ShoppingSim") -- Creates the window
  4. local b = w:CreateFolder("Functions") -- Creates the folder(U will put here your buttons,etc)
  5.  
  6. b:Toggle("Swipe",function(bool)
  7.     shared.toggle = bool
  8. end)
  9.  
  10. spawn(function()
  11.     while wait() do
  12.         if shared.toggle then
  13.             game:GetService("ReplicatedStorage").Events.Swipe:FireServer()
  14.         end
  15.     end
  16. end)
  17.  
  18. b:Toggle("Egg1",function(bool1)
  19.     shared.toggle1 = bool1
  20. end)
  21.  
  22. spawn(function()
  23.     while wait() do
  24.         if shared.toggle1 then
  25.            local oh1 = game:GetService("ReplicatedStorage").IngameItems.Crates["1"]
  26.             game:GetService("ReplicatedStorage").Events.PurchaseCrate:FireServer(oh1)
  27.         end
  28.     end
  29. end)
  30.  
  31. b:Toggle("Egg2",function(bool2)
  32.     shared.toggle2 = bool2
  33. end)
  34.  
  35. spawn(function()
  36.     while wait() do
  37.         if shared.toggle2 then
  38.            local oh1 = game:GetService("ReplicatedStorage").IngameItems.Crates["2"]
  39.             game:GetService("ReplicatedStorage").Events.PurchaseCrate:FireServer(oh1)
  40.         end
  41.     end
  42. end)
  43.  
  44. b:Toggle("Egg3",function(bool3)
  45.     shared.toggle3 = bool3
  46. end)
  47.  
  48. spawn(function()
  49.     while wait() do
  50.         if shared.toggle3 then
  51.            local oh1 = game:GetService("ReplicatedStorage").IngameItems.Crates["4"]
  52.             game:GetService("ReplicatedStorage").Events.PurchaseCrate:FireServer(oh1)
  53.         end
  54.     end
  55. end)
  56.  
  57. b:Toggle("Egg4",function(bool4)
  58.     shared.toggle4 = bool4
  59. end)
  60.  
  61. spawn(function()
  62.     while wait() do
  63.         if shared.toggle4 then
  64.            local oh1 = game:GetService("ReplicatedStorage").IngameItems.Crates["3"]
  65.             game:GetService("ReplicatedStorage").Events.PurchaseCrate:FireServer(oh1)
  66.         end
  67.     end
  68. end)
  69.  
  70. b:Toggle("DominusEgg",function(bool5)
  71.     shared.toggle5 = bool5
  72. end)
  73.  
  74. spawn(function()
  75.     while wait() do
  76.         if shared.toggle5 then
  77.            local oh1 = game:GetService("ReplicatedStorage").IngameItems.Crates["8"]
  78.             game:GetService("ReplicatedStorage").Events.PurchaseCrate:FireServer(oh1)
  79.         end
  80.     end
  81. end)
  82.  
  83. b:Toggle("TechEgg",function(bool51)
  84.     shared.toggle51 = bool51
  85. end)
  86.  
  87. spawn(function()
  88.     while wait() do
  89.         if shared.toggle51 then
  90.            local oh1 = game:GetService("ReplicatedStorage").IngameItems.Crates["7"]
  91.             game:GetService("ReplicatedStorage").Events.PurchaseCrate:FireServer(oh1)
  92.         end
  93.     end
  94. end)
  95.  
  96. local b = w:CreateFolder("Credits") -- Creates the folder(U will put here your buttons,etc)
  97. b:Toggle("Scripts: Total",function(bool19)
  98.     shared.toggle19 = bool19
  99. end)
  100.  
  101. spawn(function()
  102.     while wait() do
  103.         if shared.toggle18 then
  104.             print("Nub")
  105.         end
  106.     end
  107. end)
Add Comment
Please, Sign In to add comment