Can't insert .lua extensions

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?

2 Likes

I don’t think it’s intended behavior to insert non-roblox XML format files. Maybe save your script as a .rbxm file if that’s what your aim is?

You shouldn’t be able to save an lua file, if you can’t insert it.

1 Like

It’s probably more of an exporting feature with no intention to import it again. :stuck_out_tongue:

What use would it be to export an RBX.Lua file if you can’t import it back into ROBLOX.

1 Like

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.

1 Like

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]

I don’t actually have this option?