I can't figure out why this script isn't giving the gear BoardingPass to Players. Yes, I did put BoardingPass into ServerStorage.

local ID = 153919241

local Click = Instance.new("ClickDetector",script.Parent)

Click.MouseClick:connect(function(plr)
if game:GetService("MarketplaceService"):PlayerOwnsAsset(plr, ID) then
game.ServerStorage["BoardingPass"]:clone().Parent = plr.Backpack
print("Player owns asset")
else
game:GetService("MarketplaceService"):PromptPurchase(plr,ID)
print("Player does not own asset")
end
end)

7 comments

0

Try putting the gear in Lighting, then clone it from there. I would also recommend using Developer Products, as they can be purchased more than once.

0

I already tried doing game.Lighting["BoardingPass"] and I want it to be used multiple times, as there may be a chance that everyone dies on a flight.

0

Isn't Clone() capital?

0

Tried :Clone but no diffrence.

0

Output?

0

No output at all.

0

Anyone got a answer?