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

How do I give gamepass items to players?

Asked by 8 years ago
Edited 8 years ago

If I wanted to give a different item to players that own a gamepass, would this work?

01local penguinShooter = game.ServerStorage["Penguin Shooter"];
02 
03if game:GetService("MarketplaceService"):PlayerOwnsAsset(plr,751736364) then
04    while true do
05        wait(27)
06        for _,v in next,game.Players:GetPlayers() do
07            if not v.Backpack:FindFirstChild(penguinShooter.Name) then
08                sword:Clone().Parent = v.Backpack;
09            end
10        end
11        wait(58)
12    end
13else
14    print("they don't own the gamepass")
15end

This is probably wrong but I'm still learning..

0
Please expand your question, it isn't clear what you want to do Wiscript 622 — 8y
0
Fixed tabbing. Please do this yourself next time. OldPalHappy 1477 — 8y

Answer this question