UsernameRTX

Auto-farm GUI

May 24th, 2020 (edited)
31,320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.28 KB | Source Code | 0 0
  1. local Workspace = game:GetService("Workspace")
  2. local Run = game:GetService("RunService")
  3. local Gui = game:GetService("GuiService")
  4. local Stats = game:GetService("Stats")
  5. local Sound = game:GetService("SoundService")
  6. local NonReplicatedCSGDictionary = game:GetService("NonReplicatedCSGDictionaryService")
  7. local CSGDictionary = game:GetService("CSGDictionaryService")
  8. local Log = game:GetService("LogService")
  9. local ContentProvider = game:GetService("ContentProvider")
  10. local KeyframeSequenceProvider = game:GetService("KeyframeSequenceProvider")
  11. local Chat = game:GetService("Chat")
  12. local Marketplace = game:GetService("MarketplaceService")
  13. local Players = game:GetService("Players")
  14. local LocalPlayer = Players.LocalPlayer
  15. local LocalPlayerMouse = LocalPlayer:GetMouse()
  16. local Points = game:GetService("PointsService")
  17. local Ad = game:GetService("AdService")
  18. local Notification = game:GetService("NotificationService")
  19. local ReplicatedFirst = game:GetService("ReplicatedFirst")
  20. local HttpRbxApi = game:GetService("HttpRbxApiService")
  21. local Tween = game:GetService("TweenService")
  22. local Text = game:GetService("TextService")
  23. local StudioData = game:GetService("StudioData")
  24. local StarterPlayer = game:GetService("StarterPlayer")
  25. local StarterPack = game:GetService("StarterPack")
  26. local StarterGui = game:GetService("StarterGui")
  27. local CoreGui = game:GetService("CoreGui")
  28. local Localization = game:GetService("LocalizationService")
  29. local Teleport = game:GetService("TeleportService")
  30. local Joints = game:GetService("JointsService")
  31. local Collection = game:GetService("CollectionService")
  32. local Physics = game:GetService("PhysicsService")
  33. local Badge = game:GetService("BadgeService")
  34. local Geometry = game:GetService("Geometry")
  35. local Friend = game:GetService("FriendService")
  36. local Insert = game:GetService("InsertService")
  37. local GamePass = game:GetService("GamePassService")
  38. local Debris = game:GetService("Debris")
  39. local Timer = game:GetService("TimerService")
  40. local Cookies = game:GetService("CookiesService")
  41. local UserInput = game:GetService("UserInputService")
  42. local Keyboard = game:GetService("KeyboardService")
  43. local Mouse = game:GetService("MouseService")
  44. local VR = game:GetService("VRService")
  45. local ContextAction = game:GetService("ContextActionService")
  46. local Script = game:GetService("ScriptService")
  47. local Asset = game:GetService("AssetService")
  48. local TouchInput = game:GetService("TouchInputService")
  49. local Browser = game:GetService("BrowserService")
  50. local ScriptContext = game:GetService("ScriptContext")
  51. local Selection = game:GetService("Selection")
  52. local MeshContentProvider = game:GetService("MeshContentProvider")
  53. local Lighting = game:GetService("Lighting")
  54. local SolidModelContentProvider = game:GetService("SolidModelContentProvider")
  55. local Gamepad = game:GetService("GamepadService")
  56. local Controller = game:GetService("ControllerService")
  57. local CorePackages = game:GetService("CorePackages")
  58. local RuntimeScript = game:GetService("RuntimeScriptService")
  59. local ABTest = game:GetService("ABTestService")
  60. local Haptic = game:GetService("HapticService")
  61. local NetworkClient = game:GetService("NetworkClient")
  62. local Http = game:GetService("HttpService")
  63. local ChangeHistory = game:GetService("ChangeHistoryService")
  64. local Visit = game:GetService("Visit")
  65. local GuidRegistry = game:GetService("GuidRegistryService")
  66. local Teams = game:GetService("Teams")
  67. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  68. local RobloxReplicatedStorage = game:GetService("RobloxReplicatedStorage")
  69. local Test = game:GetService("TestService")
  70. local Social = game:GetService("SocialService")
  71. local Policy = game:GetService("PolicyService")
  72. local RbxAnalytics = game:GetService("RbxAnalyticsService")
  73. local Group = game:GetService("GroupService")
  74. local Spawner = game:GetService("SpawnerService")
  75. local Pathfinding = game:GetService("PathfindingService")
  76. local ui = loadstring(game:GetObjects("rbxassetid://4133667265")[1].Source)("Library by wally")
  77. local w = ui:CreateWindow('Farming')
  78. local b = w:Button("Autofarm", function()
  79.     loadstring(game:HttpGet("https://pastebin.com/raw/iPJkreHg", true))()
  80.     print("General Autofarm")
  81. end)
  82. local AutoEquipGunsTable = {
  83.     "Auto Equip Gun"
  84. }
  85. for _, GetChildren in pairs(ReplicatedStorage.Guns:GetChildren()) do
  86.     table.insert(AutoEquipGunsTable, GetChildren.Name)
  87. end
  88. w:Dropdown("Select Gun", {
  89.     location = _G,
  90.     flag = "sg",
  91.     list = AutoEquipGunsTable
  92. }, function(new)
  93.     warn(new)
  94.     print(_G.sg)
  95.     while wait(0.1) do
  96.         FindFirstChild = LocalPlayer.Backpack:FindFirstChild(_G.sg)
  97.         for _, GetChildren in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  98.             if GetChildren.Name == "Humanoid" then
  99.                 GetChildren:EquipTool(FindFirstChild)
  100.             end
  101.         end
  102.     end
  103. end)
  104. local t23 = w:Toggle('Anti-AFK', {
  105.     flag = "aa",
  106.     location = Variables
  107. }, function()
  108.     if aa then
  109.         VirtualUser = game:GetService("VirtualUser")
  110.         LocalPlayer.Idled:connect(function()
  111.             VirtualUser:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  112.             wait(1)
  113.             VirtualUser:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  114.             print("Anti-AFK =", aa)
  115.         end)
  116.     else
  117.         print("Anti-AFK =", aa)
  118.     end
  119. end)
Add Comment
Please, Sign In to add comment