Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
968
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.07 KB | None | 0 0
  1. local lp = game:GetService("Players").LocalPlayer
  2. local library = loadstring(game:HttpGet("https://pastebin.com/raw/eWKgbdix", true))()
  3. local w = library:CreateWindow('AutoFarm')
  4. local autoSel = w:Toggle('Auto Sell', {flag = "toggle1"}, function()
  5.     if(w.flags.toggle1 == true) then
  6.         _G.AutoSell = true
  7.     else
  8.         _G.AutoSell = false
  9.     end
  10. end)
  11. local autoFlow = w:Toggle('Auto Teleport To Flowers', {flag = "toggle3"}, function()
  12.     if(w.flags.toggle3 == true) then
  13.         _G.AutoFlower = true
  14.     else
  15.         _G.AutoFlower = false
  16.     end
  17. end)
  18.  
  19. local teleW = library:CreateWindow('Teleports')
  20. local randTele = teleW:Button('Teleport To Random Grass Zone', function()
  21.     Areas = {}
  22.     Areas[1] = "candyLand"
  23.     Areas[2] = "Snow"
  24.     Areas[3] = "pyramidPastures"
  25.     Areas[4] = "beachIsland"
  26.     Areas[5] = "Swamp"
  27.     Areas[6] = "lavaIsland"
  28.     Areas[7] = "Bee"
  29.     Areas[8] = "Glowshroom"
  30.     number = math.random(1,8)
  31.     area = Areas[number]
  32.     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Portals[area].Exit.CFrame
  33. end)
  34. local teleCaL = teleW:Button('Teleport To Candy Land', function()
  35.     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Portals.candyLand.Exit.CFrame
  36. end)
  37. local teleCaL = teleW:Button('Teleport To Snow', function()
  38.     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Portals.Snow.Exit.CFrame
  39. end)
  40. local teleCaL = teleW:Button('Teleport To Pyramid', function()
  41.     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Portals.pyramidPastures.Exit.CFrame
  42. end)
  43. local teleCaL = teleW:Button('Teleport To Beach Island', function()
  44.     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Portals.beachIsland.Exit.CFrame
  45. end)
  46. local teleCaL = teleW:Button('Teleport To Lava Island', function()
  47.     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Portals.lavaIsland.Exit.CFrame
  48. end)
  49. local teleCaL = teleW:Button('Teleport To Swamp', function()
  50.     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Portals.Swamp.Exit.CFrame
  51. end)
  52. local teleCaL = teleW:Button('Teleport To Bee', function()
  53.     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Portals.Bee.Exit.CFrame
  54. end)
  55. local teleCaL = teleW:Button('Teleport To Glowshroom', function()
  56.     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Portals.Glowshroom.Exit.CFrame
  57. end)
  58. local cre = library:CreateWindow('Credits')
  59. cre:Section('V3RM : DeanGo31')
  60. cre:Section('Discord : Vergo#1206')
  61.  
  62.  
  63.  
  64. while wait() do
  65.     if(_G.AutoSell == true) then
  66.         local sellGrassSpot
  67.         local sellFlowerSpot
  68.    
  69.         local function getSellGrassZone()
  70.             for I,V in pairs(game.Workspace.Map.Pads:GetChildren()) do
  71.                 if V.Name == "Sell" then
  72.                     if V.Sign.TextLabel.Text == "Sell Grass" then
  73.                         sellGrassSpot = V
  74.                     end
  75.                 end
  76.             end
  77.         end
  78.    
  79.         local Amount = string.split(game.Players.LocalPlayer.PlayerGui.gameUI.grassGauge.barFrame.grassLabel.Text, "/")
  80.         local CurrentAmount = tonumber(Amount[1])
  81.         local MakAmount = tonumber(Amount[2])
  82.         if(CurrentAmount >= MakAmount) then
  83.             getSellGrassZone();
  84.             local lastCF = lp.Character.HumanoidRootPart.CFrame
  85.             lp.Character.HumanoidRootPart.CFrame = sellGrassSpot.CFrame;
  86.             lp.PlayerGui.gameUI.sellPromptFrame.Visible = false
  87.             wait(.5)
  88.             lp.Character.HumanoidRootPart.CFrame = lastCF
  89.    
  90.         end
  91.         wait(.5)
  92.     end
  93.     if _G.AutoFlower == true then
  94.         for I,V in pairs (game.Workspace.rayIgnore:GetChildren()) do
  95.             if _G.AutoFlower == false then return end
  96.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = V.CFrame
  97.             wait(.5)
  98.         end
  99.     end
  100. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement