Triggers when a player’s parent is nil and you try to set their Team property, this error is just wrong and confusing (made debugging a lot more difficult).
The following code can reproduce this (ServerScript):
local AssignedTeam = game.Teams.Assigned
--AssignedTeam.Parent = nil
game.Players.PlayerAdded:connect(function(Player)
-- Optional if AssignedTeam.Parent is nil
-- Both trigger the error
while Player.Parent do
wait()
end
Player.Team = AssignedTeam
end)
Simple repro file if that’s what you need.