Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Gives the Value
- game.Players.Localplayers.leaderstats.Coins.Value = game.Players.Localplayers.extraleaderstats.extaCoins.Value +game.Players.Localplayers.leaderstats.Coins.Value +1
- -- checks if the player has the pass
- local id = 5687692 -- Your Gamepass Id Here
- local m = game:GetService('MarketplaceService')
- game.Players.ChildAdded:Connect(function(player)
- player.CharacterAdded:Connect(function(char)
- if m:UserOwnsGamePassAsync(player.UserId, id) then
- local h = char:WaitForChild('Humanoid')
- player.Extraleaderstats.ExtraValue.Value +1 --change extra avlue and extra leaderstats to your chosen name
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement