Teleporting a group of players into a map issue

Been creating games for a long time, but one issue I have had repeated over and over again is sometimes player character don’t get teleported into the map without any errors.

I am just using PivotTo and even when the player is just respawned normally and is in the lobby it sometimes doesn’t get teleported.

Player.Character:PivotTo(LocationCFrame)

Love to reward the person that knows this problem and how to fix it.

This could happen if you are attempting to teleport the player too quickly before their character gets the chance to load in. If this is the case, you should do character:WaitForChild(“HumanoidRootPart”) before attempting PivotTo
If you are teleporting multiple players and dont want it to yield the script, use task.spawn()

if you run the :PivotTo() in a script that runs instantly (if that makes sense), then the character will not load fast enough, resulting in your issue

the fix to that is plr.CharacterAdded:Wait() (or connect) and THEN teleport the player

Yea, but the problem is even if you are already spawned in and already in the lobby for like 20 seconds it happens. So it doesn’t matter if your character just got added.

Have you checked if this also happens when you set the CFrame of the PrimaryPart instead of using PivotTo()?

How could this make a difference?

It shouldn’t, but if it still occurs then it removes the possibility of it being an issue with the PivotTo() method itself

I guess I will try it, if you know something else lmk