No errors, but the script will only remove/search for the 'Sword' from on players backpack rather than the whole servers not sure why.
for i, v in pairs(game.Players:GetPlayers()) do
if not v.Backpack:FindFirstChild("Sword") then
else
v.Backpack:FindFirstChild("Sword"):Destroy()
wPlayer = game.Workspace:FindFirstChild(v.Name)
if not wPlayer:FindFirstChild("Sword") then
else
wPlayer:FindFirstChild("Sword"):Destroy()
end
end
end
EDIT: The part where it searches in the player in workspace doesn't work.
wPlayer = game.Workspace:FindFirstChild(v.Name)
if not wPlayer:FindFirstChild("Sword") then
else
wPlayer:FindFirstChild("Sword"):Destroy()
