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

Inserting a model VIA script.

Asked by
JJ_B 250 Moderation Voter
10 years ago

I know you use insertservice, but is there a preferably short script I can use to insert a model?

0
The InsertService way is a short script Azarth 3141 — 10y

3 answers

Log in to vote
3
Answered by
Merely 2122 Moderation Voter Community Moderator
10 years ago
game:GetService("InsertService"):LoadAsset(49393013).Parent = game.Workspace

LoadAsset accepts an assetId as an argument.

0
Thanks a lot Merely, short and simple script. JJ_B 250 — 10y
Ad
Log in to vote
0
Answered by 6 years ago

Insert your model to the ServerStorage then add a script to Workspace

Model = game.ServerStorage.Model

A = Model:Clone()
A.Parent = Workspace
A.Position = (Anything).Position
Log in to vote
-1
Answered by
samfun123 235 Moderation Voter
10 years ago

Assuming that the model is somewhere in your game (Lighting) a simple way to insert it is :

model = game:GetService("Lighting").Model -- Replace this variable with the place of the model
place = workspace -- Replace this variable with the place the model should be placed

model:clone().Parent = place

But if its not in game you have to use InsertService...

Answer this question