Transparency When Quitting To Menu

I'd need to find a way to make the player transparent when he quits the game to the title from the menu. Would it be possible to write a script for this?
When player quit to title from menu, the scene changes from Scene_Map to Scene_Title. By that time, player is no longer exist, so why bother turn it transparent?


I don't get it, but I made a snippet of what you ask anyway.

Code:
class Scene_End < Scene_MenuBase
  def command_to_title
    close_command_window
    fadeout_all
    $game_player.transparent = true
    SceneManager.goto(Scene_Title)
  end
end
Thanks, even though I already figured out an additional solution to my problem. Anyways, that might prove useful to someone stumbling on the same issue! This had to do with title skipping stuff.

Original thread: https://forums.rpgmakerweb.com/threads/transparency-when-quitting-to-menu.64158/