It only gives the normal sword and if you own a gamepass it doesnt give you the sword
local ServerStorage=game.ServerStorage
local idA=1122
local idB=645646
local idC=615165
local service=game:GetService("MarketplaceService")
for i, plr in pairs(plrs) do
if plr then
character = plr.Character
if character then
character:FindFirstChild("HumanoidRootPart").CFrame = AvailableSpawnPoints[1].CFrame + Vector3.new(0,10,0)
table.remove(AvailableSpawnPoints,1)
local havesword=false
if service:UserOwnsGamePassAsync(plr.UserId, idA) then
--pass stuff
local TrailSword = ServerStorage.TrailSword:Clone()
TrailSword.Parent = plr.Backpack --by puting it in back pack the player will always have it even when the respawn
havesword=true --if sword
end
if service:UserOwnsGamePassAsync(plr.UserId, idB) then
local Boombox = ServerStorage.Boombox:Clone()
Boombox.Parent = plr.Backpack
end
if service:UserOwnsGamePassAsync(plr.UserId, idC) then
local BurningSword = ServerStorage.BurningSword:Clone()
BurningSword.Parent = plr.Backpack
havesword=true --if sword
end
if havesword==false then
local Sword = ServerStorage.Sword:Clone()
Sword.Parent = plr.Backpack
local GameTag = Instance.new("BoolValue")
GameTag.Name = "GameTag"
GameTag.Parent = plr.Character
end
else
if not plr then
table.remove(plrs,i)
end
end
end
end

2 comments
is there any errors?
nope the game works perfectly fine just the gears that you have to buy never show up in your backpack