How can I add a script that inserts a model?

How can I add a script that inserts a model from the Roblox libary in Roblox Studio? I want to add some model in my game that only appears after 5 mins (I already know how to do that) but I don’t know how to insert a model using a script. YouTube and Discord is really not helping lol, so I decided to ask the DevForum again.

3 Likes

Do you want to:
• Insert it from Roblox Library
or
• It’s already in game and you want to put it in workspace?

You can utilize Instance.new() and insert a model. make sure to parent it.

Insert it from libary charssss

You should use Roblox Inbuilt Insert Service more on docs here:

And use this function:

InsertSevice = game:GetService("InsertService")
local ID = ******* --Model id here
local Model = InsertSevice:LoadAsset(ID)
Model.Parent = workspace
19 Likes

Does it need to be a local script?

3 Likes

Must be server Script,putting it in ServerScriptService is the best but you can also put it in workspace Totally up to you

5 Likes