Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local MarketplaceService = game:GetService("MarketplaceService")
- local gamePassID = 4661048
- function onPlayerAdded(player)
- local hasPass = MarketplaceService:UserOwnsGamePassAsync(player.UserId, gamePassID)
- if hasPass==true then
- print(player.Name .. " owns the game pass with ID " .. gamePassID)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement