Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make a clothing mannequin what’s wrong with my script?

What’s wrong with the script? ( the purchase thingies)


local CLICK_BLOCK = script.Parent
local ITEM_ID = 0 --ID number of shirt/pants

local Click = Instance.new("ClickDetector",CLICK_BLOCK)

Click.MouseClick:connect(function(p)
game:GetService("MarketplaceService")PromptPurchase(p,ITEM_ID)
end)

1 answer

✓ Accepted answer

For anyone who sees this question in the future, he just forgot a : before "PromptPurchase".

3 comments

0

A shirt or pant would use PromptPurchase, not PromptProductPurchase. You're just missing the ':' before PromptPurchase.

0

Oh I didn't even see that lol.

0

Wait I missed something?

This discussion is preserved as it was. New answers, comments, and votes are closed.