Hey guys, I got this error message:

LoadCharacter can only be called when Player is in the world

Here is where the problem is.

for I, Plr in pairs(game.Players:GetPlayers()) do
	if Player.Parent then
		Plr:LoadCharacter
	end
end

The above script is repeated/used multiple times in my game, however, the error only sometimes shows up. Why am I getting this error message even though I have put in a check to see if the player ~= nil?