How would I go about making a cooking system such as Soros?
I just tried recently but failed at it.
Could you give more detail as to what this is like? It’s hard for people to help you given a vague topic.
It uses a bunch of recipes, where you click on a recipe, it shows arrows to where to make it in steps. I am trying to make not hard code it, and I cant figure it out.
You could use a table of functions in a local script to run each tutorial. Then you can mass connect the event for each recipe button to each event. Then the actions the user preforms are sent to the server through remote events (and maybe click detectors too) and processed.
I’d recommend being a bit more specific as to what you need help with. Do you need a general guideline or are there specific parts that are difficult for you to figure out?
A video or picture would also be helpful.
I need a general guideline. I’m also stuck on how I can use ModuleScript with functions inside of them, and use it with the client, as you said.
To use a module script on the client you use the require function in a local script. The module needs to be in replicated storage or somewhere else it can be accessed by the client. Also remember to use WaitForChild to wait for it to be replicated from the server.
Sorry, I should’ve been more specific.
So I would just write a regular old function but put it in a ModuleScript, and play it on the client. I would make the function interchangeable so all recipes can use it, and just win like that?
I break things into tasks that are similar. I’d use separate functions but use similar functions inside of them. For example, you could have recipe function that uses a playOpenOvenAnimation function that uses a PlayAnimation function. It depends though.
If you care a lot about exploiting you’d need some server side checks though programming most of it client sided would be easier.
Note: I’m guessing what Soros cooking system looks like