restart only one script

hello.

my player has 100 health. when it has collides with an enemy i need that there is goeing - 25 of his healh i can fix that myself. but the wavesapwner script needs to restart. but how do i do that?

You need to post the scripts you have right now for anyone to be able to give you some pointers on that.

If it’s a simple health script, I suggest making a function that resets all the values / variables back to their default state.

Ex:

void Reset()
{
Health = 100;
IsDead = false;
BlahBlah = LaDeDa;
}

Call the Reset() whenever you need.