Answers for "how do you check if a player has a gamepass in roblox"

Lua
11

roblox check if player has gamepass

local id = --gamepass id here

game.Players.PlayerAdded:Connect(function(player)
	if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,id) then
    	--do what you want to do in here
    end
end)
Posted by: Guest on July-29-2020

Code answers related to "how do you check if a player has a gamepass in roblox"

Browse Popular Code Answers by Language