Two issues with code and saving script

Hi Guys !
I do everythink 1:1, but i get this issue how i can fix this ?

The error says your CombatTarget does not derive from MonoBehaviour. can you share your CombatTarget script?