Is this a main dependent mod or a standalone mod?

It sounds to me like you haven't imported those scripts.

I'm not entirely sure you can truly replace a shared/main script anyway though in an editor module. I think I tried it once and what ended up happening was I just had two versions of the script with the same name.

And all the characters had the shared one attached still so to change it would require manually opening the side bar of each character and adding the proper one.