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

is there other way to see of player owns a gamepass or t-shirt?

Asked by
MHaven1 159
8 years ago

is there other way to see of player owns a gamepass or t-shirt other then PlayerOwnsAsset?

1 answer

Log in to vote
2
Answered by 8 years ago
local GamePassId = 1337
repeat wait() until game.Players.LocalPlayer
local player = game.Players.LocalPlayer

GamePassService = game:GetService("GamePassService")
if GamePassService:PlayerHasPass(player, GamePassId) then
    -- in here is where you would code what you would want to happen if they do/don't have it
end

I think this might work

0
will this work for t-shirts?^ MHaven1 159 — 8y
Ad

Answer this question