Hello. I am trying to rotate a player with CFrame without bodymovers. I want to rotate it like orientation
I have tried this, but it sends me to 0,0,0
1 | PLR.HumanoidRootPart.CFrame = CFrame.new(PLR.HumanoidRootPart.Position, 1 , 1 , 1 , 1 , 1 , 1 ) |
I don't see why you wouldn't just use bodygyro, but you can take the HRP's cframe and multiply it by CFrame.Angles, which will successfully rotate it.
1 | --I recommend using math.rad() - will convert it to degrees |
2 |
3 | --So, if you want to rotate it 90 degrees on the y axis: |
4 |
5 | HumanoidRootPart.CFrame = HumanoidRootPart.CFrame * CFrame.Angles( 0 , math.rad( 90 ), 0 ) |
You can simply take the cframe and multiple it into CFrame.Angles
1 | hrp.CFrame = hrp.CFrame * CFrame.Angles(rx,ry,rz) |