概要
robloxでassistantやってみた。
練習問題、やってみた。
練習問題
PolicyServiceを使え。
サンプルコード
local Players = game:GetService("Players")
local PolicyService = game:GetService("PolicyService")
local Workspace = game:GetService("Workspace")
local player = Players.LocalPlayer
local success, result = pcall(PolicyService.GetPolicyInfoForPlayerAsync, PolicyService, player)
if success and result then
print("ok")
else
print("Failed to get policy for player", player.Name)
end
以上。