Importing model from Toolbox with a script

Hello developers,

I have a model that I published, but I want to put it into my game via a script, but how would I do that?

1 Like

Try the InsertService.

This script should work:

game.InsertService:LoadAsset(model id here).Parent = workspace

I tried using :LoadAsset() , but the model isn’t loading. It’s in a script, parented to a GUI for a plugin I am making.

Here is the line:

game.InsertService:LoadAsset(6560310126).Parent = workspace

InsertService:LoadAsset (roblox.com)