"The target user must be connected to the current server" error when attempting to Filter Text on-joined

Hey, I am currently trying to send the client a list of quotes that are filtered based on their UserId with TextService. However, sometimes when a player isn’t fully connected (which it appears they have to be in order to filter), I get this error. Currently, I am just connecting the PlayerAdded event with a wait(2) to give them some time to fully load in. This, however, is inaccurate as all players load in with different times. What can I wait for or check to ensure the player is fully loaded in to avoid any collisions with this error? :

Error:

What I’m currently doing:

game.Players.PlayerAdded:Connect(function(plr)
     wait(2)
     bloxtonInterfaceRemotes.GiveSchedule:FireClient(plr,filterScheduleForUser(plr))
end)
1 Like

You might see this error because of the wait you added, they can leave again before you fire the event.

3 Likes

Ouch, talk about anti productive. Thanks.

1 Like

This seems like something you should be doing with a RemoteFunction on the client when they load in

1 Like

probably a good idea

1 Like