Professional Documents
Culture Documents
-- Define variables
local library =
loadstring(game:HttpGet("https://raw.githubusercontent.com/LegoHacks/Utilities/
main/UI.lua"))();
-- Main script
bloxburg:AddToggle({
text = "Stylez Hairdresser";
flag = "hairdresser";
callback = function(enabled)
if (not enabled) then return end;
while library.flags.hairdresser do
local workstations =
workspace.Environment.Locations.StylezHairStudio.HairdresserWorkstations;
for i, v in next, workstations:GetChildren() do
if (v.Occupied.Value) then
fireServer({
Type = "FinishOrder";
Workstation = v;
Order = getOrder(v.Occupied.Value);
});
end;
end;
wait();
end;
end;
});
bloxburg:AddToggle({
text = "Bloxy Burgers Cashier";
flag = "cashier";
callback = function(enabled)
if (not enabled) then return end;
while library.flags.cashier do
local workstations =
workspace.Environment.Locations.BloxyBurgers.CashierWorkstations;
for i, v in next, workstations:GetChildren() do
if (v.Occupied.Value) then
fireServer({
Type = "FinishOrder";
Workstation = v;
Order = getOrder(v.Occupied.Value);
});
end;
end;
wait();
end;
end;
});
-- Load library
library:Init();