of     1   

IDKBlox
#228418089Monday, December 04, 2017 5:31 AM GMT

Alright lol, let me explain. I want to make a 'Fly tool' And I wanna know the best way to rotate the body of the player in the direction the player is facing? if that makes any sense
nofascistsaloudxD
#228418124Monday, December 04, 2017 5:33 AM GMT

Use a BodyGyro on the player's character's torso. Make the body Gyro's CFrame be either the player's mouse's position or the direction the player's camera is facing...
Soybeen
#228418178Monday, December 04, 2017 5:36 AM GMT

If the camera is locked to the torso, then you'll have to move the torso using the mouse delta, either by :SetPrimaryPartCFrame() or BodyGyro
guagiguagua
#228418349Monday, December 04, 2017 5:45 AM GMT

hmmmm... well you obviously use cframe either use a look vector at mouse.hit.p or you can use cframe.angles
nofascistsaloudxD
#228418372Monday, December 04, 2017 5:46 AM GMT

@Soybeen I don't like using :SetPrimaryPartCFrame() because I feel that, without tweenservice, setting a part or model's CFrame isn't as smooth as BodyGyro. One can also easily edit the values in a body gyro to determine how the player's motion behaves. Ex: BodyGyro.p -- How aggressively the body gyro rotates to the goal How would you edit ^^ while using :SetPrimaryPartCFrame()?
Soybeen
#228418439Monday, December 04, 2017 5:50 AM GMT

If you :SetPrimaryPartCFrame() on RenderStepped it's perfectly synced to their framerate, so it shouldn't be less smooth than a bodymover
IDKBlox
#228418502Monday, December 04, 2017 5:54 AM GMT

Well, I want it to be able to be used on mobile aswell, So I'd set the bodyGyro to the characters Root part cframe? + some numbers?
Soybeen
#228418583Monday, December 04, 2017 5:58 AM GMT

I see what you're going for now. Yes you would prefer BodyGyro for this case. Setting the BodyGyro directly to the mouse.Hit will suffice, but you should omit the Y component. You only want your bodyGyro to rotate you on X and Z.
IDKBlox
#228418908Monday, December 04, 2017 6:16 AM GMT

What exactly do you mean? Like Gyro.CFrame = CFrame.new(cam.X,0,cam.Z) or something like that?
Soybeen
#228419164Monday, December 04, 2017 6:28 AM GMT

BodyGyros ignore the first 3 positional components of a CFrame
LimitedLogic
#228419988Monday, December 04, 2017 7:17 AM GMT

c frame L0cal Play3r

    of     1