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ıç özelliklerini ve şemasını ayarlar
MatchmakingService:InitializeServerAttributesForStudio({
Level = "İleri Düzey",
Elo = 123.456,
TrainingMode = true
})
end
-- Level özelliğini alır
local currentLevel, errorMessage = MatchmakingService:GetServerAttribute("Level")
if errorMessage then
warn(errorMessage)
else
print("Mevcut seviye: " .. currentLevel)
end
-- Level özelliğinin değerini İleri Düzey olarak günceller
local success, setErrorMessage = MatchmakingService:SetServerAttribute("Level", "İleri Düzey")
if not success then
warn("[Level] özelliğini [İleri Düzey] olarak güncellemeyi başaramadı, hata: " .. setErrorMessage)
else
print("[Level] başarıyla [İleri Düzey] olarak 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.