We use cookies on this site to enhance your user experience

Aug 29 2019, 9:27 AM PST 2 min

Constructors are functions which create an instance of data or a value of a specific type.

While some functions may return a specific data type, for instance, a Datatype/Vector3, they are not considered a Constructor because they needed to call a constructor to make the value.

function a(x, y)
    return, y.y, 0) -- A constructor is called here.

Example, y, z)
CFrame.Angles(a, b, c)

See Also

  • Data Types|Data Types
  • Articles/Object Oriented Programming|Object-Oriented Programming
  • coding
  • concept
  • lua