Answers for "check if player owns gamepass"

Lua
1

check if player owns gamepass

local id = 15359561 -- Your Gamepass ID Here

game.Players.PlayerAdded:connect(function(player)
	if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, id) then
		print("User Owns Gamepass")
	else
		print("Player Does Not Own Gamepass")
	end	
end)
Posted by: Guest on March-04-2021

Code answers related to "check if player owns gamepass"

Browse Popular Code Answers by Language