View difference between Paste ID: aisbM08N and R2b2w5D2
SHOW: | | - or go back to the newest paste.
1
local MarketplaceService = game:GetService("MarketplaceService")
2-
local gamePassID = 4661048
2+
local gamePassID = 6495879
3
 
4
function onPlayerAdded(player)
5
	local hasPass = MarketplaceService:UserOwnsGamePassAsync(player.UserId, gamePassID)
6
	if hasPass==true then
7
		print(player.Name .. " owns the game pass with ID " .. gamePassID)
8
		
9
	end
10
end