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

How do I make a part through a script?

Asked by 9 years ago

I know there is a script for it, but I dont know what it is.

2 answers

Log in to vote
3
Answered by
bbissell 346 Moderation Voter
9 years ago

Most objects can be inserted into the game by calling

Instance.new(ObjectName, Parent)

To insert a part, you would use the following:

Instance.new("Part", game.Workspace)

This would insert a Part into Workspace.

0
That was it. Thanks! princess2002me 5 — 9y
0
Correction: Not ANY object, but most. iaz3 190 — 9y
0
Thanks @CrazyKilla15 bbissell 346 — 9y
Ad
Log in to vote
0
Answered by 9 years ago

There is 2 ways:

Instance.new("Part", Workspace )

or

a = Instance.new("Part")
a.Parent = Workspace
a.Name = "ThisIsAPart"

Answer this question