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

Giver Script doesn't work?

Asked by 10 years ago

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)
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. fahmisack123 385 — 10y
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. User#624 0 — 10y
0
Isn't Clone() capital? Perci1 4988 — 10y
0
Tried :Clone but no diffrence. User#624 0 — 10y
View all comments (3 more)
0
Output? Ekkoh 635 — 10y
0
No output at all. User#624 0 — 10y
0
Anyone got a answer? User#624 0 — 10y

Answer this question