Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

If not then what does it do

1 comment

0

idk

3 answers

✓ Accepted answer

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

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.