??? More info please
You dont just open the lua script, from my understanding you tried to open a lua script, please specify if you did it via dofile() or just file explorer in windows, if you opened it from file explorer in windows, thats not how it works you put it in the tpt data dir and you type dofile("<filename>.lua")