id = script.Parent.Parent.Config.ShirtID.Value
function onClicked(player)
game:GetService("MarketplaceService"):PromptPurchase(player,id,2)
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
I realised the problem was with the variable created in the script as I was meant to put “ShirtPurchaseID” instead of ShirtID (which is for the template of the shirt)