Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Load Rayfield Library
- local Rayfield = loadstring(game:HttpGet("https://sirius.menu/rayfield"))()
- -- AutoFarm flag
- _G.AutoFarm = false
- -- Function to simulate burrito button clicking
- function startAutoFarm()
- while _G.AutoFarm do
- pcall(function()
- local player = game.Players.LocalPlayer
- local gui = player:WaitForChild("PlayerGui")
- -- Replace "BurritoButton" with the actual button name if needed
- local burritoButton = gui:FindFirstChild("BurritoButton", true)
- if burritoButton and burritoButton:IsA("TextButton") then
- burritoButton:Activate()
- end
- -- Optional RemoteEvent method (uncomment if the game uses it)
- -- local remote = game:GetService("ReplicatedStorage"):FindFirstChild("MakeBurritoRemote")
- -- if remote then
- -- remote:FireServer()
- -- end
- end)
- task.wait(0.5)
- end
- end
- -- Create Rayfield Window
- local Window = Rayfield:CreateWindow({
- Name = "Chipotle Burrito Auto Farm",
- LoadingTitle = "PhoenixYT AutoFarm",
- LoadingSubtitle = "by Phoenix",
- ConfigurationSaving = {
- Enabled = false
- },
- Discord = {
- Enabled = false
- },
- KeySystem = false,
- })
- -- Create Main Tab
- local MainTab = Window:CreateTab("Main", 4483362458) -- burrito icon
- -- Add Toggle to Main Tab
- local Toggle = MainTab:CreateToggle({
- Name = "Auto Build Burritos",
- CurrentValue = false,
- Flag = "AutoFarmToggle",
- Callback = function(Value)
- _G.AutoFarm = Value
- if Value then
- startAutoFarm()
- end
- end,
- })
- Rayfield:Notify({
- Title = "Script Loaded",
- Content = "Use the toggle to auto build burritos!",
- Duration = 5,
- Image = 4483362458,
- Actions = {
- Ignore = {
- Name = "OK",
- Callback = function() end
- },
- },
- })
Advertisement
Add Comment
Please, Sign In to add comment