daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 763 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Credits to Harley#2487
  2.  
  3. local Wheat = game.Workspace.Wheat.F10
  4.  
  5. function BackPack()
  6.     local words = {}
  7.     local str = game.Players.LocalPlayer.PlayerGui.Main.Menu.Other.Backpack.Txt.Text
  8.     for i in string.gmatch(str, "%S+") do
  9.         table.insert(words, i)
  10.     end
  11.     return words
  12. end
  13.  
  14. function Sell()
  15.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-29.6813583, 3.04901004, -177.273071)
  16. end
  17.  
  18. function GetTool()
  19.     for i, v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  20.         if v:IsA("Tool") then
  21.             return v
  22.         end
  23.     end
  24. end
  25.  
  26. while true do
  27.     local tool = GetTool()
  28.     for i, v in pairs(Wheat:GetChildren()) do
  29.         local bp = BackPack()
  30.         if game.Players.LocalPlayer.leaderstats.Wheat.Value >= tonumber(bp[3]) then
  31.             Sell()
  32.             wait(0.8)
  33.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Position)
  34.             wait(0.3)
  35.             tool.FireTool:FireServer()
  36.         elseif game.Players.LocalPlayer.leaderstats.Wheat.Value < tonumber(bp[3]) then
  37.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Position)
  38.             wait(1.1)
  39.             tool.FireTool:FireServer()
  40.         end
  41.     end
  42. end
  43.  
  44. -- Credits to Harley#2487
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top