V0rtexHub

Shield Hero Simulator Script!

May 27th, 2022 (edited)
1,376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.02 KB | None | 0 0
  1. getgenv().autoSell = false;
  2. getgenv().autoBuysword = false;
  3. getgenv().autoBuyshield = false;
  4. getgenv().autoCoins = false;
  5. getgenv().autoChest = false;
  6. ------------------------------------------
  7. local player = game.Players.LocalPlayer
  8.  
  9.  
  10.  
  11. -------------------------------------------
  12. local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/AikaV3rm/UiLib/master/Lib.lua')))()
  13.  
  14. local w = library:CreateWindow("ShieldHeroSim") -- Creates the window
  15.  
  16. local b = w:CreateFolder("Autofarm") -- Creates the folder(U will put here your buttons,etc)
  17.  
  18. local c = w:CreateFolder("Misc")
  19.  
  20.  
  21. local selectedShields;
  22. b:Dropdown("Shields",{"Basic Shield","Basic Shield DarkGreen","Basic Shield Red","Basic Shield Yellow","Basic Shield Orange","Basic Shield Blue","Basic Shield Cyan","Basic Shield Purple","Basic Shield Magenta","Basic Shield Pink","Basic Shield Brown","Basic Shield White","Basic Shield Gray","Basic Shield Dark","Upgraded Shield","Upgraded Shield DarkGreen","Upgraded Shield Red","Upgraded Shield Yellow","Upgraded Shield Orange","Upgraded Shield Blue","Upgraded Shield Cyan","Upgraded Shield Purple","Upgraded Shield Magenta","Upgraded Shield Pink","Upgraded Shield Brown","Upgraded Shield White","Upgraded Shield Gray","Upgraded Shield Dark","Forest Shield","Forest Shield DarkGreen","Forest Shield Red","Forest Shield Yellow","Forest Shield Orange","Forest Shield Blue","Forest Shield Cyan","Forest Shield Purple","Forest Shield Magenta","Forest Shield Pink","Forest Shield Brown","Forest Shield White","Forest Shield Gray","Forest Shield Dark","Bubble Shield","Bubble Shield Blue","Bubble Shield Green","Bubble Shield DarkGreen","Bubble Shield Red","Bubble Shield Yellow","Bubble Shield Orange","Bubble Shield Purple","Bubble Shield Magenta","Bubble Shield Pink","Bubble Shield Brown","Bubble Shield White","Bubble Shield Gray","Bubble Shield Dark","Shell Shield","Shell Shield Blue","Shell Shield Green","Shell Shield DarkGreen","Shell Shield Red","Shell Shield Yellow","Shell Shield Orange","Shell Shield Purple","Shell Shield Magenta","Shell Shield Pink","Shell Shield Brown","Shell Shield White","Shell Shield Gray","Shell Shield Dark","Ice Shield","Ice Shield Blue","Ice Shield Green","Ice Shield DarkGreen","Ice Shield Red","Ice Shield Yellow","Ice Shield Orange","Ice Shield Purple","Ice Shield Magenta","Ice Shield Pink","Ice Shield Brown","Ice Shield Dark","Shield Prison"},true,function(value)
  23.     selectedShields = value;
  24. end)
  25.  
  26. local selectedRank;
  27. b:Dropdown("Ranks",{"None",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24},true,function(value)
  28.     selectedRank = value;
  29. end)
  30.  
  31.  
  32. b:Toggle("BuyAllSwords",function(bool)
  33.     getgenv().autoBuysword = bool
  34.     if bool then
  35.         buySword()
  36.     end
  37. end)
  38.  
  39.  
  40. b:Toggle("BuyAllShields",function(bool)
  41.     getgenv().autoBuyshield = bool
  42.     if bool then
  43.         buyShield()
  44.     end
  45. end)
  46.  
  47.  
  48. b:Toggle("AutoSell",function(bool)
  49.     getgenv().autoSell = bool
  50.     if bool then
  51.         autoSell()
  52.     end
  53. end)
  54.  
  55.  
  56. b:Toggle("AutoCoins",function(bool)
  57.     getgenv().autoCoins = bool
  58.     if bool and selectedShields then
  59.         autoHit()
  60.     end
  61. end)
  62.  
  63.  
  64. c:Toggle("CollectChest",function(bool)
  65.     getgenv().autoChest = bool
  66.     if bool then
  67.         tpChest()
  68.     end
  69. end)
  70.  
  71.  
  72. c:Button("Gamepass",function()
  73.     game:GetService("Players").LocalPlayer.Gamepasses.TripleHatch.Value = true
  74.     game:GetService("Players").LocalPlayer.Gamepasses.Teleport.Value = true
  75. end)
  76.  
  77.  
  78.  
  79.  
  80.  
  81. function buySword()
  82.     spawn(function()
  83.         while getgenv().autoBuysword == true do
  84.      local event = game:GetService("ReplicatedStorage").Modules.Events.BuyItem
  85.         event:InvokeServer("Sword","Sword","BuyAll")
  86.         wait()
  87.         end
  88.     end)
  89. end
  90.  
  91. function buyShield()
  92.     spawn(function()
  93.         while getgenv().autoBuyshield == true do
  94.     local event = game:GetService("ReplicatedStorage").Modules.Events.BuyItem
  95.         event:InvokeServer("Backpack","Backpack","BuyAll")
  96.         wait()
  97.         end
  98.     end)
  99. end
  100.  
  101.  
  102. function  autoSell()
  103.     spawn(function()
  104.         while getgenv().autoSell == true do
  105.             for _,v in pairs(game:GetService("Workspace").Sells["Sell-Island_9"].Touch:GetChildren()) do
  106.                 if v:IsA("TouchTransmitter")  then
  107.                      firetouchinterest(player.Character.HumanoidRootPart, v.Parent, 0) --0 is touch
  108.                      wait()
  109.                     firetouchinterest(player.Character.HumanoidRootPart, v.Parent, 1) -- 1 is untouch
  110.                     wait()
  111.                 end
  112.             end
  113.         end
  114.     end)
  115. end
  116.  
  117.  
  118. function tpChest()
  119.     spawn(function ()
  120.         while getgenv().autoChest == true do
  121.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-1383.8468, 358.71106, -1426.67358)
  122.             wait(0.5)
  123.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(143.248993, 367.50351, 110.981834)
  124.             wait(0.5)
  125.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-332.781433, 363.321808, 334.672485)
  126.             wait(0.5)
  127.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(242.815567, 368.377808, 237.026398)
  128.             wait(0.5)
  129.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-753.281433, 363.821808, 157.172623)
  130.             wait(0.5)
  131.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-1146.34521, 363.82193, 144.755569)
  132.             wait(0.5)
  133.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-1449.62549, 364.688629, 328.203583)
  134.             wait(0.5)
  135.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-1658.54736, 364.691071, 154.032349)
  136.             wait(0.5)
  137.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-2059.25977, 364.69693, 317.330505)
  138.             wait(0.5)
  139.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-1766.22046, 370.394196, 584.547974)
  140.             wait(0.5)
  141.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-2426.75977, 364.69693, 152.830627)
  142.             wait(0.5)
  143.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-2828.90503, 373.747498, 205.322281)
  144.             wait(0.5)
  145.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(306.617981, 366.5, 242.179001)
  146.             wait()
  147.         end
  148.     end)
  149. end
  150.  
  151.  
  152.  
  153. b:Button("Rank",function()
  154.     if selectedRank then
  155.     local Event = game:GetService("ReplicatedStorage").Modules.Events.BuyItem
  156.     Event:InvokeServer(selectedRank,"Class","Buy")
  157. end
  158. end)
  159.  
  160.  
  161. function autoHit()
  162.     spawn(function()
  163.         while getgenv().autoCoins == true do
  164.             if selectedShields then
  165.                 local event = game:GetService("ReplicatedStorage").Modules.Events.Sword
  166.                 event:FireServer(selectedShields)
  167.                 wait()
  168.             end;
  169.         end;
  170.     end)
  171. end
  172.  
  173.  
Add Comment
Please, Sign In to add comment