[Roblox Studio]ゲームパスの情報をscriptで取得する例

コード

print(game:GetService("MarketplaceService"):GetProductInfo(636113583, Enum.InfoType.GamePass))

出力

{
  ["AssetId"] = 0,
  ["AssetTypeId"] = 0,
  ["Created"] = "2023-10-27T05:09:42.35Z",
  ["Creator"] =  ▶ {...},
  ["Description"] = "You can kill enemies in normal stages.",
  ["IconImageAssetId"] = 15180098132,
  ["IsForSale"] = true,
  ["IsLimited"] = false,
  ["IsLimitedUnique"] = false,
  ["IsNew"] = false,
  ["IsPublicDomain"] = false,
  ["MinimumMembershipLevel"] = 0,
  ["Name"] = "Rocket Launcher",
  ["PriceInRobux"] = 700,
  ["ProductId"] = 1676269448,
  ["ProductType"] = "Game Pass",
  ["Sales"] = 0,
  ["TargetId"] = 636113583,
  ["Updated"] = "2023-10-27T05:09:42.353Z"
}

saleは自分が作成者でなければ0となる

参考

https://devforum.roblox.com/t/getproductinfo-on-game-pass-id/226516