Two errors need help

I cannot figure out how to fix these errors

Assets/Scripts/Bounce.cs(16,17): error CS1525: Unexpected symbol `{’

Assets/Scripts/Bounce.cs(23,34): error CS8025: Parsing error

using UnityEngine;
using System.Collections;

public class Bounce : MonoBehaviour {
	
	float lerpTime;
	float currentLerpTime;
	float perc = 1;
	
	Vector3 startPos;
	Vector3 endPos;
	
	void Update () 
	{
		if(Input.GetButtonDown("up") ||(Input.GetButtonDown("down") ||(Input.GetButtonDown("left") || (Input.GetButtonDown("right"))
		                                                               {	
			if(perc == 1)
			{
				lerpTime = 1;
				currentLerpTime = 0;
			}
		}
		startPos = gameObject.transform.position;
		
		if(Input.GetButtonDown("right") && gameObject.transform.position == endPos)
		{
			endPos = new Vector3(transform.position.x + 1, transform.position.y,transform.position.z);
		}
		if(Input.GetButtonDown("left") && gameObject.transform.position == endPos)
		{
			endPos = new Vector3(transform.position.x - 1, transform.position.y,transform.position.z);
		}
		if(Input.GetButtonDown("up") && gameObject.transform.position == endPos)
		{
			endPos = new Vector3(transform.position.x, transform.position.y,transform.position.z = 1);
		}
		if(Input.GetButtonDown("down") && gameObject.transform.position == endPos)
		{
			endPos = new Vector3(transform.position.x, transform.position.y,transform.position.z -1);
		}
		currentLerpTime += Time.deltaTime. * 5.5F;
		perc = currentLerpTime / lerpTime
		gameObject.transform.postion = Vector3.currentLerpTime (startPos,endPos,perc)
		
		}

You only forgot to close the monobehaviour with a “}” this one at the end of your script should not have been removed (add a “}” at line 46)

And put some semicolon at the end of line 42 and 43

You might want to start off by spelling “Input” correctly…

This is what it should look like:

using UnityEngine;
 using System.Collections;
 
 public class Bounce : MonoBehaviour {
     
     float lerpTime;
     float currentLerpTime;
     float perc = 1;
     
     Vector3 startPos;
     Vector3 endPos;
     
     void Update () 
     {
         if(Input.GetButtonDown("up") ||(Input.GetButtonDown("down") ||(Input.GetButtonDown("left") || (Input.GetButtonDown("right"))
         {    
             if(perc == 1)
             {
                 lerpTime = 1;
                 currentLerpTime = 0;
             }
         }
         startPos = gameObject.transform.position;
         
         if(Input.GetButtonDown("right") && gameObject.transform.position == endPos)
         {
             endPos = new Vector3(transform.position.x + 1, transform.position.y,transform.position.z);
         }
         if(Input.GetButtonDown("left") && gameObject.transform.position == endPos)
         {
             endPos = new Vector3(transform.position.x - 1, transform.position.y,transform.position.z);
         }
         if(Input.GetButtonDown("up") && gameObject.transform.position == endPos)
         {
             endPos = new Vector3(transform.position.x, transform.position.y,transform.position.z = 1);
         }
         if(Input.GetButtonDown("down") && gameObject.transform.position == endPos)
         {
             endPos = new Vector3(transform.position.x, transform.position.y,transform.position.z -1);
         }
         currentLerpTime += Time.deltaTime. * 5.5F;
         perc = currentLerpTime / lerpTime;
         gameObject.transform.postion = Vector3.currentLerpTime (startPos,endPos,perc);
         
    }
}

Lines 42,43 you have missed “;”
and you don’t close the class with “}”, add one at the end of file

 using UnityEngine;
 using System.Collections;
 
 public class Bounce : MonoBehaviour {
     
     float lerpTime;
     float currentLerpTime;
     float perc = 1;
     
     Vector3 startPos;
     Vector3 endPos;
     
     void Update () 
     {
         if(Input.GetButtonDown("up") ||(Input.GetButtonDown("down") ||(Input.GetButtonDown("left") || (Input.GetButtonDown("right"))
                                                                        {    
             if(perc == 1)
             {
                 lerpTime = 1;
                 currentLerpTime = 0;
             }
         }
         startPos = gameObject.transform.position;
         
         if(Input.GetButtonDown("right") && gameObject.transform.position == endPos)
         {
             endPos = new Vector3(transform.position.x + 1, transform.position.y,transform.position.z);
         }
         if(Input.GetButtonDown("left") && gameObject.transform.position == endPos)
         {
             endPos = new Vector3(transform.position.x - 1, transform.position.y,transform.position.z);
         }
         if(Input.GetButtonDown("up") && gameObject.transform.position == endPos)
         {
             endPos = new Vector3(transform.position.x, transform.position.y,transform.position.z = 1);
         }
         if(Input.GetButtonDown("down") && gameObject.transform.position == endPos)
         {
             endPos = new Vector3(transform.position.x, transform.position.y,transform.position.z -1);
         }
         currentLerpTime += Time.deltaTime. * 5.5F;
         perc = currentLerpTime / lerpTime;
         gameObject.transform.postion = Vector3.currentLerpTime (startPos,endPos,perc);
         
         }
}

The only thing i see is that you are missing a } at the end, you close the update function, but i don’t see any that would close the entire script off, i hope this helps!