Well I have the prompt purchase to give coins in game it doesnt work and theres no output...

BuyCash.MouseButton1Click:connect(function()
	local ID = 43126171
	local Market = game:GetService("MarketplaceService")
	local Buy = Market:PromptProductPurchase(Player, ID)
	Market.PromptPurchaseFinished:connect(function(Player, ID, Purchased)
		if Purchased then
			Coins.Value = Coins.Value + 700
			Server:FireServer(Coins.Value)
		end
	end)
end)

2 comments

0

Where are you defining the player?

0

Oh at the top i just took the portion out