Skip to content

Network ​

Inherits Instance.

A service: the global Network is the game's one Network.

Methods ​

  • Connect(address: string, port: number): () Needs the Network permission.
  • IsClient(): boolean
  • IsServer(): boolean
  • StartServer(port: number?): number Needs the Network permission.
  • Stop(): ()

Events ​

  • Connected, whose handlers get ().
  • Disconnected, whose handlers get (string).

Inherited ​

From Instance: AddTag, AncestryChanged, Archivable, AttributeChanged, Changed, ChildAdded, ChildRemoved, ClassName, ClearAllChildren, Clone, DescendantAdded, DescendantRemoving, Destroy, Destroying, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, GetDescendants, GetFullName, GetPropertyChangedSignal, GetTags, HasTag, IsA, IsAncestorOf, IsDescendantOf, IsPropertyModified, Name, Parent, QueryDescendants, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild.

Apache License 2.0