My Script doesn't have any errors yet it isn't working!! Can someone please help

I am very new to c# and am trying to make a pong-like game and am struggling to get the paddles to move

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

public class PaddleController : MonoBehaviour {

public float speed;

	void FixedUpdate () {
	float v = Input.GetAxisRaw("Vertical");
	GetComponent<Rigidbody2D>().velocity = new Vector2(0, v) * speed;
}

}

i think you forgot to assign speed in the inspector

You can override the local rigidbody by using the new keyword in a local variable for rigidbody within the start function, or have it check for null within that fixed update loop. You can also just call Vector2.up.

You might run into some issues with the paddles jumping around, let us know what it behaves likes, as directly setting the velocity per frame can be testy, especially for what your looking for.

public class PaddleController : MonoBehaviour
{
	public float speed;
	new Rigidbody2D rigidbody;
	void Start()
	{
		rigidbody = GetComponent<Rigidbody2D>();
	}
	void FixedUpdate()
	{
		if(!rigidbody)
			rigidbody = GetComponent<Rigidbody2D>();

		float v = Input.GetAxisRaw("Vertical");

		rigidbody.velocity = Vector2.up * v * speed;
	}
}

Use explicitly:

rigidBody2D.velocity = new Vector2(0, v) * speed;

instead of:

GetComponent<Rigidbody2D>()