I am trying to make a confirmation box (the typical box that contains some text, yes button and no button). I need to wait until the player press button yes or button no, so the code Indefinite wait until the player click a button.
Any help will be appreciated.
You can bind the wait() to an event instead of a :connect(), this will yield the thread until the event is fired like so:
Button.MouseButton1Click:wait()