-------------------------- local MarketplaceService = Game:GetService("MarketplaceService") local buyButton = game.Workspace.TheLobby.Shop.DPVEND.BuyButton.SurfaceGui.TextButton local productId = 19661235 local player = script.Parent.Parent buyButton.MouseButton1Click:connect(function() MarketplaceService:PromptProductPurchase(player, productId) end) MarketplaceService.PromptProductPurchaseFinished:connect(function(userId, productId, isPurchased) if isPurchased then -- user purchased product, show confirmation box wait(0.1) player.Status2.DP.Value = player.Status2.DP.Value + 125 else -- user didn't purchase product, do other stuff end end)
I don't know what's wrong. Does anyone know how to fix this? It's giving everyone 'DP'.