Learn
Engine Class
MatchmakingService
Not Creatable
Service
Not Replicated

Summary
Inherited Members

API Reference
Methods
GetServerAttribute
Capabilities: Basic
MatchmakingService:GetServerAttribute(name:string):Tuple
Parameters
name:string
Returns

InitializeServerAttributesForStudio
Capabilities: Basic
MatchmakingService:InitializeServerAttributesForStudio(serverAttributes:Dictionary):Tuple
Parameters
serverAttributes:Dictionary
Returns

SetServerAttribute
Capabilities: Basic
MatchmakingService:SetServerAttribute(
name:string, value:Variant
Parameters
name:string
value:Variant
Returns
Code Samples
MatchmakingService sample
local MatchmakingService = game:GetService("MatchmakingService")
local RunService = game:GetService("RunService")
if RunService:IsStudio() then
-- Sets up initial attributes and schema for testing
MatchmakingService:InitializeServerAttributesForStudio({
Level = "Advanced",
Elo = 123.456,
TrainingMode = true
})
end
-- Retrieves the Level attribute
local currentLevel, errorMessage = MatchmakingService:GetServerAttribute("Level")
if errorMessage then
warn(errorMessage)
else
print("Current level: " .. currentLevel)
end
-- Updates the Level attribute value to Advanced
local success, errorMessage = MatchmakingService:SetServerAttribute("Level", "Advanced")
if not success then
warn("Failed to update server attribute [Level] to [Advanced] due to error: " .. errorMessage)
else
print("Successfully set [Level] to [Advanced]")
end

©2026 Roblox Corporation. Roblox, the Roblox logo and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.