Creating An Object
✏ Beginners Scripting Guide ✏
In this section, we will be discussing about how to create object. To create object in Roblox, we will have to use the Instance
data type that hold a constructor that allows us to create an object with it class name.
CREATING THE OBJECT
First we will make a variable and call out the new()
constructor from the Instance data type to create an object, and then pass in the object type. Our object is a part so we do this:
CHANGING THE PART PROPERTIES
Now we will change the part properties by index out the property name by using .
and change it by assign it a data.
Last updated