Cafe pickup counter help

Hello, I am trying to script a cafe pickup counter, whenever a chef pulls out a customers items and goes to the pickup counter and touches a half visible block, it appears on the counter and it can only be picked up by the person whose order it is. Can someone help me maek this?

Just a note, itll be on a tray, and then the player can grab the tray, and when they click with it equipped, they lose the tray and they get the separate items.

You’ll have to use a combination of local and server scripts, you could try virtually cloning the items. Then you need a click detector and you need to make sure that only the user that has perms to take the food has perms to take it.

Would it work if I added multiple values in the tray that were for example: Food1, Food2, Food3, Food4, Food5, Food6, and for example, if theres only 3 foods on the tray, Food4, Food5, and Food6’s value will be nil. And Food1.Value = Burger, Food2.Value = Donut, Food3.Value = Macaron, then there is a spot on the tray for each food, and when a food gets placed on a tray, the next nil value gets changed to that type of food, and it appears on the tray? Here is this reply more clearly explained: if Script.Parent.Food1.Value == burger then script.Parent.Food1Mesh = [insert burger mesh id here]

I wouldn’t recommend relying on if statements so heavily, try approaching the scenario from out the box, also try using a flow chart, it makes it easier to pass your ideas.

oh. okay. ill try that.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.