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

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

Asked by 8 years ago

I did exactly what this directory said, and my part isn't showing up in the workspace. https://gyazo.com/d84828d9eefb515da499e7829b891d72

0
Your code is fine, there must be something else going on Perci1 4988 — 8y

2 answers

Log in to vote
0
Answered by 8 years ago

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.

Ad
Log in to vote
0
Answered by 8 years ago

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!

Answer this question