Have you added the file to the resources.
One of the new things with the next release is when saving a new lua file from the script editor, it will automatically be added to the resources.
For now:
> open the asset manager
> direct & click on the folder with the lua script.
> A window should appear offering to add new resources.
> If not, then in the explorer, right click on the folde > Resource management > Add folder to resources
Hope this helps