I have a problem im very stupid new and i dont understand it

C# is a caps sensitive language. “X” and “x” are two different things. Vector2 does not contain a field called “X”, but it does contain one called “x”. Did you make sure you are using a lower case x and y?

Post your modified script with code tags so we can see what is wrong. If you do not understand how to use code tags, follow this guide: Using code tags properly