Advertisement
dady172172

Hat Simulator Script GUI

Nov 6th, 2019 (edited)
3,332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.90 KB | None | 0 0
  1. --[[
  2. Game : https://www.roblox.com/games/2845217850
  3. Codded by : Keathunsar : https://github.com/dady172172/Roblox-Cheats
  4. Gui made by : https://v3rmillion.net/member.php?action=profile&uid=507120
  5. Go vouch release thread : https://v3rmillion.net/showthread.php?tid=1040650
  6. ]]--
  7.  
  8. --- Anti AFK ---
  9. local VirtualUser = game:service('VirtualUser')
  10. game:service('Players').LocalPlayer.Idled:connect(function()
  11.     VirtualUser:CaptureController()
  12.     VirtualUser:ClickButton2(Vector2.new())
  13. end)
  14.  
  15. local library = loadstring(game:HttpGet('https://raw.githubusercontent.com/bloodball/-back-ups-for-libs/main/wall%20v3'))()
  16. kVars = {}
  17. kVars.windowName = "Hat Simulator GUI" -- Window Name here
  18. script.Name = kVars.windowName
  19. local w = library:CreateWindow(kVars.windowName) -- Creates the window
  20. local f = w:CreateFolder("Farm") -- Creates the folder(U will put here your buttons,etc)
  21.  
  22. f:Toggle("Hats",function(bool)
  23.     kVars.boolHats = bool
  24.     if bool then fHats() end
  25. end)
  26.  
  27. function fHats()
  28.     spawn(function()
  29.         while kVars.boolHats do
  30.             wait()
  31.             game:GetService("ReplicatedStorage").Wear:FireServer()
  32.         end
  33.     end)
  34. end
  35.  
  36. f:Toggle("Sell",function(bool)
  37.     kVars.boolSell = bool
  38.     if bool then fSell() end
  39. end)
  40.  
  41. function fSell()
  42.     spawn(function()
  43.         while kVars.boolSell do
  44.             wait()
  45.             v = game:GetService("Workspace").ScriptedParts.SellHats.Touch
  46.             firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart,v,0)
  47.             wait()
  48.             firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart,v,1)
  49.         end
  50.     end)
  51. end
  52.  
  53. f:Toggle("Coins",function(bool)
  54.     kVars.boolCoins = bool
  55.     if bool then fCoins() end
  56. end)
  57.  
  58. function fCoins()
  59.     spawn(function()
  60.         while kVars.boolCoins do
  61.             wait()
  62.             for i,v in pairs(game:GetService("Workspace").CoinAndGems:GetChildren()) do
  63.                 if kVars.boolCoins == false then return end
  64.                 if v:FindFirstChild("Coin") and v.Coin:FindFirstChild("TouchInterest") and v.Coin.Transparency == 0 then
  65.                     Wait()
  66.                     v.Coin.Position = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  67.                 end
  68.             end
  69.         end
  70.     end)
  71. end
  72.  
  73. f:Toggle("Gems",function(bool)
  74.     kVars.boolGems = bool
  75.     if bool then fGems() end
  76. end)
  77.  
  78. function fGems()
  79.     spawn(function()
  80.         while kVars.boolGems do
  81.             wait()
  82.             for i,v in pairs(game:GetService("Workspace").CoinAndGems:GetChildren()) do
  83.                 if kVars.boolGems == false then return end
  84.                 if v.Name == "Gem" and v:FindFirstChild("TouchInterest") and v.Transparency == 0 then
  85.                     Wait()    
  86.                     v.Position = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  87.                 end
  88.             end
  89.         end
  90.     end)
  91. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement