One part will print the other won't
local Payers = game:GetService("Players")
Ingame = {}
Outgame = {}
game.Players.PlayerAdded:connect(function(plr)
local name = plr.Name
repeat wait() until plr.Character
local char = plr.Character
table.insert(Outgame,plr.Name)
print(unpack(Outgame)); -- It will print this
end)
ValueToRemove = (unpack(Outgame));
for i = 1, #Outgame do -- Iterates through the table
if Outgame[i] == ValueToRemove then -- If the value it's currently on is the same as the value you are attempting to remove then...
table.remove(Outgame[i]) -- The value gets removed
wait(1)
print(unpack(Outgame)); -- It will not print this
end
end
