Accessing shared script from legacy script

Hi,

I have a function that’s under the global script and I’m trying to call it from the legacy script from a gateway timer script.

Seems like its not possible, its giving me a global name is not defined error.

Thanks,
Ella

try putting

import shared

at the top.

thanks its working