Plugin can't find itself

I tried to press the little ‘file type selection’ list and it only has .lua, so I saved it, then went into the folder, and renamed it to .rbxm, and opened a new studio, and it did absolutely nothing, no empty frame, no printing, no errors, it just totally ignored it.

You must be uploading these as models / folders if you want to reference things. It will only allow you to upload it as an RBXMX if you have instances aside from a lua script in it. Upload the folder / model the script is in and it should automatically upload it as rbxmx.

If you followed my instructions before, you should have already done this when you uploaded the folder / model?

i.e.
image

Something changed… this time, when doing it parented to a model, it worked… not sure what I did different this time. Going to start a new session and try again. (and yes, when parented to a model, it will save as a rbxmx, but that had never made any difference, at least as local saving the plugin’)

A more convenient solution rather than using “Save to File” is to put the main plugin script inside of a Folder, and then save that folder using “Save As Local Plugin”. That will put the target directory on the plugin folder and also make Studio immediately load the plugin as expected.

I believe that is what he’s doing. (now, at least)

Just opened a new studio session, put it in a model, and did the previous 2 lines of code, and it worked. I have no idea how for the past 2 weeks, using all different combinations, it wouldn’t work, then it did. Only thing I can think of , is I attempted to publish the plugin, though it failed on both attempts, maybe that ‘fixed’ something that was wrong in my studio, or on my account, since I had never published a plugin before.

Thanks for all the time and help guys, I appreciate it much.

It was happening because the plugin was being saved as a .lua, meaning it wasn’t an instance, it was just code without a parent or children.

Nope, when it was saved as a model, it was saving in the rbxmx format, but still wouldn’t work, the only thing I did differently today, when it worked, that I had not tried all of the last 2 weeks was I tried to publish.