End a game?

hey i’m working on a pong game and i already have a counter, so when the score player gets to 5 i need to stop the game… i already use Application.Quit(); but it doesnt work… :frowning:
HELP!

Application.Quit() does not work when running the game from the editor or through the webplayer, but it should work in builds!

You can only use the Application.Quit() in a standalone application. It will not work when playing the game in the editor or in the web player.