Quit button

I wanna program my start screen so when i hit a button (using Fire1 for test) it will shut down the game. Its not working at all. Heres my current script:

function Update() {

This should work fine. Remember though, as the documentation states, Application.Quit is ignored in the editor and the web player. Have you tested your code in a standalone build?