This is in a local script inside of a part.
local ID = 1369781260 plr = game.Players.LocalPlayer debounce=false function onTouched(hit) if debounce==true then return end debounce=true game:GetService("MarketplaceService"):PromptPurchase(plr, ID) debounce=false end script.Parent.Touched:connect(onTouched)
--localscript local ID = 1369781260 local plr = game.Players.LocalPlayer local debounce=true function onTouched(hit) if debounce==true then debounce=false game:GetService("MarketplaceService"):PromptPurchase(plr, ID) wait(1) debounce=true elseif debounce=false then return end end script.Parent.Touched:connect(onTouched)