PLEASE HELP

Im new to this, can anybody tell me what
Assets\Player.cs(26,23): error CS1061: ‘Transform’ does not contain a definition for ‘localState’ and no accessible extension method ‘localState’ accepting a first argument of type ‘Transform’ could be found (are you missing a using directive or an assembly reference?)
heres my code

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

public class Player : MonoBehaviour
{
    private BoxCollider2D boxCollider2D;

     private void Start()
    {
        boxCollider2D = GetComponent<BoxCollider2D>();
    }

    private void FixedUpdate()
    {
        float x = Input.GetAxisRaw("Horizontal");
        float y = Input.GetAxisRaw("Vertical");

        // Reset MoveDelta
        moveDelta = new Vector3(x, y, 0);

        // Swap sprite direction, wether you're going right or left
        if (moveDelta.x > 0)
            transform.localScale = Vector3.one;
        else if (moveDelta.x < 0)
            transform.localState = new Vector3(-1, 0, 0);




    }




}

Probably because you actually want to be using transform.localScale like you do 2 lines earlier in your script.