How do I give gamepass items to players?
Asked by
8 years ago Edited 8 years ago
If I wanted to give a different item to players that own a gamepass, would this work?
01 | local penguinShooter = game.ServerStorage [ "Penguin Shooter" ] ; |
03 | if game:GetService( "MarketplaceService" ):PlayerOwnsAsset(plr, 751736364 ) then |
06 | for _,v in next ,game.Players:GetPlayers() do |
07 | if not v.Backpack:FindFirstChild(penguinShooter.Name) then |
08 | sword:Clone().Parent = v.Backpack; |
14 | print ( "they don't own the gamepass" ) |
This is probably wrong but I'm still learning..