How to make a system like this:

Just a side note, never ever use the parent argument in the constructor function Instance.new. It has a massive performance problem, if you want more info then check this out.. Asides, moving back onto Scythes post, making a table is a good idea. You could do something with tables for maximum randomability is that a word? using table.getn() and math.random rather than making tables with set sides, drinks and mains.

Other than the code base, the UI part is easier. Just make assigned icons to their respective food items, probably a table… I’m not sure how you would communicate the meals, maybe via values to be honest communicating via values is something but it is pretty long winded, I just cannot think of alternatives on the spot right now

Uh oh, submitted a little to late. Well done on finding a solution though!

1 Like