Silver_cole

This is by intesting aka SoftUnlockedZero

Aug 23rd, 2019
90
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local MarketplaceService = game:GetService("MarketplaceService")
  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
RAW Paste Data