Skip to content

Instantly share code, notes, and snippets.

@jluims
Last active April 12, 2022 21:20
Show Gist options
  • Save jluims/5a58bde741ed46b583d675af0e05d8b0 to your computer and use it in GitHub Desktop.
Save jluims/5a58bde741ed46b583d675af0e05d8b0 to your computer and use it in GitHub Desktop.
roblox burrito
if not game.Loaded then
game.Loaded:Wait()
end
if game.PlaceId ~= 7603178367 then
return
end
local delay = 3
local count = 2700 + 28200
local network = require(game.ReplicatedStorage:WaitForChild'Modules'.Core.Networking)
function notify(title, text)
print('[' .. title .. '] ' .. text)
game:GetService('StarterGui'):SetCore('SendNotification', {
Title = title,
Text = text
})
end
function burrito(count)
local done = 0
local payout = count * 100
notify('started ($' .. payout .. ')', 'started farming ' .. tostring(count) .. ' burritos')
network:FireServer("UpdateReturningPlayer");
network:FireServer("startBurritoBuilder");
network:FireServer("togglePlayerVisible", true);
while done < count do
wait(delay)
notify('remaining', getTimeFrom(((count - done) * delay)) .. ' until next payout of $' .. tostring(payout))
done = done + 1
end
notify('done', 'received $' .. tostring(payout))
network:FireServer("burritoBuilderResults", { count });
network:FireServer("endBurritoBuilder");
end
function getTimeFrom(seconds)
local secStr = tostring(seconds)
if seconds < 60 then-- seconds
return tostring(seconds) .. ' seconds';
elseif seconds < 60 * 60 then--minutes
return tostring(seconds/60) .. ' minutes';
elseif seconds < 60 * 60 * 24 then--hours
return tostring(seconds/60/60) .. ' hours';
else
return tostring(seconds/60/60/24) .. ' days';
end
end
-- ANTI AFK
local vu = game:GetService("VirtualUser")
game:GetService("Players").LocalPlayer.Idled:connect(function()
vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
wait(1)
vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
end)
while true do
burrito(count)
end
@jluims
Copy link
Author

jluims commented Apr 12, 2022

replace count with amount of burritos

@jluims
Copy link
Author

jluims commented Apr 12, 2022

ex. count = 9999

@robccount1
Copy link

robccount1 commented Apr 12, 2022

i dont seem to be receiving any extra wrapped burritos
do you receive the amount you set in "local count = ___" immediately? overtime?
is the count amount the exact number of wrapped burritos you'll receive? is there an ideal amount?

@jluims
Copy link
Author

jluims commented Apr 12, 2022

@robccount1 you receive them instantly after (3 * burritos) seconds. The count is exact

@jluims
Copy link
Author

jluims commented Apr 12, 2022

The ideal amount is 8000 burritos to end up on the board (6.6 hours).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment