배우기
엔진 클래스
MatchmakingService
만들 수 없음
서비스
복제되지 않음

*이 콘텐츠는 AI(베타)를 사용해 번역되었으며, 오류가 있을 수 있습니다. 이 페이지를 영어로 보려면 여기를 클릭하세요.


요약
상속된 멤버

API 참조
메서드
GetServerAttribute
기능: Basic
MatchmakingService:GetServerAttribute(name:string):Tuple
매개 변수
name:string
반환

InitializeServerAttributesForStudio
기능: Basic
MatchmakingService:InitializeServerAttributesForStudio(serverAttributes:Dictionary):Tuple
매개 변수
serverAttributes:Dictionary
반환

SetServerAttribute
기능: Basic
MatchmakingService:SetServerAttribute(
name:string, value:Variant
매개 변수
name:string
value:Variant
반환
코드 샘플
매치메이킹 서비스 샘플
local MatchmakingService = game:GetService("MatchmakingService")
local RunService = game:GetService("RunService")
if RunService:IsStudio() then
-- 테스트를 위한 초기 속성과 스키마 설정
MatchmakingService:InitializeServerAttributesForStudio({
Level = "Advanced",
Elo = 123.456,
TrainingMode = true
})
end
-- Level 속성 가져오기
local currentLevel, errorMessage = MatchmakingService:GetServerAttribute("Level")
if errorMessage then
warn(errorMessage)
else
print("현재 레벨: " .. currentLevel)
end
-- Level 속성 값을 Advanced로 업데이트
local success, errorMessage = MatchmakingService:SetServerAttribute("Level", "Advanced")
if not success then
warn("서버 속성 [Level]을 [Advanced]로 업데이트하는 데 실패했습니다: " .. errorMessage)
else
print("[Level]을 [Advanced]로 성공적으로 설정했습니다.")
end

©2026 Roblox Corporation. Roblox 및 Roblox 로고, 'Powering Imagination'은 미국 및 기타 국가 내 당사의 등록 및 미등록 상표입니다.