How to Create a Brick with a Roblox Script Builder

TIME : 2016-01-07
How to Create a Brick with a Roblox Script Builder

In Roblox's Script Builder, a brick is just a Part instance with its properties set. Here's the script:

h = Instance.new("Part")
h.BrickColor = BrickColor.new(42)
h.Anchored = true
h.Locked = true
h.CanCollide = true
h.Transparency = 0
h.Position = Vector3.new(1, 3, 5)
h.Size = Vector3.new(2, 2, 2)
h.Parent = Workspace

The important lines are Anchored, which keeps the brick from falling, and Parent, which is what actually puts it into the world. Change the BrickColor number or the Size and Position vectors to get whatever shape and colour you're after.