PhoenixPlayzYT

Auto farm script

May 6th, 2025 (edited)
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. -- Load Rayfield Library
  2. local Rayfield = loadstring(game:HttpGet("https://sirius.menu/rayfield"))()
  3.  
  4. -- AutoFarm flag
  5. _G.AutoFarm = false
  6.  
  7. -- Function to simulate burrito button clicking
  8. function startAutoFarm()
  9. while _G.AutoFarm do
  10. pcall(function()
  11. local player = game.Players.LocalPlayer
  12. local gui = player:WaitForChild("PlayerGui")
  13.  
  14. -- Replace "BurritoButton" with the actual button name if needed
  15. local burritoButton = gui:FindFirstChild("BurritoButton", true)
  16. if burritoButton and burritoButton:IsA("TextButton") then
  17. burritoButton:Activate()
  18. end
  19.  
  20. -- Optional RemoteEvent method (uncomment if the game uses it)
  21. -- local remote = game:GetService("ReplicatedStorage"):FindFirstChild("MakeBurritoRemote")
  22. -- if remote then
  23. -- remote:FireServer()
  24. -- end
  25. end)
  26. task.wait(0.5)
  27. end
  28. end
  29.  
  30. -- Create Rayfield Window
  31. local Window = Rayfield:CreateWindow({
  32. Name = "Chipotle Burrito Auto Farm",
  33. LoadingTitle = "PhoenixYT AutoFarm",
  34. LoadingSubtitle = "by Phoenix",
  35. ConfigurationSaving = {
  36. Enabled = false
  37. },
  38. Discord = {
  39. Enabled = false
  40. },
  41. KeySystem = false,
  42. })
  43.  
  44. -- Create Main Tab
  45. local MainTab = Window:CreateTab("Main", 4483362458) -- burrito icon
  46.  
  47. -- Add Toggle to Main Tab
  48. local Toggle = MainTab:CreateToggle({
  49. Name = "Auto Build Burritos",
  50. CurrentValue = false,
  51. Flag = "AutoFarmToggle",
  52. Callback = function(Value)
  53. _G.AutoFarm = Value
  54. if Value then
  55. startAutoFarm()
  56. end
  57. end,
  58. })
  59.  
  60. Rayfield:Notify({
  61. Title = "Script Loaded",
  62. Content = "Use the toggle to auto build burritos!",
  63. Duration = 5,
  64. Image = 4483362458,
  65. Actions = {
  66. Ignore = {
  67. Name = "OK",
  68. Callback = function() end
  69. },
  70. },
  71. })
  72.  
Advertisement
Add Comment
Please, Sign In to add comment