CS1003 Hey, I'm very new to unity and idk how to make code

I have errors. Can anyone help me?

Assets\scripts\playercntrl.cs(7,28): error CS1002: ; expected

Assets\scripts\playercntrl.cs(7,27): error CS1003: Syntax error, ‘,’ expected

UnityEngine;
public class playercntrl : MonoBehaviour
{
public float speed = 20f;
private Rigidbody2D rb:
void Start()
{
rb = GetComponent ();

}
void Update()
{
float moveX = Input.GetAxis (“Horizontal”);
rb.MovePosition (rb.position + Vector2.right * moveX * speed * Time.deltaTime);

Hard for me to tell if its the only error (it looks like you didn’t paste all of the code, or maybe I’m misreading it) but on

private Rigidbody2D rb:

you have a colon, not a semi colon. that’s what the error is trying to tell you I believe. It says “; expected.”

also please use code tags, they make it easier for other to read your code!

I hope you enjoy unity and coding. have a nice day.