(8,24): error CS1519: Invalid token ';' in class, struct, or interface member declaration

Where is the error can’t find it… thanks.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MoveLeft : MonoBehaviour
{
    public float speed;
    public groundLength;

    BoxCollider2D groundCollider;
    // Start is called before the first frame update
    void Start()
    {
        groundCollider = GetComponent<BoxCollider2D>();
        groundLength = groundCollider.size.x;
    }

    // Update is called once per frame
    void Update()
    {
        transform.position = new Vector2(
            transform.position.x - speed * Time.deltaTime,
            transform.position.y);

        if(transform.position.x <= -groundLength)
        {
            transform.position = new Vector2(
                transform.position.x + 2 * groundLength,
                transform.position.y);
        }
       
    }
}

The error points you to line 8. The problem there is that you’re missing a variable type, probably “float”, on that line.

oh, thanks, such an noob error…