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

Does instance.new("Part", game.Workspace) create a new brick in the game when I run the script?

Asked by 10 years ago

If not then what does it do

0
idk Cm300dan 0 — 1y

3 answers

Log in to vote
2
Answered by 10 years ago

Technically, no. There is an error in it.

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

would create a new brick when ran.

Read more about instances here

Ad
Log in to vote
0
Answered by 10 years ago
Instance.new("Part", game.Workspace)

The above script would Instace(Create) a "new" Part into game.Workspace.

You can also assign variables to set properties.

NewPart = Instance.new("Part")
NewPart.Parent = Workspace
NewPart.Size = Vector3.new(10,10,10)
NewPart.BrickColor = BrickColor.new("BlacK")
NewPart.CFrame = game.Workspace.UsernameHere.Torso.CFrame

You can also do many more.

Log in to vote
-1
Answered by 10 years ago

Short answer: Yes

(the i in Instance needs caps)

Answer this question