Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. --Gives the Value
  2. game.Players.Localplayers.leaderstats.Coins.Value = game.Players.Localplayers.extraleaderstats.extaCoins.Value +game.Players.Localplayers.leaderstats.Coins.Value +1
  3.  
  4. -- checks if the player has the pass
  5. local id = 5687692 -- Your Gamepass Id Here
  6. local m = game:GetService('MarketplaceService')
  7.  
  8. game.Players.ChildAdded:Connect(function(player)
  9. player.CharacterAdded:Connect(function(char)
  10. if m:UserOwnsGamePassAsync(player.UserId, id) then
  11. local h = char:WaitForChild('Humanoid')
  12. player.Extraleaderstats.ExtraValue.Value +1 --change extra avlue and extra leaderstats to your chosen name
  13. end
  14. end)
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement