You need to close the window and reopen it for it to work, or something similar. I've been able to do this in the past, but I always have problems figuring it out. But it seems there's an easy way to get it to work, by simply adding a simple function, such as 'Game.GetPlayer()', so now you can close the window without compiling errors. Then reopen and just replace it with your own functions, and the button should now work.