How do I track this Error Message

I keep getting the following error message -

“The referenced script on this Behaviour is missing!”

It’s not causing the game to crash but obviously something is wrong somewhere.

How do I figure out what its referring to?

Double-click on the error message, and it highlights the objects with the missing script. Then you can remove the relevant component.