My DevProduct script isn't working anymore?

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

image
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)

image
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 :confused:

for 1
in the first script
local marketplaceService = game.GetService(“MarketplaceService”)
you put a . instead of a : its supposed to be game:GetService

every time you’re getting a service you need to do : not .

its prompt lol, solved. case closed

Also fire a remote event that promts the purchase on the server and with those fixes you should be fine

its game:GetService

prompt not promt