PlayerMovementScript - UnexpectedChar: 0xAD

Hello! It’s my first post. I have problem. I wrote PlayerMovementScript, and when i running the game, i’ve error: Unexpected Char: 0xAD (7,41) What i done wrong? Sorry for my English, but i’m from Poland.

PlayerMovementScript:

var cameraObject : GameObject;
var acceleration : float = 10;

function Update(){

transform.rotation = Quaternion.Euler(0, cameraObject.GetComponent(MosueLookScript).currentYRotation, 0);
rigidbody.AddRelativeForce(Input.GetAxis*("Horizontal") * acceleration, 0, Input.GetAxis("Vertical") * acceleration);

}

MouseLookScript:

@HideInInspector
var xRotation : float;
@HideInInspector
var yRotation : float;
var Sensitivity : float = 1;
var Smooth : float = 2;
@HideInInspector
var currentXRotation : float;
@HideInInspector
var currentYRotation : float;
@HideInInspector
var xRotationV : float;
@HideInInspector
var yRotationV : float;

function Update () {

xRotation -= Input.GetAxis("Mouse Y") * Sensitivity;
yRotation += Input.GetAxis("Mouse X") * Sensitivity;

 currentXRotation = Mathf.SmoothDamp( currentXRotation, xRotation, xRotationV, Smooth );
 currentYRotation = Mathf.SmoothDamp( currentYRotation, yRotation, yRotationV, Smooth );
 
 xRotation = Mathf.Clamp( xRotation, -90, 90);

 transform.rotation = Quaternion.Euler( currentXRotation, currentYRotation, 0);
 
}

MouseLookScript working. What i must change in (“Horizontal”)?

“MosueLookScript” is it correct ? it is in first code block 6. line
cameraObject.GetComponent(MosueLookScript).currentYRotation

Oh, i don’t saw that.
But, i repair this, and error still exist.

@Edit

When i change script:

rigidbody.AddRelativeForce(Input.GetAxis*("Horizontal") * acceleration, 0, Input.GetAxis("Vertical") * acceleration);

to:

rigidbody.AddRelativeForce(0, 0, 0);

Error doesn’t exist!

@Down

Yes, same error when i changed to “MouseLookScript”

I guess i found the problem
Input.GetAxis*(“Horizontal”) the star after GetAxis
correct version:

rigidbody.AddRelativeForce(Input.GetAxis("Horizontal") * acceleration, 0, Input.GetAxis("Vertical") * acceleration);

Is it fixed?

Really thanks! How i don’t see that? Can i get like on this forum?