I’m currently making a Faucet system, but the thing is I am unsure on how to make it so that when you trigger it a second time everything goes back to it’s original state. I’ve tried searching through the Proximity Prompt Section, in the API but found nothing.
You can use the not statement for the boolean like this
prompt.Triggered:connect(function(Player)
game.Workspace.Watur.ParticleEmitter.Enabled = not game.Workspace.Watur.ParticleEmitter.Enabled
script.Parent.Parent.WaterRunningSound.Playing = not script.Parent.Parent.WaterRunningSound.Playing
end)
For the other part you can simply use a bool like the debounce then if its false it sets string to “Turn Off” and set debounce to true else if the debounce is true it sets string to “Turn On” etc.