#Potions Error
45 messages · Page 1 of 1 (latest)
What was it
lol
But I already got the player
But u didnt add marketplaceservice so it couldnt connect to the marketplace
Yes you do
I’ll try ig
So game.Players.MarketPlaceService.ProcessReceipt = function(receiptInfo)
no
local MarketplaceService = game:GetService("MarketplaceService")
Did you add that?
the error tells you your exact issue
Can only register ProcessReceipt call back on server
also you are trying to overwrite the processreceipt function
which is another issue
no
How should I write it
read devfourms
i know how to fix this but you wouldn’t learn if i did it for you
read about marketplace service and connect functions
no it’s not
Alright at first I thought it meant u#I had to publish and actually play the game on the server but I’m finna hop on the forum
@mellow scarab I look up marketplace service on dev forum and all I see is people needing help
Can u just help me with this script like guide me or something pls
try roblox scripting documentation
@mellow scarab would it be better to write it like this ```lua
game.MarketplaceService:PromptProductPurchase(game.Players.LocalPlayer, ID)
instead of writing all of that other stuff
yea
Bruh