How do I give a person a weapon(AK-47) if they buy the gamepass?
1 | game:GetService( "Players" ).PlayerAdded:connect( function (p) |
2 | if game:GetService( "MarketPlaceService" ):PlayerOwnsAsset( 0000000 , p) -- put in product ID |
3 | then |
4 | -- code here |
5 | end |
6 | end ) |