When testing a script that is supposed to teleport units maintaining the current formation I ran into issues with it not being reliable even in singleplayer.
What I would expect to happen here is for each iteration of the script to set the units up neatly in a line but what happens is some units get this weird rubberbanding effect and are not teleported to the new position
This isn't a video of the exact repro but it is a similar script that is trying to neatly teleport units
https://streamable.com/ypcae