CFrame orientation is not setting correctly

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Manually set a cframe orientation via script

  2. What is the issue? the second value of the orientation changes from -90/90 to -116.62/116.62

  3. What solutions have you tried so far? Changed from Angles to fromOrientation, loaded the existing value and set those

both of these do the same thing

local x1, y1 = model.Torso["Left Shoulder"].C1:ToOrientation()
local x2, y2 = model.Torso["Right Shoulder"].C1:ToOrientation()
model.Torso["Left Shoulder"].C1 = CFrame.fromOrientation(x1, y1, (desiredAngle + climbFudge)) + Vector3.new(0.5, 0.5, 0)
model.Torso["Right Shoulder"].C1 = CFrame.fromOrientation(x2, y2, (desiredAngle + climbFudge)) + Vector3.new(-0.5, 0.5, 0)
model.Torso["Left Shoulder"].C1 = CFrame.fromOrientation(0, -90, (desiredAngle + climbFudge)) + Vector3.new(0.5, 0.5, 0)
model.Torso["Right Shoulder"].C1 = CFrame.fromOrientation(0, 90, (desiredAngle + climbFudge)) + Vector3.new(-0.5, 0.5, 0)

Capture82

1 Like

for anyone who has the same issue in the future, use math.rad

1 Like

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