How to access a variable from another scene?

I have a script with the variable “SnowballAmount” and I’m trying to access its value from another script inside a different scene. Is there any way I can do this?

Two ways commonly used are object.DontDestroyOnLoad and PlayerPrefs. I prefer the former because it can keep anything across scenes and you can control access via properties or events or any other preferred access method.