Accessing method for scripts

It’s not working for me
In this code, I am calling a function from another script


And this is function in another script

and this is error i get