local H,W=pcall(PolicyService.GetPolicyInfoForPlayerAsync,PolicyService,player)if H and W then if not W.AreAdsAllowed then mainPortal:Destroy()end else print("\070\097\105\108\101\100 \116\111 \103\101\116 \112\111\108\105\099\121 \102\111\114 \112\108\097\121\101\114",player.Name,"\069\120\099\101\112\116\105\111\110\058",W)end
-- Get the policy info for the user
local success, result = pcall(PolicyService.GetPolicyInfoForPlayerAsync, PolicyService, player)
if success and result then
	if not result.AreAdsAllowed then
		-- Destroy all Main Portal Template instances on the user's client if ads are not allowed
		mainPortal:Destroy()
	end
else
	print("Failed to get policy for player", player.Name, "Exception:", result)
end
