You can write your topic however you want, but you need to answer these questions:
- What do you want to achieve? Keep it simple and clear!
I’d like to make a list that shows all of the gamepasses inside of an object, wrapped in a PCall, but I keep on getting this error I know nothing about. (See screenshot)
I have the pcall return errors in warns, if any.
My script
function AddPurchaseValue(instance)
if instance:IsA("IntValue") then
local Clone = script.PurchOptTemplate:Clone()
local g,b = pcall(function()
Clone.ProductValue.Value = instance.Value
local app = Marketplace:GetProductInfo(Clone.ProductValue.Value,Enum.InfoType.Product)
local textcost = 'R$ '..app.PriceInRobux
Clone.Text = textcost
Clone.Parent = script.Parent.Container.Will.DonoBut.Dropdown.Container
Clone.Activated:Connect(function()
script.Parent.Parent.Parent.CurrentProductId.Value=Clone.ProductValue.Value
script.Parent.Parent.Parent.Cost.Text = textcost
end)
end)
if b then warn('ERR: '..b) Clone:Destroy() end
end
end