How to implement ArePaidRandomItemsRestricted API?

I don’t understand how to implement the ArePaidRandomItemsRestricted API in my game. (I don’t understand how to make the script for it)

Here is what I tried to do

wait(1)

local Players = game:GetService("Players")
local localPlayer = Players.LocalPlayer
local policy = GetPolicyInfoForPlayerAsync[localPlayer.UserId]

if policy.ArePaidRandomItemsRestricted == true then
	script.Parent:Destroy()
end

Yes I know this is basic but pls help me

Forget it I found a code sample.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.