How do I load a specific scene inside a function?

I am trying to make it so that if the player dies, it will reload the scene. I am very new to PlayCanvas and am not sure how to do this using a script. I have created a function that loads when the player dies (for me when the player’s y position is below -4) but I am having trouble reloading the scene. Any help will be appreciated :slight_smile:

Hi @Cardinal64 and welcome,

You can start by studying the following examples that handle scene changing. If you have any further question feel free to ask: