学ぶ
エンジンクラス
UserService
作成できません
サービス

*このコンテンツは、ベータ版のAI(人工知能)を使用して翻訳されており、エラーが含まれている可能性があります。このページを英語で表示するには、 こちら をクリックしてください。


概要
継承されたメンバー

APIリファレンス
方法
GetUserInfosByUserIdsAsync
イールド
機能: Basic
UserService:GetUserInfosByUserIdsAsync(userIds:{any}):{any}
パラメータ
userIds:{any}
戻り値
コードサンプル
UserService:GetUserInfosByUserIdsAsync の例
local UserService = game:GetService("UserService")
local success, result = pcall(function()
return UserService:GetUserInfosByUserIdsAsync({ 156, 1, 735878936 })
end)
if success then
for _, userInfo in ipairs(result) do
print("ID:", userInfo.Id)
print("ユーザー名:", userInfo.Username)
print("表示名:", userInfo.DisplayName)
end
else
-- エラーが発生しました
end

GetUserFromGlobalUserIdAsync
イールド
機能: Basic
UserService:GetUserFromGlobalUserIdAsync(userId:number):User
パラメータ
userId:number
戻り値

©2026 Roblox Corporation。Roblox(ロブロックス)、RobloxロゴおよびPowering Imaginationは、米国並びにその他の国における登録商標および非登録商標です。