Roblox UtilitiesDevlHub Roblox Documentation

Class

MatchmakingService

NotCreatableServiceNotReplicated
Inherits
Instance › Object
Memory category
Instances

The service responsible for managing custom matchmaking data.

MatchmakingService is responsible for managing custom matchmaking attributes. Use it to read and write matchmaking data.

Methods 3#

GetServerAttributeRetrieves the value of a specific server attribute.
InitializeServerAttributesForStudioInitiates the server attribute schema and its values to test in Studio.
SetServerAttributeAssigns a value to a specific server attribute.

GetServerAttribute(name: string): Tuple#

Retrieves the value of a specific server attribute.

NameTypeDefaultDescription
namestringThe name of the server attribute. Limited to a maximum of 50 characters.
Returns
  • Tuple — Returns the server attribute value if the attribute is found and if the error is nil. Otherwise, returns nil for the attribute value and an error message.

InitializeServerAttributesForStudio(serverAttributes: Dictionary): Tuple#

Initiates the server attribute schema and its values to test in Studio. This method is optional and has no effect when running outside of Studio.

NameTypeDefaultDescription
serverAttributesDictionaryAn array of attribute name-value pairs.
Returns
  • Tuple — Returns true if the call succeeded. Otherwise, returns false and an error message.

SetServerAttribute(name: string, value: Variant): Tuple#

Assigns a value to a specific server attribute.

NameTypeDefaultDescription
namestringThe name of the server attribute. Limited to a maximum of 50 characters.
valueVariantThe value of the server attribute. Limited to a maximum of 50 characters.
Returns
  • Tuple — Returns true if the call succeeded. Otherwise, returns false and an error message.

Inherited members#

Inherited from Instance 58
Inherited from Object 6
Properties (2)

ClassName, className

Events (1)

Changed