Switching from Scene to Scene

I would like to be able to use the Ray-casting script in combination with a scene script, so when the “Play” Button on the Menu is pressed, it will switch the scene to the game scene…How is this done? Or do I not need the Ray-casting script?

https://playcanvas.com/project/344900/overview/tutorial-loading-scenes look at this