How to create a part and customize it | Scripting in Roblox Studio.

Good day, everyone, Vindo is with you. The goal of many people is to create various parts using scripts. In this article I will show you how to do it. Well, it’s time to get started!
Preview
Preview

First, I want to tell you how to create the part itself. It’s pretty straightforward. First write Instance.new (add detail). Then open the brackets, write Part (what will be added) and workspace (where the part will be).

prompt
prompt

Now about the detail settings. To customize a part, the command for creating it must be enclosed in a variable.

That's better
That’s better

To begin with, you can change the position and size using the Position and Size commands. These commands require in parentheses to write the position / size in three coordinates.

How to create a part and customize it |  Scripting in Roblox Studio.

We need to change the color. This can be done using the Brickcolor command. If you want a variety of colors use the Color command.

How to create a part and customize it |  Scripting in Roblox Studio.

Don’t forget to activate Anchor.

To deactivate Anchor, write false instead of true
To deactivate Anchor, write false instead of true