Syntax error on some lines which I can't seem to figure out

Im getting a syntax error on my code: “(35,45): error CS1002: ; expected” and “(35,45): error CS1513: } expected”

Here is my code:

using UnityEngine;

public class Playercontroller : MonoBehaviour
{
    public float moveSpeed;

    private bool isMoving;

    private Vector2 input;

    private void Update()
    {
        if (!isMoving)
        {
            input.x = Input.GetAxisRaw("Horizontal");
            input.y = Input.GetAxisRaw("Vertical");

            if (input != Vector2.zero)
            {
                var targetPos = transform.position;
                targetPos.x += input.x;
                targetPos.y += input.y;

                StartCoroutine(Move(targetPos));
            }


        }
    }

    IEnumerator Move(Vector3 targetPos)
    {
            while ((targetPos - transform.position).sqrMagnitude > Mathf.Epsilon)
            {
                transform.position = Vector3,MoveTowards(transform.position, targetpos, moveSpeed * Time.deltaTime);
                yield return null;
            }
        transform.postion = targetPos;

        isMoving = false;
    }
}

Anyone got an idea where is the problem?

Look closer at line 35 where the error message is telling you to look at. You’ve made a small typo that should be easy to spot, and your code editor should be pointing it out as well.

Thanks just noticed Also if we are on the topic → “(31,5): error CS0246: The type or namespace name ‘IEnumerator’ could not be found (are you missing a using directive or an assembly reference?)”

Any idea what this is?

There’s a reason why new Unity scripts include using System.Collections; and using System.Collections.Generic; by default. It’s because common types such as IEnumerator and List<T> belong to these namespaces. I would not be removing these unless you know what you’re doing.

You can always see what namespace a type from Microsoft’s libraries belongs to in their own docs: IEnumerator Interface (System.Collections) | Microsoft Learn

To use something from a namespace you need the appropriate using at the top of your script.

This one super weird - sorry for being annoying but can’t get passed this tried looking up threads here couldn’t find an answer:
“40,19): error CS1061: ‘Transform’ does not contain a definition for ‘postion’ and no accessible extension method ‘postion’ accepting a first argument of type ‘Transform’ could be found (are you missing a using directive or an assembly reference?)” any idea?

Check your spelling.

It doesn’t seem like your code editor has been set up properly either.