Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

InsertService and Plugins

Asked by 10 years ago

Is there a way to use the InsertService with plugins to insert models by using Plugins?

1 answer

Log in to vote
0
Answered by 10 years ago
btn.Click:connect(function(Clicked)
    id = # - Replace Number with a model number.
    local model = game:GetService("InsertService"):LoadAsset(assetId)
    if model:IsA("Model") then
      local tab = game:GetService("InsertService"):Insert(model) 
    end
end)

Find more Here

0
:LoadAsset() does not work in offline mode (studio). I want it to work with plugins to protect a model between me and my friend. FromLegoUniverse 264 — 10y
0
i see then if you want to do that then instead of a plugin just send it through email just do this Right click Model -> Save As RBXM -> Send to friends email or through skype DragonSkyye 517 — 10y
0
-_- Guess I am not making the plugin :P FromLegoUniverse 264 — 10y
Ad

Answer this question