What would be the best way to enable/disable ProximityPrompt on specific condition?

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?

nah that’s fine i’d do it like that too

i also do that thing that i have many “if condition then” but its okay however you should post this on