Can i access the marketplace service in a local script.
For instance if i want to check if someone has a certain gamepass i could do this?
1 | local player = game.Players.LocalPlayer |
2 | local marketplaceService = game:GetService( 'MarketplaceService' ) |
3 |
4 | if marketplaceService:UserOwnsGamePassAsync(player.UserId, 4712115 ) then |
5 | print ( 'he has it' ) |
6 | end |