Reference API Roblox

Engine API

Website

Related

Reference API Roblox

NetworkServer

This class is not replicated. Its interface does not cross the network boundary.
This class is not creatable. Instances of this class cannot be created with Instance.new.
This class is a service. It is a singleton that may be acquired with GetService.
Tags: [NotCreatable, Service, NotReplicated]

Member index 1

HistoryMember
462EncryptStringForPlayerId(toEncrypt: string, playerId: int64): string
inherited from NetworkPeer
573SetOutgoingKBPSLimit(limit: int): null
inherited from Instance
553Archivable: bool
635Capabilities: SecurityCapabilities
553Name: string
553Parent: Instance
635Sandboxed: bool
616UniqueId: UniqueId
576AddTag(tag: string): null
573ClearAllChildren(): null
462Clone(): Instance
573Destroy(): null
486FindFirstAncestor(name: string): Instance
486FindFirstAncestorOfClass(className: string): Instance
486FindFirstAncestorWhichIsA(className: string): Instance
486FindFirstChild(name: string, recursive: bool = false): Instance
486FindFirstChildOfClass(className: string): Instance
486FindFirstChildWhichIsA(className: string, recursive: bool = false): Instance
486FindFirstDescendant(name: string): Instance
563GetActor(): Actor
486GetAttribute(attribute: string): Variant
462GetAttributeChangedSignal(attribute: string): RBXScriptSignal
631GetAttributes(): Dictionary
648GetChildren(): Instances
462GetDebugId(scopeLength: int = 4): string
486GetDescendants(): Array
486GetFullName(): string
641GetStyled(name: string): Variant
576GetTags(): Array
576HasTag(tag: string): bool
486IsAncestorOf(descendant: Instance): bool
486IsDescendantOf(ancestor: Instance): bool
580IsPropertyModified(name: string): bool
573Remove(): null
576RemoveTag(tag: string): null
580ResetPropertyToDefault(name: string): null
573SetAttribute(attribute: string, value: Variant): null
462WaitForChild(childName: string, timeOut: double): Instance
648children(): Instances
553clone(): Instance
573destroy(): null
553findFirstChild(name: string, recursive: bool = false): Instance
648getChildren(): Instances
553isDescendantOf(ancestor: Instance): bool
573remove(): null
462AncestryChanged(child: Instance, parent: Instance)
462AttributeChanged(attribute: string)
462ChildAdded(child: Instance)
462ChildRemoved(child: Instance)
462DescendantAdded(descendant: Instance)
462DescendantRemoving(descendant: Instance)
500Destroying()
553childAdded(child: Instance)
inherited from Object
647ClassName: string
647className: string
647GetPropertyChangedSignal(property: string): RBXScriptSignal
647IsA(className: string): bool
650isA(className: string): bool
647Changed(property: string)

Removed member index 11

HistoryMember
438Port: int
310ConfigureAsCloudEditServer(): void
310ConfigureAsTeamTestServer(): void
419GetClientCount(): int
139SetGameId(newGameId: string): void
310SetIsPlayerAuthenticationRequired(value: bool): void
311Start(port: int = 0, threadSleepTime: int = 20): void
310Stop(blockDuration: int = 1000): void
310DataBasicFiltered(peer: Instance, result: FilterResult, instance: Instance, member: string)
310DataCustomFiltered(peer: Instance, result: FilterResult, instance: Instance, member: string)
310IncommingConnection(peer: string, replicator: Instance)

Description

The NetworkServer stores all the NetworkReplicator in the game and handles all connections. NetworkPeer:SetOutgoingKBPSLimit() can be used to imitate latency while using Start Server.

History 36

Members 1

EncryptStringForPlayerId

Parameters (2)
toEncryptstring
playerIdint64
Returns (1)
string

History 2

Removed members 11

ConfigureAsCloudEditServer

Parameters (0)
No parameters.
Returns (1)
void

History 4

ConfigureAsTeamTestServer

Parameters (0)
No parameters.
Returns (1)
void

History 2

DataBasicFiltered

Parameters (4)
peerInstance
resultFilterResult
instanceInstance
memberstring

History 5

DataCustomFiltered

Parameters (4)
peerInstance
resultFilterResult
instanceInstance
memberstring

History 5

GetClientCount

Parameters (0)
No parameters.
Returns (1)
int

History 2

IncommingConnection

Parameters (2)
peerstring
replicatorInstance

History 3

Port

TypeDefault
int
This property is not replicated. Its interface does not cross the network boundary.
This property is read-only. Its value can be read, but it cannot be modified.

History 2

Tags: [ReadOnly, NotReplicated]

SetGameId

Parameters (1)
newGameIdstring
Returns (1)
void

History 2

SetIsPlayerAuthenticationRequired

Parameters (1)
valuebool
Returns (1)
void

History 2

Start

Parameters (2)Default
portint0
threadSleepTimeint20
Returns (1)
void

History 4

Stop

Parameters (1)Default
blockDurationint1000
Returns (1)
void

History 2

Settings