Advertisement
RapidStoned

AutoFarmer

May 17th, 2022
1,682
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local _workspace = game:GetService("Workspace")
  2. local players = game:GetService("Players")
  3.  
  4. local grassFolder = _workspace:WaitForChild("GrassObjects")
  5. local player = players.LocalPlayer
  6. local isToggled = false
  7.  
  8. spawn(function()
  9.     while task.wait(.1) do
  10.         if isToggled then
  11.             for i,v in ipairs(grassFolder:GetChildren()) do
  12.                 if v.CFrame ~= CFrame.new(0, -100, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) then
  13.                     task.wait(.1)
  14.                     if not isToggled then break end
  15.                     player.Character.HumanoidRootPart.CFrame = v.CFrame
  16.                 end
  17.             end
  18.         end
  19.     end
  20. end)
  21.  
  22. game:GetService("UserInputService").InputBegan:Connect(function(input)
  23.     if input.KeyCode == Enum.KeyCode.R then
  24.         isToggled = not isToggled
  25.     end
  26. end)
Advertisement
RAW Paste Data Copied
Advertisement