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

How do I add a part into my work space by putting it in by script!?

2 answers

To put a part into workspace just do

local part = Instance.new("Part")
part.Parent = game.Workspace

Make sure that is in a server script though. You could get more complicated than that if you wanted to make the position of it appear somewhere.

Just do

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

some people do part.Parent = game.Workspace but my way is easier from my point of view and also if you wanna change the properties just do

part.BrickColor = BrickColor.Red()

the color can be anything or totally random theres also other ways to change the color but that was just a small example!

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