An introduction to Scripting

First of all, this is a script on how to add a part using Instance.new

local part = Instance.new("Part", workspace)

This will create a new part in the workspace. Each part has properties, lets change them!

local part = Instance.new("Part", workspace)
part.position = Vector3.new(0, 100, 0)
part.BrickColor = BrickColor.new('New Yeller')
part.Transparency = 0.5
part.Anchored = true
part.Name = 'NewPart'

Now let us have a look through the different types of things we used to modify the part.

Vector3
This makes a bundle of 3 numbers to represent a position in the 3-dimensional space.

BrickColor
This chooses a colour out of all the brick colors, another option is Color3, which uses the numners as an RGB value (the numbers are between 0 and 1)

Number 0.5
This simple represents a number as a property.

Boolean true
This represents if something is true or false.

String "NewPart"
This represents a string of text