Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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:

local player = game.Players.LocalPlayer
local ms = game:GetService("MarketplaceService")
local product = 797012396

function activate()
ms:PromptProductPurchase(player, product)

game.ServerStorage.ESItems["AA12"]:Clone().Parent = player:WaitForChild("Backpack")
game.ServerStorage.ESItems["AA12"]:Clone().Parent = player:WaitForChild("StarterGear")

end

script.Parent.MouseButton1Click:Connect(activate)
0
Have a remote event or remote function call the function on the server from the client Godlydeathdragon 227 — 5y
0
ok thank you ill try this and see what happens speedyfox66 237 — 5y

Answer this question