That occurs when the character is loaded before the profile exists, thereforce causing a nil error as the profile doesn’t exist when it tries to access the profile’s data.
The ideal fix would be making the code yield until the profile exists, if the player has left then halt but if the player exists alongside the profile then continue with the process.
i recommend using ProfileStore instead of ProfileService (ProfileStore is a better version of ProfileService by the same creator) as it’s faster and similar.