Keep on getting very many errors for the script and don't know how to fix them

What errors do you get? We answer these things while on phones and away from out computers, so knowing the error often lets us help when we otherwise couldnt - and besides, since we're helping you for free, you should make it easy for us.

Also, use code tags when posting code.

And, what arduino board?