I need it to be 0.0f format becaouse i use it in a Vector3(), and not having the f does not seem to work (well it works but the cordinates are totally wrong, and if i manually press f after it works.)
A float can’t be 951.9791f, it can only be 951.9791. You only add the “f” in a script to tell the compiler that it’s a float, but once compiled the number itself does not and cannot contain any letters. float.Parse is correct and returns a float, but your problem seems to be that you are using “xspawn = float.Parse(yposs);” when you should presumably be using “xspawn = float.Parse(xposs);”.