Make two players face each other

That’s because just like @MisterGamer_67 said, the health condition in the while loop should have >= instead of <=.

Oh wait, no it’s supposed to be “>” as it has to be false when the player died. My bad.

Yep, that’s right… I was a bit dumb…

No worries, haha! As you can see I made a lot of mistakes;
I fixed the script now, I will test it and see if it works now.
(I put a wait inside the while loop as well)
Edit:

  1. No Errors when testing alone
  2. No Errors in a 2 player local server;
    2.1 It works now!! Note, I suggest ramping the MaxForce up a bit.
    image.
    Note, if plr2 is not moving and plr1 passes plr2 then plr2 won’t rotate for a certain amout of seconds; this could be fixed by changing the Orientation a little bit; but this might mess the smoothness of the BG.
    I suggest spawning in a function before/after the other spawned function; then having a while wait loop and checking if the humRP is still valid/the player isn’t dead (like what you did in the other while loop) but then you put the wait like ever .5 seconds or so?
1 Like