I want to change to update my old gamepasses but due the changes to gamepass the script is broken
this is the script:
id = 4891566
local nome = “VIPbox”
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(character)
if game:GetService(“MarketplaceService”):PlayerOwnsAsset(plr, id) then
print(‘works’)
plr:WaitForChild(‘Backpack’)
game.Lighting[nome]:Clone().Parent = plr.Backpack
end
end)
end)
im really bad doing scripts