Skip to content

NetworkReplicator

Supported Class Other NotCreatable NotReplicated

An object which handles the replication of other objects either from the server to the client, or from the client to the server.

Description

Each NetworkReplicator corresponds to a single network connection between two peers and serializes, transmits, receives, and applies the stream of data model changes (new instances, property and attribute changes, event invocations, and instance removals) that keeps those peers in sync. It is the base class for the two concrete replicators: a ServerReplicator runs on the server and replicates between the server and the connected client, while a ClientReplicator runs on a client and replicates between that client and the server. A NetworkReplicator is created and managed by the engine automatically as clients connect and disconnect, and is not instantiated or manipulated by creator scripts.

Inheritance

Object → Instance → NetworkReplicator

Nova inheritance: Instance → NetworkReplicator

Known subclasses: ClientReplicator, ServerReplicator

Properties

MachineAddress Supported Property
MachineAddress: string

No description available.

Security: RobloxSecurity

Roblox documentation

Port Supported Property
Port: int

No description available.

Security: LocalUserSecurity

Roblox documentation

Methods

CloseConnection Supported Function
NetworkReplicator:CloseConnection()

No description available.

Security: LocalUserSecurity

Roblox documentation

DisableProcessPackets Supported Function
NetworkReplicator:DisableProcessPackets()

No description available.

Security: LocalUserSecurity

Roblox documentation

EnableProcessPackets Supported Function
NetworkReplicator:EnableProcessPackets()

No description available.

Security: LocalUserSecurity

Roblox documentation

GetPlayer Supported Function Returns the player that is connected to the NetworkReplicator.
NetworkReplicator:GetPlayer(): Instance

Returns the player that is connected to the NetworkReplicator.

Returns the Player associated with the connection that this NetworkReplicator serves. On a ServerReplicator, this is the remote client's player; on a ClientReplicator it is the local player. Returns nil if the replicator has no target player, such as before the connection has been assigned a player or after it has been torn down.

Roblox documentation

GetRakStatsString Supported Function
NetworkReplicator:GetRakStatsString(int verbosityLevel = 0): string

No description available.

Security: PluginSecurity

Roblox documentation

RequestCharacter Supported Function
NetworkReplicator:RequestCharacter()

No description available.

Security: LocalUserSecurity

Roblox documentation

SendMarker Supported Function
NetworkReplicator:SendMarker(): Instance

No description available.

Security: LocalUserSecurity

Roblox documentation

SetPropSyncExpiration Supported Function
NetworkReplicator:SetPropSyncExpiration(double seconds)

No description available.

Security: LocalUserSecurity

Roblox documentation

Events

Disconnection Supported Event
Disconnection(string peer, bool lostConnection)

No description available.

Security: LocalUserSecurity

Roblox documentation

Inherited members

Inherited from Instance: 8 properties, 36 methods, 7 events. They are documented on the base class page.

Roblox reference: NetworkReplicator

Generated from Nova's API dump and Roblox creator-docs. Nova-only members come from the engine's reflection metadata.