so basicly i am making a game for my friend and there is a merch shop were you buy merch, i am trying to use ProximityPrompt to buy a shirt here is the script
local button = script.Parent
local cleanSweepId = 5142337374
button.ProximityPrompt.Triggered:Connect(function()
Game:GetService("MarketplaceService"):PromptPurchase(player, cleanSweepId)
end)
if anyone can help please do and it help me out alot, thanks :D

2 comments
2 questions. #1. where did you place this script? #2. Is it a local or serverscript?
#1 workplace.part.script / workplace.part.ProximityPrompt (same part) at the moment #2 normal script