ROBLOX Marketplace Service Error?
I have a script that gives you a tool once you buy a developer product from an NPC through the dialog, it worked last month and now that I made minor edits to it, it doesn't want to work. Not sure what's wrong with it. The developer products are set up and everything, so are the ID's. The game doesn't give me back an error report either, it just says "An error has occurred please try again later". Not sure what to do.
01 | local Service = game:GetService( "MarketplaceService" ); |
04 | [ "TrenchGun" ] = 24271246 ; |
09 | for Name,Item in pairs (SellItems) do |
10 | local Choice = script.Choice 1 :Clone(); |
12 | Choice.UserDialog = Name |
13 | Choice.ResponseDialog = "Don't give away my location!" ; |
14 | Choice.Parent = script.Parent; |
17 | function GetChoice(Name) |
18 | for _,ID in pairs (SellItems) do |
26 | script.Parent.DialogChoiceSelected:connect( function (Player, Choice) |
27 | local s,e = coroutine.resume(coroutine.create( function () |
28 | if SellItems [ Choice.Name ] and Player then |
29 | local Choice,ID = GetChoice(Choice.Name) |
30 | if Player.Character and Choice and ID then |
31 | if not Player.Character:findFirstChild(Choice) then |
32 | if Player:findFirstChild( "Backpack" ) then |
33 | if not Player.Backpack:findFirstChild(Choice) then |
34 | print ( "Does not own" ); |
35 | Service.ProcessReceipt = ( function (receiptInfo) |
36 | local Gun = game.Lighting:WaitForChild(Choice):Clone() |
37 | Gun.Parent = Player.Backpack; |
38 | Service.ProcessReceipt = nil ; |
40 | Service:PromptProductPurchase(Player,ID); |
47 | if not s then Instance.new( "Hint" ,game.Workspace).Text = "Error: " ..e end |