parsing error CS8025

im trying to make a melee system and i ran across a parsing error i know that it has somthing to do with " } " but i cant find whats wrong (because im just a nooby :p)

You have to make sure all your brackets are enclosed. You just can’t

public class Script : MonoBehaviour {

	Animator anim;
	
	void Start () {
		anim = GetComponent<Animator>();
		
	}

because only the void start has a closing bracket and not the public class. Either you have two many curly brackets, or not enough of them.

i have tried with different locations more and less brackets and i still have the error