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!
COMMUNITY QUESTION
[Solved]How do I disconnect an event after it has happened in a specific way that I want?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Post the whole code.
Thanks but I figured it out. I was doing local connection = event listener instead of local connection connection = event listener.