Run it
Copy the script and paste it into your executor.
player = .Players.LocalPlayer
playerGui = player:()
ScreenGui = .()
ScreenGui.Name =
ScreenGui.Parent = playerGui
MainFrame = .()
MainFrame.Size = .(, , , )
MainFrame.Position = .(, -, , -)
MainFrame.BackgroundColor3 = .(, , )
MainFrame.BorderSizePixel =
MainFrame.Parent = ScreenGui
Title = .()
Title.Size = .(, , , )
Title.BackgroundTransparency =
Title.Text =
Title.Font = .Font.GothamBold
Title.TextSize =
Title.Parent = MainFrame
ingredients = {, , , , , , , , , }
selectedIngredients = {}
IngredientLabel = .()
IngredientLabel.Size = .(, , , )
IngredientLabel.Position = .(,,,)
IngredientLabel.Text =
IngredientLabel.BackgroundTransparency =
IngredientLabel.Font = .Font.Gotham
IngredientLabel.TextSize =
IngredientLabel.Parent = MainFrame
ingredientButtons = {}
i, ingredient (ingredients)
button = .()
button.Size = .(, , , )
button.Position = .(, + ((i-)%)*, , + .((i-)/)*)
button.Text = ingredient
button.Font = .Font.Gotham
button.TextSize =
button.BackgroundColor3 = .(, , )
button.Parent = MainFrame
button.MouseButton1Click:(()
.(selectedIngredients, ingredient)
IngredientLabel.Text = .. .(selectedIngredients, )
)
ingredientButtons[ingredient] = button
recipes = {
Cookies = {, , },
Cake = {, , , },
Pizza = {, , },
Burger = {, , }
}
cookingTime =
GuideFrame = .()
GuideFrame.Size = .(, , , )
GuideFrame.Position = .(, -, , -)
GuideFrame.BackgroundColor3 = .(, , )
GuideFrame.BorderSizePixel =
GuideFrame.Visible =
GuideFrame.Parent = ScreenGui
GuideTitle = .()
GuideTitle.Size = .(, , , )
GuideTitle.BackgroundTransparency =
GuideTitle.Text =
GuideTitle.Font = .Font.GothamBold
GuideTitle.TextSize =
GuideTitle.Parent = GuideFrame
yOffset =
recipe, ing (recipes)
label = .()
label.Size = .(, -, , )
label.Position = .(, , , yOffset)
label.BackgroundTransparency =
label.Text = recipe .. .. .(ing, )
label.Font = .Font.Gotham
label.TextSize =
label.TextXAlignment = .TextXAlignment.Left
label.Parent = GuideFrame
yOffset = yOffset +
GuideButton = .()
GuideButton.Size = .(, , , )
GuideButton.Position = .(, -, , )
GuideButton.Text =
GuideButton.Font = .Font.Gotham
GuideButton.TextSize =
GuideButton.BackgroundColor3 = .(, , )
GuideButton.Parent = MainFrame
GuideButton.MouseButton1Click:(()
GuideFrame.Visible = GuideFrame.Visible
)
customers = {, , }
customerOrders = {}
customerTimers = {}
customerBlocks = {}
servedCount =
totalCustomers =
maxCustomers =
CustomerLabelFrame = .()
CustomerLabelFrame.Size = .(, , , )
CustomerLabelFrame.Position = .(, , , )
CustomerLabelFrame.BackgroundTransparency =
CustomerLabelFrame.Parent = MainFrame
colors = {.(,,), .(,,), .(,,)}
()
totalCustomers >= maxCustomers
totalCustomers = totalCustomers +
customer = customers[.(,#customers)]
recipeNames = {}
r,_ (recipes) .(recipeNames,r)
order = recipeNames[.(,#recipeNames)]
customerOrders[customer] = order
customerTimers[customer] =
block = .()
block.Size = .(, , , )
block.Position = .(, , , (#CustomerLabelFrame:())*)
block.BackgroundColor3 = colors[.(,#colors)]
block.BorderSizePixel =
block.Parent = CustomerLabelFrame
customerBlocks[customer] = block
text = .()
text.Size = .(, , , )
text.BackgroundTransparency =
text.Text = customer .. .. order .. .. customerTimers[customer] ..
text.Font = .Font.Gotham
text.TextSize =
text.Parent = block
(()
customerTimers[customer] >
()
customerTimers[customer] = customerTimers[customer] -
customerTimers[customer] >
text.Text = customer .. .. order .. .. customerTimers[customer] ..
customerOrders[customer]
text.Text = customer ..
customerOrders[customer] =
customerTimers[customer] =
block:()
)
cookButton = .()
cookButton.Size = .(, , , )
cookButton.Position = .(, -, , )
cookButton.Text =
cookButton.Font = .Font.Gotham
cookButton.TextSize =
cookButton.BackgroundColor3 = .(, , )
cookButton.Parent = MainFrame
cookingLabel = .()
cookingLabel.Size = .(,,,)
cookingLabel.Position = .(,,,)
cookingLabel.BackgroundTransparency =
cookingLabel.Font = .Font.Gotham
cookingLabel.TextSize =
cookingLabel.Text =
cookingLabel.Parent = MainFrame
progressBars = {}
i = ,
barBackground = .()
barBackground.Size = .(, , , )
barBackground.Position = .(, -, , + (i-)*)
barBackground.BackgroundColor3 = .(,,)
barBackground.BorderSizePixel =
barBackground.Parent = MainFrame
barFill = .()
barFill.Size = .(, , , )
barFill.BackgroundColor3 = .(,,)
barFill.BorderSizePixel =
barFill.Parent = barBackground
.(progressBars, barFill)
restartButton = .()
restartButton.Size = .(, , , )
restartButton.Position = .(, -, , )
restartButton.Text =
restartButton.Font = .Font.GothamBold
restartButton.TextSize =
restartButton.BackgroundColor3 = .(,,)
restartButton.Visible =
restartButton.Parent = MainFrame
restartButton.MouseButton1Click:(()
ScreenGui:()
)
cookButton.MouseButton1Click:(()
tempIngredients = {.(selectedIngredients)}
selectedIngredients = {}
IngredientLabel.Text =
dishesToCook = {}
_ = ,
madeDish =
recipe, reqIngredients (recipes)
match =
_, req (reqIngredients)
.(tempIngredients, req)
match =
match #reqIngredients == #tempIngredients
madeDish = recipe
madeDish
.(dishesToCook, madeDish)
tempIngredients = {}
i, dish (dishesToCook)
(()
elapsed =
progressBars[i].Size = .(,,,)
elapsed < cookingTime
()
elapsed = elapsed +
progressBars[i].Size = .(.(elapsed/cookingTime,,),,,)
cookingLabel.Text = dish ..
customer, order (customerOrders)
order == dish
cookingLabel.Text = customer .. .. dish ..
customerOrders[customer] =
customerTimers[customer] =
customerBlocks[customer]
customerBlocks[customer]:()
servedCount = servedCount +
()
progressBars[i].Size = .(,,,)
cookingLabel.Text =
totalCustomers >= maxCustomers #customerOrders ==
servedCount >=
cookingLabel.Text = .. servedCount ..
cookingLabel.Text = .. servedCount ..
restartButton.Visible =
)
)
(()
totalCustomers < maxCustomers
()
()
)
I was challenged by my Cousin to make a Game script in 1 hour with zero play tests If i will not be Updating this btw because It was a challenge chill Credits: DcruzRace: Made the Bet and helped with some parts Devex: Made the UI and the baking Scripts and the AI for the Costumers

Universal