--------------------------
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)
Exactly what title says. It gives EVERYONE in the server 'DP' instead of just the purchasing person. Does anyone know a fix to this?

2 comments
Is this GUI? If so use LocalPlayer.
Uhm, it's a SurfaceGUI button. If you read carefully, it's one of those clickable things(SURFACEGUI)