Problem with a variable

That made it work, thank you! Glad I got that solved, now I just need to figure out what’s going on with the compiler. It seems to freak out and give me loads of errors that just aren’t errors.