You need to add “f” at the end of your floating point numbers, as in “.1f”. This is because in C#, floating point numbers are seen as the “double” type by default, whereas Vector3 is a struct of three “float” type floating point numbers. The little “f” at the end of a number denotes that it is a float, not a double.
If you want to know more about float and double and value types in general (and you should, if you want to take programming seriously), read up on 'em.
You were right Thomas, adding the F at the end worked just fine. Thank you. I’m used to coding is JS and Java so I was a bit lost why this didn’t work. I’m a bit new to C sharp, but after I get the syntax down, it should be easy.