概要
robloxでassistantやってみた。
練習問題、やってみた。
練習問題
AssetServiceを使え。
サンプルコード
local AssetService = game:GetService("AssetService")
local BUNDLE_ID = 14
local success, result = pcall(function()
return AssetService:GetBundleDetailsAsync(BUNDLE_ID)
end)
if success then
print(result)
end
実行結果
10:17:51.328 ▼ {
["BundleType"] = "BodyParts",
["Description"] = "5003年、バトルボット5000は最強のライバルと戦うか、時代に忘れられるかのどちらかだ。 ",
["Id"] = 14,
["Items"] = ▶ {...},
["Name"] = "シニスターボット5001"
} - サーバー - Script:10
10:17:52.513 Hello world! - クライアント
以上。