I created a mannequin that should take the pants and shirt id from the dummy, and prompt purchase when clicking on the correct button. It seems to work, but however would put “Not For Sale” despite being on sale. What might be wrong?
local CLICK_BLOCK = script.Parent
local PantsString = script.Parent.Parent.Dummy.Shirt.ShirtTemplate
local SplitMessage = string.split(PantsString, "=")
local ITEM_ID = SplitMessage[2]
local Click = Instance.new("ClickDetector",CLICK_BLOCK)
Click.MouseClick:connect(function(p)
game:GetService("MarketplaceService"):PromptPurchase(p,ITEM_ID)
end)
Shirt Script:
local CLICK_BLOCK = script.Parent
local PantsString = script.Parent.Parent.Dummy.Shirt.ShirtTemplate
local SplitMessage = string.split(PantsString, "=")
local ITEM_ID = SplitMessage[2]
local Click = Instance.new("ClickDetector",CLICK_BLOCK)
Click.MouseClick:connect(function(p)
game:GetService("MarketplaceService"):PromptPurchase(p,ITEM_ID)
end)
Picture of the model:
Game permissions:

