Need help with a 2d/3d button

need help with a 3d to 2d button and vice versa

so i’m working on a 2.5d platformer and im currently working on a debug button to switch to 3d and 2d at will

ive looked across devforum and its all 3d to 2d space

i’m not a good scripter, but heres what ive got rn
it just doesnt work, not even status changes

any sort of reply appreciated