generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Change direction Player is facing

Previous Thread :: Next Thread 
Saodo is not online. 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 is not online. Saodo
Joined: 26 Jul 2011
Total Posts: 1206
29 Dec 2016 02:26 PM
b


Report Abuse
MK_0 is online. 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
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
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 is not online. 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 is not online. Saodo
Joined: 26 Jul 2011
Total Posts: 1206
29 Dec 2016 04:28 PM
b


Report Abuse
Saodo is not online. Saodo
Joined: 26 Jul 2011
Total Posts: 1206
29 Dec 2016 05:16 PM
b1


Report Abuse
Saodo is not online. Saodo
Joined: 26 Jul 2011
Total Posts: 1206
29 Dec 2016 07:02 PM
b2


Report Abuse
KritikalGunzz is not online. KritikalGunzz
Joined: 10 Nov 2013
Total Posts: 1633
29 Dec 2016 07:05 PM
Try what @Aggresive has done
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image