Class · inherits Instance
NetworkReplicator
An object which handles the replication of other objects either from the server to the client, or from the client to the server.
About NetworkReplicator
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.
Methods 1
GetPlayer
() → InstanceReturns the player that is connected to the NetworkReplicator.Returns the
Playerassociated with the connection that thisNetworkReplicatorserves. On aServerReplicator, this is the remote client's player; on aClientReplicatorit is the local player. Returnsnilif the replicator has no target player, such as before the connection has been assigned a player or after it has been torn down.
NetworkReplicator also has every member of Instance. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.