TEXT 167
Pilgrammed Auto Farm Chest By venuslock on 12th February 2023 04:22:02 AM
  1. pcall(
  2.  
  3.     function()
  4.         local function renderSteppedWait(waitTime)
  5.             local now = os.clock()
  6.             while true do
  7.                 if (os.clock() - now) >= waitTime then
  8.                     break
  9.                 end
  10.                 renderStepped:Wait()
  11.             end
  12.         end
  13.     end
  14. )
  15.  
  16. _G.RenderSteppedToggle = true
  17. game:GetService("RunService").Stepped:connect(
  18.     function()
  19.         if _G.RenderSteppedToggle then
  20.             pcall(
  21.                 function()
  22.                     for i, v in pairs(game:GetService("Workspace").Chests:GetDescendants()) do
  23.                         if v.Name == "Root" then
  24.                             game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = v.CFrame
  25.                         end
  26.                     end
  27.                 end
  28.             )
  29.             renderStepped:Wait(1)
  30.         end
  31.     end
  32. )
  33.  
  34. game:GetService("RunService").Stepped:connect(
  35.     function()
  36.         if _G.RenderSteppedToggle then
  37.             pcall(
  38.                 function()
  39.                     game:service("VirtualInputManager"):SendKeyEvent(true, "G", false, game)
  40.                    
  41.                 end
  42.             )
  43.         end
  44.     end
  45. )

Texbin is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.