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

Getting when a player buys something off MarketpalceService?

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)

1 comment

0

to check if they have it use PlayerOwnsAsset

1 answer

receipt received or something? i cannot remember, sorry.

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