After several failures I was unable to create a pause button that changed the scene on my game.lua file. In other words I am not able to create a button that takes me to another "screen" on my game.lua file. Any help is appreciated. Thank you in advance!
Also, should I add the code to the top or bottom of the game.lua file?