SCRIPT:
Shirt = game.Workspace.Figure.Shirt
Pants = game.Workspace.Figure.Pants
Figure = game.Workspace.Figure
Player= script.Parent.Parent.Parent
ShirtID = 157395423
PantsID = 157396238
function PurchaseShirt(ID)
game:GetService("MarketplaceService"):PromptPurchase(Player,ID)
end
game.Workspace.ShirtBlock.ClickDetector.MouseClick:connect(PurchaseShirt(ShirtID))
game.Workspace.PantsBlock.ClickDetector.MouseClick:connect(PurchasePants(PantsID))
PROBLEM: It A .) Randomly Prompts Purchase on Enter --Sometimes???
B.) Doesn't work on click -- Always
The output says nada. (Pretty sure?)
(I tested in solo and in Play mode) |