I am a beginner scripter, and am currently making my Cafe. All I need to do is script the food and drink so they give me that certain thing.
How do I script food/drink machines so they give me a certain food/drink?
2 answers
Im not quite the best at scripting, but what I think you have to do is make the model of the food/drink then put that model into serverstorage, after that make an event in your script so that when for example, a button is pressed, it will put the food/drink into the players inventory using
name-of-food-or-drink.parent = game.StarterPlayer
I dont know, but just try this, and if it doesnt work, then try putting it into a local script
1 comment
You'd need .Parent, and the StarterPlayer is the settings for the players, not the backpack.
Clone a tool to the players BackPack when a certain button is pressed or touched. Like others said. Not a request site. If you don't know how to Clone() or access the BackPack, you haven't tried anything, or probably can't even script.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Hmmm. I don't know.
You need to post things you've already tried. Don't expect us to script the game for you. If you are looking for the concept, just have a click detector attactched to each button and have them each clone the drink into the workspace or directly into the backpack.