Filipono120

[ROBLOX] Auto-Farm Leaderboard V1

Oct 5th, 2020 (edited)
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.79 KB | None | 0 0
  1. --   | Auto-Farm Leaderstats V1
  2. --   | Usable in some games that have leaderstats
  3.  
  4. --   | 5/10/2020:
  5. --   | The auto-farm can use only one leaderboard slot.
  6. --   | Initial script release, yay!
  7.  
  8. --   | Auto updating script is out!
  9. --   | loadstring(game:HttpGet("https://pastebin.com/raw/mrZ1aGsq"))
  10.  
  11. --[[
  12.  
  13.     Games that support auto-farms:
  14.     Catalog Heaven (Kills and Deaths)
  15.     Admin Simulator (Level) (maybe...)
  16.     and much more...
  17.  
  18. ]]
  19.  
  20. local Settings = {};
  21. --Personalization
  22. Settings.LeaderboardSlot1 = "Kills"
  23. Settings.NotificationTitle = "Auto-Farm Notification"
  24. --Farming setup
  25. Settings.FarmIncreasing = 10 --Change 10 to another Integer Value at column 29 you want!
  26. Settings.AutoFarmKeyCode = Enum.KeyCode.F --Change F to another Enum String like Enum.KeyCode.Q at column 42 if you want!
  27. Settings.FarmToggle = false
  28.  
  29. local function Notify(title, text, icon, duration, button1)
  30.     game:GetService("StarterGui"):SetCore("SendNotification", {
  31.         Title = title;
  32.         Text = text;
  33.         Icon = icon;
  34.         Duration = duration;
  35.         Button1 = button1
  36.     })
  37. end
  38.  
  39. Notify(Settings.NotificationTitle, "Brought to you by pastebin.com/u/Filipono120", "", 5, "OK")
  40.  
  41. --Player variables
  42. local player = game.Players.LocalPlayer
  43. local leaderstats = player.leaderstats
  44. local UIS = game:GetService("UserInputService")
  45. --Setting up variables (at line 19)
  46. local Leaderboard = leaderstats:WaitForChild(Settings.LeaderboardSlot1)
  47.  
  48. UIS.InputBegan:Connect(function(input, GPE)
  49.     if input.KeyCode == Settings.AutoFarmKeyCode then
  50.         if Settings.FarmToggle == false then
  51.             Settings.FarmToggle = true
  52.             while Settings.FarmToggle == true do
  53.                 Leaderboard.Value = Leaderboard.Value + Settings.FarmIncreasing
  54.                 wait(8.5)
  55.             end
  56.         elseif Settings.FarmToggle == true then
  57.             Settings.FarmToggle = false
  58.         end
  59.     end
  60. end)
Add Comment
Please, Sign In to add comment