Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What is this error/what does it mean?

Can only register ProcessReceipt callback on server

I am recieving this error as soon as I launch a game in studio, this involves developer products hence 'ProcessReceipt'.

Here's the line:

MarketService.ProcessReceipt = function(receiptInfo)

2 comments

0

LocalScript or Server Script?

0

Local

1 answer

✓ Accepted answer

##Problem

What the error means is you're trying to run the ProcessReceipt callback on the client, and not the server. ProcessReceipt will only work on the server.


##Solution

To fix this, all you have to do is move the code into a server script, and move that server script to ServerScriptService or Workspace.


##Tutorial

I tried making a dumbed down version of the wiki article as a response to a question a few days ago. If you want to check it out, here is the link.

https://scriptinghelpers.org/questions/27112/#30658


######Hopefully this answered your question. If so, do not forget to hit the accept answer button. If you have any questions, feel free to comment below.

1 comment

0

Well, it's in a LocalMain, so I'll just create a RemoteFunction

This discussion is preserved as it was. New answers, comments, and votes are closed.