So I have this door that will only be needed once. But the problem is I cannot use :Wait() at the end of the Touched event instead of :Connect(). The reason is that I have a couple if statements that I want to be checked before disconnecting the event. So basically I would need to disconnect the event inside of the event after the if statements passed. The problem is that I tried that and it did not work. Does anyone know why or have a suggestion? Thanks!

2 comments

0

Post the whole code.

0

Thanks but I figured it out. I was doing local connection = event listener instead of local connection connection = event listener.