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 7 years ago
Edited 7 years ago

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

local penguinShooter = game.ServerStorage["Penguin Shooter"];

if game:GetService("MarketplaceService"):PlayerOwnsAsset(plr,751736364) then
    while true do 
        wait(27)
        for _,v in next,game.Players:GetPlayers() do
            if not v.Backpack:FindFirstChild(penguinShooter.Name) then
                sword:Clone().Parent = v.Backpack;
            end
        end
        wait(58) 
    end
else
    print("they don't own the gamepass")
end

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 — 7y
0
Fixed tabbing. Please do this yourself next time. OldPalHappy 1477 — 7y

Answer this question