[SOLVED] Food Progression System Using Tools

Hey, I am just wondering how I would go about a food progression system I’ll explain what I mean:
I am not a very good scripter, I know hardly any however I need to figure this out in order for my project to work.

I’ll use a pizza for example (A type of food I want to make anyway)
How would I make it so that once I click a model and get a tool by the name of “Pizza Base” and put the tool inside another model (Like you how you see coffee machines in cafe games work) it modifies the tools look to add whatever topping I put the tool inside.

For example: If I had a model of cheese and put the pizza base inside the cheese model, how would I then make the tool change to show the pizza base with cheese on.

Hope that makes sense,
Thanks,

1 Like

If you wanted to do this, have an click detector within your object “adders”. Have it check the player for the object, and if so, clone whatever object you have inside the topping creator, and have it set its position to wherever you want on the tool, then weld it and that should work. The community can help provide ideas for how to do what you want, but we wont provide full on code unless it is already made and has an error. I hope this helps get started and good luck!

Is it possible to say that in a more simple way? Sorry, I am just quite new to scripting, more of a builder myself.

You could just make a separate tool that is the pizza with cheese on it then when you put the pizza base on the cheese model, you would replace both with the new pizza with cheese separate tool I mentioned?

1 Like

The way I have seen a lot of people accomplish this is to have the ingredient already on the pizza base, but with a Transparency of 1. Then, when the pizza touches the topping giver part, it simply makes the part on the actual pizza change to a Transparency of 0.

From there, you could change the tool’s name to reflect the change in topping made to the pizza.

2 Likes

That seems a lot more simple and easier, thank you.

1 Like

If you want to make sure all of the parts in your pizza tool stay together, I recommend making a weld script or just using qPerfectionWeld made by Quenty, as all you need to do is put it into the tool and then it will handle the rest.