SceneManager Bug

Can you post the whole script and not just a tiny screenshot? See Unity Discussions formatting reference to learn how to post code here.

The error would imply you’re writing the code in the wrong place, but I suspect you’ve not referenced the appropriate namespace.