TEXT 220
Server Simulator Auto Farm Crate By venuslock on 2nd May 2023 06:55:03 AM
  1. local RunService = game:GetService("RunService")
  2.  
  3. local function teleportToCrate()
  4.     local cashCrate = game:GetService("Workspace").Crates.CashCrate
  5.     local goldCrate = game:GetService("Workspace").Crates.GoldCrate
  6.    
  7.     if cashCrate then
  8.         game.Players.LocalPlayer.Character:MoveTo(cashCrate.Position)
  9.     end
  10.    
  11.     if goldCrate then
  12.         game.Players.LocalPlayer.Character:MoveTo(goldCrate.Position)
  13.     end
  14. end
  15.  
  16. RunService.Heartbeat:Connect(teleportToCrate)

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.