Darknoob2002

ROBLOX Gamepass that gives points

Nov 2nd, 2015
503
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. local GamePassService = Game:GetService('GamePassService')
  2. local GamePassId = --INSERT GAMEPASS ID HERE--
  3.  
  4.  
  5. game.Players.PlayerAdded:connect(function(player)
  6. stats = Instance.new(''IntValue'', player)
  7. stats.Name = ''leaderstats''
  8.  
  9. points = Instance.new(''IntValue'', stats)
  10. points.Name = ''Points''
  11.  
  12. if GamePassService:PlayerHasPass(player, GamePassIdObject.Value) then
  13. points.Value = 50
  14. end
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment