I have recently made a script for a developer product I have made for my game. but it is not working as intended

when you press this button above it runs the script below.
local marketplaceService = game.GetService("MarketplaceService")
script.Parent.MouseButton1Click:Connect(function()
marketplaceService.PromtProductPurchase(game.Players.LocalPlayer, 1282846308)
end)
![]()
there is also a script inside for sss for handling the developer product function.
this is the script in server script storage…
local marketplaceService = game.GetService("MarketplaceService")
local players = game.GetService("Players")
local productId = 1282846308
marketplaceService.ProcessReceipt = function(receipt)
local player = players:GetPlayerByUserId(receipt.PlayerId)
if not player then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if receipt.ProductId == productId then
print("Thank you for your purchase, " .. player.Name)
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
I can not seem to find anything in output either relating to these scripts, if anyone can find what I did wrong that would be great 