CS 1585 error pops upon this script. Why?

I have a script that does not work because the verification of public, such as public void MoveSpeed = 10f; does not precede the member type and name. I would put the script here but it is in notepad so it does not let me submit the question. I can send it to an Email or something, but I can’t put it here.

well you cant call a “float” (number) a “void” (Code-Routine)

you should change that to public float MoveSpeed = 10f; to work as a float.#

I hope that this works for you.