i have this move script and i get errors

if i remove the / i get like 20 errors the i got right is expecting EOF

 /var move : float;
 var jumpsound : AudioClip;
 private var jump : boolean;

function FixedUpdate () 
{
 if(Input.GetKey("d"))
{
  rigidbody.AddForce (Vector3.right * -1 * move);
}
 if(Input.GetKey("a"))
{
  rigidbody.AddForce (Vector3.right * 1 * move);
}
 if( (Input.GetKey("space"))  (jump))
{
  rigidbody.AddForce (Vector3.up * move * 20);
}
function (OnCollisionEnter();
{
 jump : = true;
}
function OnCollisionExit();
{
 jump = false;
}/
  1. You are missing the closing brace for the FixedUpdate function
  2. You have an extra opening parenthesis on line 19
  3. You have a semicolon on line 19 which should not be there
  4. You have a colon on line 21 which should not be there
  5. You have a semicolon on line 23 which should not be there

thanks i did what you said to do but then got even more errors

When you’re fixing syntax errors, clear the console, scroll up to the first error and start from the top. (often one error will cause more to be reported, which is why you want to start there) Get used to spotting the obvious stuff like missing parenthesis, invalid assignments and missing braces.

Line 20, that : shouldn’t be there.

thanks but i can script the one thing i cant do that good is fix errors btw your game looks very fun nice job :3

What? If you can script then you can fix errors, fixing errors is a part of scripting. That’s like saying “I can drive but I can’t steer”.

lol yeah i can script but fixing errors is not my strong suit i was born with dislexia and dislexia makes it hard to learn i havn’t been scripting for a long time maybe like 1 month im not trying to label myself thou and if you or anyone really can help me understand how to fix errors on script i would be very thankfull to you or anyone that helped me and oh yeah im 13yr :3 im trying to get into the game industry :3

You also have semi-colons on lines 19 and 23 that shouldn’t be there, and a colon after jump on line 21 that should be removed as well.

thanks yeah i know theres semi-colons there i didn’t put them there cause i wanted to the debug error told me to -_-

var move : float;
var jumpsound : AudioClip;
private var jump : boolean;
     


function FixedUpdate ()
{

     if(Input.GetKey("d"))  //Let's put spaces between each "if" statement to make the code easier to read!
    {
      rigidbody.AddForce (Vector3.right * -1 * move);
    }

     if(Input.GetKey("a"))
    {
      rigidbody.AddForce (Vector3.right * 1 * move);
    }

     if( (Input.GetKey("space"))  (jump))
    {
      rigidbody.AddForce (Vector3.up * move * 20);
    }

}//<-End of FixedUpdate.

//I put 4 spaces between each function to make the code more readable!


function OnCollisionEnter()
{
     jump = true; //I removed : because that doesn't belong there!
}




function OnCollisionExit() //I removed the ; from the ends of the functions because they don't go there!
{
     jump = false;
}

Note, that anything the character collides with will allow him to jump again, even if he hits his head into the ceiling.

thanks man sorry for late reply i forgot about this thread :3 ill give credit for fixing da script in my game