If not,
Answer this how would i make a player keep a item with his game pass if when the code is written like this
01 | local passId = 281488416 -- change this to your game pass ID. |
02 |
03 | function isAuthenticated(player) -- checks to see if the player owns your pass |
04 | return game:GetService( "MarketplaceService" ):PlayerOwnsAsset(player, passId) |
05 | end |
06 |
07 | game.Players.PlayerRespawned:connect( function (plr) |
08 | if isAuthenticated(plr) then |
09 | local dman = game.Lighting.Customs.Dmans [ "Dman's Dank Blue" ] :Clone() |
10 | dman.Parent = plr.Backpack |
11 | end |
12 | end ) |
01 | local passId = 281488416 |
02 |
03 | function isAuthenticaed(plr) |
04 | return game:GetService( "MarketplaceService" ):PlayerOwnsAsset(player, passId) |
05 | end |
06 |
07 | game.Players.PlayerAdded:connect( function (player) |
08 | player.CharacterAdded:connect( function (character) |
09 | if isAuthenticated(player) then |
10 | game.Lighting.Customs.Dmans [ "Dman's Dank Blue" ] :clone().Parent = player.Backpack |
11 | end |
12 | end ) |
13 | end ) |