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

Getting when a player buys something off MarketpalceService?

Asked by
NotSoNorm 777 Moderation Voter
8 years ago

so pretty much I wan't to prompt the player the Id then I want to check if they own it after the prompt comes down, How would I do this?

local Id = script.Parent.ID.Value 
local player = game.Players.LocalPlayer

function onClick() 
    if script.Parent.Parent.Parent.Overlay.Visible == false or script.Parent.Parent.Name == 'Item1' then
        Game:GetService("MarketplaceService"):PromptPurchase(player, script.Parent.ID.Value, false, 0)
    end 
end

script.Parent.MouseButton1Click:connect(onClick)
0
to check if they have it use PlayerOwnsAsset HungryJaffer 1246 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

receipt received or something? i cannot remember, sorry.

Ad

Answer this question