local mps = game:GetService("MarketplaceService")
local id = 8539828

game.Players.PlayerAdded:Connect(function(plr)
    if mps:UserOwnsGamePassAsync(plr.UserId, id) then
        game.ServerStorage.TrailSword:Clone().Parent = plr:WaitForChild("Backpack")
        game.ServerStorage.TrailSword:Clone().Parent = plr:WaitForChild("StarterGear")
        game.StarterPlayer.ClassicSword:Destroy()
    end
end)

game.ReplicatedStorage.Vippass.OnServerEvent:Connect(function(plr)
    game.ServerStorage.TrailSword:Clone().Parent = plr:WaitForChild("Backpack")
    game.ServerStorage.TrailSword:Clone().Parent = plr:WaitForChild("StarterGear")
end)

2 comments

0

Are you sure you don't have the pass? Worked fine for me.

0

Why are you using an event? You do not need an event.