Creating An Object
✏ Beginners Scripting Guide ✏
CREATING THE OBJECT
local myPart = Instance.new('Part')CHANGING THE PART PROPERTIES
local myPart = Instance.new('Part')
myPart.Name = 'MyPart' -- Set name to MyPart.
myPart.BrickColor = BrickColor.Red() -- Set part color to red.
myPart.Anchored = true -- Set the part Anchored to true to make it not fall.
myPart.CanCollide = true -- Set the part CanCollide to true to make it not go through baseplate when it fall for some reason.
myPart.Position = Vector3.new(0, 5, 0) -- Setting the part position.
myPart.Parent = workspace -- Parent the part into the workspace. To make it easier to understand it basically put the part in the workspace.Last updated