Is there a way to open the "Are you sure you want to leave" dialogue with a localscript?

  • What I want to do
    I want to make a ScreenGUI button that directly opens the client’s “Are you sure you want to leave the experience?” coregui dialog window, skipping the menu.

  • The issue
    I have no idea how, or if it’s even possible!

  • What I’ve tried
    Looked everywhere. I saw somewhere it was not possible to open the main escape menu with a script, but I’m fairly positive I’ve seen games before that open the reset dialog. I’m hoping it’s the real one getting called and not a recreation.

Thanks everyone!