Saodo
|
  |
| Joined: 26 Jul 2011 |
| Total Posts: 1206 |
|
|
| 29 Dec 2016 01:26 PM |
How would you change the direction a player is facing in relation to another player or part. i.e. how to make a player face another player or face a part.
Code which works for both would be preferable.
|
|
|
| Report Abuse |
|
|
Saodo
|
  |
| Joined: 26 Jul 2011 |
| Total Posts: 1206 |
|
| |
|
MK_0
|
  |
| Joined: 28 Aug 2010 |
| Total Posts: 1651 |
|
|
| 29 Dec 2016 02:35 PM |
1) When the player faces a part do you want it to be rotated on a axis when it does?
2) When a player faces another player is it the nearest player?, if not then it is the same as facing a regular part.
|
|
|
| Report Abuse |
|
|
|
| 29 Dec 2016 02:37 PM |
bodygyro in humanoidrootpart
bodygyro.CFrame = CFrame.new(humanoidrootpart.Position, parttolookat.Position)
for an anchored part just set the cframe no need for a bodygyro |
|
|
| Report Abuse |
|
|
Saodo
|
  |
| Joined: 26 Jul 2011 |
| Total Posts: 1206 |
|
|
| 29 Dec 2016 02:50 PM |
@mk_0
1) I assumed that was the only way of doing this 2) Id like to specify the player out of an array of players i.e. player[1]
|
|
|
| Report Abuse |
|
|
Saodo
|
  |
| Joined: 26 Jul 2011 |
| Total Posts: 1206 |
|
| |
|
Saodo
|
  |
| Joined: 26 Jul 2011 |
| Total Posts: 1206 |
|
| |
|
Saodo
|
  |
| Joined: 26 Jul 2011 |
| Total Posts: 1206 |
|
| |
|
|
| 29 Dec 2016 07:05 PM |
| Try what @Aggresive has done |
|
|
| Report Abuse |
|
|