Object

Object is the base class for all engine objects. All classes in the engine inherit from Object.

Properties

ClassName

string Read-only

The name of this object's class

Name

string

The name of this object

Methods

IsA(className: string)

bool

Checks if this object is an instance of the specified class

Parameters:

  • className string

FirePropertyChanged(propertyName: string)

void

Triggers the Changed event for a specific property

Parameters:

  • propertyName string

Events

Changed

Event(propertyName: string)

Fires when a property of this object changes

part.Changed:Connect(function(property)
print("Property changed:", property)
end)