Learn
Motor Sınıfı
MatchmakingService
Oluşturulamaz
Hizmet
Çoğaltılmamış

*Bu içerik, yapay zekâ (beta) kullanılarak çevrildi ve hatalar içerebilir. Sayfayı İngilizce görüntülemek için buraya tıkla.


Özet
Devralınan Üyeler

API Referansı
Yöntemler
GetServerAttribute
Capabilities: Basic
MatchmakingService:GetServerAttribute(name:string):Tuple
Parametreler
name:string
Dönüşler

InitializeServerAttributesForStudio
Capabilities: Basic
MatchmakingService:InitializeServerAttributesForStudio(serverAttributes:Dictionary):Tuple
Parametreler
serverAttributes:Dictionary
Dönüşler

SetServerAttribute
Capabilities: Basic
MatchmakingService:SetServerAttribute(
name:string, value:Variant
Parametreler
name:string
value:Variant
Dönüşler
Kod Örnekleri
Eşleştirme Servisi örneği
local MatchmakingService = game:GetService("MatchmakingService")
local RunService = game:GetService("RunService")
if RunService:IsStudio() then
-- Test için başlangıç niteliklerini ve şemasını ayarlayın
MatchmakingService:InitializeServerAttributesForStudio({
Level = "İleri Düzey",
Elo = 123.456,
TrainingMode = true
})
end
-- Level niteliğini alır
local currentLevel, errorMessage = MatchmakingService:GetServerAttribute("Level")
if errorMessage then
warn(errorMessage)
else
print("Mevcut seviye: " .. currentLevel)
end
-- Level niteliğinin değerini İleri Düzey olarak günceller
local success, errorMessage = MatchmakingService:SetServerAttribute("Level", "İleri Düzey")
if not success then
warn("[İleri Düzey] değerini [Level] sunucu niteliğine güncelleyemedik, hata: " .. errorMessage)
else
print("[Level] değerini [İleri Düzey] olarak başarıyla ayarlandı")
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.