the following code does not work when i update it with the new gamepasses and doesnt notify the player or give the tools
local vip = 4503749
game.Players.PlayerAdded:connect(function(p) local tag = Instance.new("StringValue", p) tag.Name = "Tag" tag.Value = p.Name
if p.userId == 0 then for i,v in pairs(game.Players:GetChildren()) do if v and v:FindFirstChild("Backpack") ~= nil then local notif = game.ReplicatedStorage.Folder.StoredScripts.Notification:Clone() notif.Title.Value = "Developer Joined!" notif.Sub.Value = "Hi" notif.Parent = v.Backpack end end end
p.CharacterAdded:connect(function(char)
local function AreYouVIP() if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(p.userId, vip) then if p and p:FindFirstChild("Backpack") ~= nil and p.Backpack:FindFirstChild("Screaming") == nil and p.Character:FindFirstChild("Screaming") == nil then local t = game.ReplicatedStorage.Tools.GamepassGear:FindFirstChild("Screaming"):Clone() t.Parent = p.Backpack local t2 = game.ReplicatedStorage.Tools.GamepassGear:FindFirstChild("Screaming"):Clone() t2.Parent = p.StarterGear
local notif = game.ReplicatedStorage.Folder.StoredScripts.Notification:Clone() notif.Title.Value = "Tool Received:" notif.Sub.Value = "Screaming has been added to your inventory!" notif.Parent = p.Backpack end
if p and p:FindFirstChild("Backpack") ~= nil and p.Backpack:FindFirstChild("Key Card") == nil and p.Character:FindFirstChild("Key Card") == nil then local t = game.ReplicatedStorage.Tools.GamepassGear:FindFirstChild("Key Card"):Clone() t.Parent = p.Backpack local t2 = game.ReplicatedStorage.Tools.GamepassGear:FindFirstChild("Key Card"):Clone() t2.Parent = p.StarterGear
local notif = game.ReplicatedStorage.Folder.StoredScripts.Notification:Clone() notif.Title.Value = "Tool Received:" notif.Sub.Value = "Key Card has been added to your inventory!" notif.Parent = p.Backpack end
if p and p:FindFirstChild("Backpack") ~= nil and p.Backpack:FindFirstChild("Fart") == nil and p.Character:FindFirstChild("Fart") == nil then local t = game.ReplicatedStorage.Tools.GamepassGear:FindFirstChild("Fart"):Clone() t.Parent = p.Backpack local t2 = game.ReplicatedStorage.Tools.GamepassGear:FindFirstChild("Fart"):Clone() t2.Parent = p.StarterGear
local notif = game.ReplicatedStorage.Folder.StoredScripts.Notification:Clone() notif.Title.Value = "Tool Received:" notif.Sub.Value = "Farting has been added to your inventory!" notif.Parent = p.Backpack end end end
local function UpdateTag() if p and p.Character and p.Character:FindFirstChild("Head") ~= nil then if p.Character.Head:FindFirstChild("BillboardGui") then p.Character.Head.BillboardGui:Destroy() end
AreYouVIP()

2 comments
Use PlayerOwnsAsset instead
Why? that is deprecated