Professional Documents
Culture Documents
Welcome To Bloxburg Auto Farm Hair Dressers - Open Source
Welcome To Bloxburg Auto Farm Hair Dressers - Open Source
function getColor(colorName)
for i, v in next, colors do
if v.Name == colorName then
return i
end
end
end
function doOrder()
for _, v in next, doActionFuncs do
local workstation = getupvalue(v, 2)
local npc = workstation.Occupied.Value
if workstation.InUse.Value == player and npc then
local head = npc:WaitForChild("Head")
head:WaitForChild("ChatBubble")
task.wait(0.1)
if npc and npc:FindFirstChild("Order") and npc.Order.Style.Value ~= nil
then
setupvalue(v, 7, { getStyle(npc.Order.Style.Value),
getColor(npc.Order.Color.Value) })
task.wait(0.1)
v("Done")
end
end
end
end
repeat
doOrder()
task.wait(0.1)
until nil