Help me i dont know what is wrong

I don’t know what is wrong with my code

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

public class playermovement : MonoBehaviour
    private float horizontal;
    private float speed = 8f;
    private float jumpingpower = 16f;
    private bool isFacingRight = true;

    [SerializeFeld] private Transform groungCheck;
    [SerializeFeld] private LayerMask groundLayer;
    [SerializeFeld] private Rigidbody2D rb;
    // Start is called before the first frame update

    // Update is called once per frame
    void Update()
        horizontal = Input.GetAxisRaw("Horizontal");

 void FixedUpdate()
    rb.velocity = new Vector2(horizontal * speed, rb.velocity.y);
  void Flip()
    if (isFacingRight && horizontal < 0f || !isFacingright && horizontal > 0f);
        isFacingRingt = !isFacingRinght;
        Vector3 localscalec = Transform.localscale;
        localscale.x *= -1f;
        transform.localscale = localscalec;

Can you help me ?

You have provided absolutely no information about what might be wrong. Please provide more context.

Make sure your IDE is configured, and you are aware of the Console window.

1 Like

Use Visual Studio as it will tell where the POSSIBLE problems are

It’s not magic so it reports more things are wrong because misplaced { } make it hard to interpret for syntax error detection system. But the general rule is this that you fix errors starting from the TOP of the page, one by one and see how suggestions change.

Remove the two { } (see arrows in the picture above)