Hi guys! This local script is in a surfacegui on a part that is in the Workspace. Any ideas why this is not prompting purchase? :) Thanks! jj
local buyButton = script.Parent local productId = 25210034 local mps = game:GetService("MarketplaceService") function getPlayerById(id) for i,v in pairs(game.Players:GetPlayers()) do if v.userId == id then return v end end end buyButton.MouseButton1Click:connect(function() mps:PromptProductPurchase(game.Players.LocalPlayer, productId) end) mps.ProcessReceipt = function(info) local plr = getPlayerById(info.PlayerId) if plr and plr:FindFirstChild("leaderstats") and plr.leaderstats:FindFirstChild("Coins") then plr.leaderstats.Coins.Value = plr.leaderstats.Coins.Value + 10000 end end