Advertisement
InTesting

Gamepass script Fragment

Dec 25th, 2018
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. local MarketplaceService = game:GetService("MarketplaceService")
  2. local gamePassID = 4661048
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement