It is not allowing me to make a public void. Error: CS0106

@RishiBoi12 to help you in the future, here is how to report your problem productively in the Unity3D forums:

http://plbm.com/?p=220

Please use code tags: Using code tags properly