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)
COMMUNITY QUESTION
Why does it destroy the classic sword even though the person doesnt own the gamepass? HELP!
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Are you sure you don't have the pass? Worked fine for me.
Why are you using an event? You do not need an event.