for _,v in pairs(Check) do
local found = false
local BKP = v.Backpack:GetChildren()
for __,x in pairs(BKP) do
if x.Name == "BeginnerSword" then
found = true
v.Character.Torso:Destroy()
end
end
if found == true then
table.insert(Names,v.Name);
H.Text = table.concat(Names,", ") .. " has survived being a pirate!"
wait(5)
H.Text = "Hurray! Thanks for playing, version 1.05~"
wait(3)
Re_Text()
elseif found == false then
H.Text = "No one has survived. Game restarting, version 1.05!"
wait(5)
Re_Text()
end
end
end
It skips the check completely if there is like two players and then says that no one survived when clearly some people did. Why?
