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 11 years ago

If not then what does it do

0
idk Cm300dan 0 — 2y

3 answers

Log in to vote
2
Answered by 11 years ago

Technically, no. There is an error in it.

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

would create a new brick when ran.

Read more about instances here

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

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

You can also assign variables to set properties.

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

You can also do many more.

Log in to vote
-1
Answered by 11 years ago

Short answer: Yes

(the i in Instance needs caps)

Answer this question