So, I made this script and its giving me the error "Argument 2 is missing or nil"
Heres my script:
local promptService = game:GetService("MarketplaceService")
local productID = script.Parent.Parent:FindFirstChild("shirtID.Value")
script.Parent.Parent.ClickDetector.MouseClick:connect(function(playerWhoClicked)
Game:GetService("MarketplaceService"):PromptProductPurchase(playerWhoClicked.Name, productID)
end)
| aviator of the forums | aerogod, hourtan | "hell is paved with good intentions" | greatness of gd | |