Thank you. Does playcanvas have any replay functions? Or would i have to use the pc.loadSceneHierarchy? Since I only have one scene it would be nice if I could just reset the current hierarchy.
No you have to implement this yourself as it’s really application-specific. When I write scripts I usually write a reset function as well from the beginning as it makes stuff easier as the game becomes more and more complicated.