I can play pokemon sun normally on the emulator so I think the problem is with the randomized rom but I'm not sure what went wrong when randomizing
EDIT: I followed this video to randomize my game
I tried using Asia81's HackingToolkit V9 and used PK3DS to randomize my game but after moving the files over and rebuilding it, citra cannot launch the game. Might it be becaused the rom became encrypted after I modified it with PK3DS?