i cant add my scripts

“can’t add behaviour health. the scripts file name does not match the file name of the class defined in the script!”

:frowning: please help… im using .js and c#

this is for educational purpose only

You class name has to be the same as the file name, just like the error message tells you…
(where ignoring abstract classes and interfaces here…)

Example: if you have a TestScript.cs, then the first line after the imports has to be ‘public class Pickup : Monobehaviour {}’

ohhh okay i think i get it :slight_smile: thanks for the help :smiley: