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

How do I make a script insert a model in a game?

Asked by 6 years ago
Edited 6 years ago

I have been trying to make this work for a while and cant seem to get it :( Maybe someone can help.

asset = 1117577896 -- I need this so I can insert my model after I started the game
model = game:GetService("InsertService"):LoadAsset(asset)
model.Parent = game.Workspace
model:MakeJoints()
model.Name = "InsertedModel"..asset

There is my previous code.. I don't know what to do.

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

I don't think inserting a model is possible, and even if it is, it's not a good method. Instead, just put that model you want in the replicatedStorage, and bring it out when you want it out.

If this helped, please accept my answer. Thanks!

0
I am pretty sure there is, if you can insert a mesh from F3X tools, there has to be a way. Just lots dont know ;-; SGYTMinersHaven -16 — 6y
0
Do you own the model? If you don’t and it’s not owned by Roblox, it won’t let you put the model into the game. User#20279 0 — 6y
0
It will I did it earlier this month but the item got removed SGYTMinersHaven -16 — 6y
0
You can use InsertService to insert models, however, you have to own that model you insert and be the owner of the place you put the script it. Lame_Memes 5 — 6y
Ad

Answer this question