Dev Product for 450 coins not working

Hey, my Dev Product script for 450 coins is not working. I want to see if anyone can fix it.

-- 
local locplayer = game.Players.LocalPlayer
local Players = game:GetService("Players")
local MarketPlaceService = game:GetService("MarketplaceService")
local stats = locplayer:WaitForChild("leaderstats")
local Coins = stats:WaitForChild("Coins")


local productFunctions = {}

productFunctions[1056871936] = function(receipt, player)
	if Coins then
		Coins.Value = Coins.Value + 450
		return true
	end
end




local function processReceipt(receiptInfo)
	local playerr = Players:GetPlayerByUserId(receiptInfo.PlayerId)
	if not playerr then
		return Enum.ProductPurchaseDecision.NotProcessedYet
		
	end
	if playerr then
		return Enum.ProductPurchaseDecision.PurchaseGranted
	end
	
	
end


 

It isn’t working because you are doing this in the client. Do this in the Server!