"Character is not a valid member of Atmosphere" error

I do not know the circumstances of what causes this error, but in my Error Reports screen on my experience I see the following error:

Character is not a valid member of Atmosphere "Players.<Player>"

And the error points to the following line in my code:

if player.Character then

Any thoughts? I cannot find anything online about this, or maybe I am blind.

How are you getting the player?

1 Like

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(Player)
	load(Player)
end)

and then the error comes out of that load() function.

Did you by chance send your character to space?

1 Like

No, this seems to occur either once the player has joined or once the player has left.

I have a save() and load() function, load() fires when the player joins the game and the save() function fires when the player is leaving.

For load(), it has Player.CharacterAdded:Wait() as the first line, so I don’t know why it doesn’t think the Character exists, if that is the case at all.

1 Like

I want to also mention this has only started happening within the last couple of days. Perhaps since the last ROBLOX update, I am not sure.

1 Like

Are you able to post the full script?

The load function isn’t a built in lua function right? Could you post it?

Could you add the characteradded to the player added then call the function and send the character?