I cant invert root rotation on r6

  1. What do you want to achieve?
    i want to fix r6 rootjoint rotation

  2. What is the issue?
    while on first person mode, r6character look backwards

  3. What solutions have you tried so far?
    i tried to invert rotations, change from lookvector to up right and made it negative, tried to change axys

humrootpart.RootJoint.C0 = CFrame.new(0,0,0) * CFrame.Angles(math.rad(-90),-math.asin((humrootpart.CFrame:ToObjectSpace(workspace.CurrentCamera.CFrame).LookVector / (humrootpart.Size.Y / 2)).X),0) * CFrame.Angles(math.asin((humrootpart.CFrame:ToObjectSpace(workspace.CurrentCamera.CFrame).LookVector / (humrootpart.Size.Y / 2)).Y),0,0)

This might help. (not sure)

i found an solution by adding starter cframe to calculation uhh idk how to explain

humrootpart.RootJoint.C0 = (rootjoints cframe) * CFrame.new(0,neck_yoffset.Y,0) * CFrame.Angles(0,math.asin((humrootpart.CFrame:ToObjectSpace(workspace.CurrentCamera.CFrame).LookVector).X),0) * CFrame.Angles(-math.asin((humrootpart.CFrame:ToObjectSpace(workspace.CurrentCamera.CFrame).LookVector).Y),0,0)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.