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

Can you create models though scripting?

Asked by 9 years ago

I'm a noob at scripting and I'm just wondering if you could in some way create a model with scripts.

0
Can you accept my answer please? Grenaderade 525 — 9y

2 answers

Log in to vote
4
Answered by 9 years ago
model = Instance.new("Model",Workspace)
part = Instance.new("Part",model)
-- Simple model, no functions needed.

Your welcome!

0
I don't think she was asking for that... EzraNehemiah_TF2 3552 — 9y
Ad
Log in to vote
1
Answered by 9 years ago

To make your own models you need to use the insert service. If you want to spawn your own model. First the owner of the game needs to "buy" the free models so they could use it. Unless ROBLOX owns the models himself. We need to insert objects using the LoadAsset function.

game:GetService("InsertService"):LoadAsset(00000).Parent = workspace
--replace "00000" with the ID of the model.

Using the insert service, load an asset of "00000"(If it exists), then that model's parent becomes workspace or "Visible".


Hope this helps! I know this question's been up for a while...

Please accept if it helps! Upvoting also help!

Answer this question