How would you use the processreceipt callback in another script?
Asked by
5 years ago Edited 5 years ago
So I got a ProcessReceipt script (server) from the roblox dev page, put it in my game and now I need to know how to use it in another script (local)
here's the code so far:
01 | local player = game.Players.LocalPlayer |
02 | local ms = game:GetService( "MarketplaceService" ) |
03 | local product = 797012396 |
06 | ms:PromptProductPurchase(player, product) |
08 | game.ServerStorage.ESItems [ "AA12" ] :Clone().Parent = player:WaitForChild( "Backpack" ) |
09 | game.ServerStorage.ESItems [ "AA12" ] :Clone().Parent = player:WaitForChild( "StarterGear" ) |
13 | script.Parent.MouseButton 1 Click:Connect(activate) |