Skip to content

NetworkedObject

NetworkedObject is a base class for all object that's synchronized by the network.

Properties

  • Name: string
  • ClassName: string
  • Shared: ScriptSharedTable
  • NetworkedObjectID: string
  • ObjectID: string
  • ExistInNetwork: boolean

Methods

IsA(className: string) → boolean

Returns whether or not the instance is the specified class, this also checks for inheritance.

Clone(parent: NetworkedObject) → NetworkedObject

Clones the instance

Destroy(time: number) → nil

Destroys the instance (same as Delete method)

Delete(time: number) → nil

Deletes the instance (same as Destroy method)

Events

  • PropertyChanged: Fires when a property of this object has changed
  • Renamed: Fires when this object has been renamed
  • TreeEntered: Fires when object enters the tree
  • TreeExited: Fires when object exit the tree (via reparent or delete)