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

How do I make a script take a model from the library and put in in the workspace?

Asked by 7 years ago

I wanted to know if there is a way that I can make a script take an object from the roblox library or my published models by its ID and export it into the game's workspace.

1 answer

Log in to vote
2
Answered by 7 years ago

You can do this through the Insert Service and LoadAsset

An example would be

local InsertService = game:GetService("InsertService")

local asset = 228040778 --A piece of ROBUX, can be anything in your inventory or you can set it to enable Free Models.

local model = InsertService:LoadAsset(asset)
model.Parent = workspace
Ad

Answer this question