Roblox Restaurant Tycoon Script AUTO COOK ALL REQUESTED MEALS

Roblox Restaurant Tycoon Script AUTO COOK ALL REQUESTED MEALS

Script By IRS

local children = game.Workspace.Tycoons:GetChildren()
local restaurant = {}
local me=game:GetService("Players").LocalPlayer
for i, child in ipairs(children) do
if child:FindFirstChild("Factory"):FindFirstChild("Player").value == me then
    restaurant=child
end
end

local children = restaurant.Factory.Customers:GetChildren()
for i, child in ipairs(children) do
for i, child2 in ipairs(child:GetChildren()) do
        if child2.Name=="ServiceSpeed" then elseif child2.Name=="Data" then else
            if child2:FindFirstChild("MealChoice") then
                local meal=child2.MealChoice.Value
                local wait=child2.WaitingFor.Value
                if meal~=nil then
                    local args = {
                        [1] = {
                            [1] = meal.Name,
                            [2] = restaurant.Factory.PlacedItems.Finished.Counter1.Base1
                        }
                    }
                    workspace.Events.New2018.Cooking:FireServer(unpack(args))
                else 
                    if wait~=nil then
                        local args = {
                            [1] = {
                                [1] = wait.Name,
                                [2] = restaurant.Factory.PlacedItems.Finished.Counter1.Base1
                            }
                        }
                        workspace.Events.New2018.Cooking:FireServer(unpack(args))
                    end
                end
            end
        end
    end
end
%d bloggers like this: