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

Hi how do I instance a model?

Asked by
iznr 0
5 years ago

Thanks

I'm not sure how to do

0
Instance.new("Model") greatneil80 2647 — 5y

1 answer

Log in to vote
3
Answered by
Fifkee 2017 Community Moderator Moderation Voter
5 years ago

~~calculate the mass of the sun~~

i mean uh

Instance.new('Model').Parent = workspace don't use the "p" variable in Instance.new('Model', p) because apparently it's quicker if you define the parent after serializing the model

it also allows you to prepare a model/object/part before it is shown to the public

so we can do this:

lua local P = Instnace.new('Part') P.Color = Color3.fromRGB(25,25,25) P.Name = 'Hawfflwwe haus' P.Position = Vector3.new(25, 25, 25) P.Parent = true we set ALL the necessary properties before the parent is even set, so it appears like the part was made just like that

cool, right? yeah, I know it is. :)

0
note: you cannot set a parent to a bool please don't do that it was for the fun Fifkee 2017 — 5y
0
thank you very much iznr 0 — 5y
1
hi hello please press the accept answer button Fifkee 2017 — 5y
0
lmao HomieFirePGN 137 — 5y
View all comments (2 more)
0
lol, gonna upvote that comment TheSkyofIndia 150 — 5y
0
aw yeah this is happenin Fifkee 2017 — 5y
Ad

Answer this question