Hello! I’m making a simple cooking system using ProximityPrompts.
What I want to implement is like:
- There’s a stove and player has a pot
- Player goes close to the stove
- A prompt that puts the pot onto the stove when it’s triggered shows up
- Player puts the pot onto the stove(the prompt disappear)
- A prompt that takes out the pot when it’s triggered shows up
- Player cooks it and takes it out (the prompt disappear)
- …Same goes for other kitchen things
I can make it, I made it, but the problem is I am not a good coder!
My code seems to have too many 'If’s. Because it checks the tool player’s equipping every time.
I think it’s unefficient. Is there any simpler way? Or is it okay?