If you make a script, then click Save to File the file is saved to your PC, this is expected. However, then attempt to reinsert it into your place from the file. (Either using Insert > Model or Right Click > Insert Object from File …) You will see .lua is not an option for you to insert.
Why is it the case that we can save our scripts as .lua, but can’t open them as .lua in-game?
Actually it just exports it as .lua, which to my knowledge is a universal Lua file type.
I don’t know what roblox was thinking when doing this but it might have something to do with that.
I’m able to insert .lua files, but they’ll become a normal script, even if they were a local/module-script before.
(the .lua fie holds just the script, not if it was local or stuff like that)
Make sure you select to import “Scripts” instead of just “Roblox Model Files”:
[quote] I’m able to insert .lua files, but they’ll become a normal script, even if they were a local/module-script before.
(the .lua fie holds just the script, not if it was local or stuff like that)
Make sure you select to import “Scripts” instead of just “Roblox Model Files”: Screenshot by Lightshot [/quote]