No, I understand how to use MarketplaceService and PromptPurchase. My issue is that I am provided a template ID and I want to prompt the purchase with just the texture. The texture Id does not work when trying to prompt it as a purchase because it is just an image.
local id = string.split(tostring(script.Parent.PantsTemplate), "=")
print(tonumber(id[2]))
game.Players.PlayerAdded:Connect(function(plr)
game:GetService("MarketplaceService"):PromptPurchase(plr, tonumber(id[2]))
end)
One problem for me is that it says the product is offsale no matter what, but I think that is a Roblox bug.