Inserter Plugin

Inserter

Plugin for inserting assets in to Roblox Studio. This plugin is actually ~4 years old, but I recently rewrote it so I am posting it here.
https://www.roblox.com/library/1646693297/Inserter

Features

It inserts:

  • Free models
  • Free decals
  • Free plugins
  • Available Roblox-made assets
  • Applicable assets you created
  • Bundles
  • Player characters

also:

  • Choose between R15 and R6 bundles (or both)
  • Insert as many ids as you want at the same time
  • Pasting urls or lists (usually) resolves in to a simple list of ids
  • Place at Camera will place whatever you inserted at the position of the camera
  • Parent to Selection will parent whatever you inserted to whatever you currently have selected
  • Unlock Children will unlock all the descendants of whatever you inserted

Images

RobloxStudioBeta_TEc9P7Pqrn

RobloxStudioBeta_tNtR7soGoe

RobloxStudioBeta_FLBSualxPL

3 Likes

It works, but the problem is that, you made SUCH a big plugin with so many modules when you literally have InsertService:LoadAsset(assetId: number). Your code could be something like this

local InsertService = game:GetService("InsertService");

InsertButton.MouseButton1Cilck:Connect(function()
    local suc, result = pcall(function()
        return string.split(InsertBox.Text, ("," or ";")); -- Seperates it by a comma or a semi-colon.
    end);

    if suc then
        for _, v in pairs(result) do -- Result is a table of all the values.
            local suc2, res = pcall(function()
                v = tonumber(v);
            end); -- Kind of necessary so that we can convert it to a number without errors.
            
            if suc2 then
                InsertService:LoadAsset(v);
            else
                warn(res);
            end;
        end;
    else
        warn(result);
    end;
end);

There could be errors in this script, but it’s just a test code to show you what I meant.

How did u make it have studio like ui?

Here

Just make sure to change the style.

Insert service only works for trusted assets. It also doesn’t work for bundles. I would recommend you look at the docs for GetObjects.
https://developer.roblox.com/en-us/api-reference/function/DataModel/GetObjects

Also the way the plugin is structured is totally irrelevant and completely fine, so I don’t see the value in commenting on it at all. I’m not interested in unsolicited code review! It’s not very helpful.

I used sircfenner’s studio components for the majority of the UI.

1 Like

It’s been two years since the last update, but because bundle ids now get high enough to conflict with regular asset ids, the plugin now supports explicitly inserting as a bundle. Also added support for inserting player characters.

Contextual buttons won’t work if you’re inserting multiple ids at once atm, instead, for each id it will attempt to insert as an asset → bundle → player.

RobloxStudioBeta_TEc9P7Pqrn