I am trying to script something I’ve never seen done in a roblox game. the closes thing I have seen to this would probably be work at a pizza place. I have some form of scripting knowledge and I was wondering if someone could help me with this specific issue. I am trying to make a script where you can click onto an oven door and it will open, then you take multiple objects, (in my example Eggs, Wheat, Milk) and you put these object Inside an oven. once ALL objects have been put inside the oven I need the door to close. once the door has closed I need a timer to begin preferable 15 seconds. once the timer is complete I need the oven door to open and I need there to only be a cake left. I would like to do this myself apposed to paying someone so, anyway you can help me with my situation or better help me complete this that would be greatly appreciated.
I don’t need have my hand held throughout the entire process I just need people pointing me in the right direction. Also this is only my 2nd Topic I’ve ever made, so I am sorry if this is asking to much (I don’t know how much help I am allowed to ask for)
Create a table inside the player for an inventory system then when you go to cook the food have 3 variables that are bool values that will change to true if you find each specified item from a for loop of the players inventory. If all 3 are checked true run your script and pull the 3’values out of your table and if all aren’t true just play a fail noise or something. And if it works do wait(15) then give the player the pizza value
Mostly you will work lots with ProximityPrompt for your game. For putting stuff in/out that would be some common coding logic / table manipulation stuff. For setting timer to bake, using task should be suitable in this situation. For setting cake’s position, just working with CFrame.
If so. I think you could use touched or a region script to check what object is inside the machine. You could use values inside objects such as cake and player, If cake then do that, if player then do that. For cakes, when they change just make different types of cake possible to get and then use that for when the cakes change.
If you’ve ever played Lumber Tycoon then you can see that the trees you chop down break up into parts, little log parts. if you click on those logs you are able to click and drag them around. I want a similar system. I have already gotten the system to work, when I click and hold something I can drag it around. What I don’t know how to do is to script a system to where you can open the Oven door and take the Egg, Wheat, and Milk are put into an “oven” and once they are put into and oven an “Oven Door”(Once all 3 are put into the oven, not just 1 or 2 of the items) closes (plays a closing door animation), once the door has closed I want there to be a ~15 second wait time. after the wait is complete I want the “Oven Door” to open and there to only be a cake inside instead of the Egg Wheat and Milk
I explained in my other post what you could do, also for the egg whites, you could drag a bowl of egg whites and put them in a container which has a script to check what came inside the container (use hitbox if you want)