I have an issue. i want the bone to rotate relative to the world and not the parent bone. When i play animation, the bone is rotating relative to its parent bone even when i set its cframe to aim at target and look at the target.
local c0 = script.Parent.RootPart["mixamorig:Hips"]["mixamorig:Spine"].CFrame
wait(3)
while task.wait() do
wait()
--print()
local s = script.Parent.RootPart.CFrame:PointToObjectSpace(workspace.target.Position)
print(math.deg(math.atan2(s.X,-s.Z)))
script.Parent.RootPart["mixamorig:Hips"]["mixamorig:Spine"].CFrame =c0* CFrame.Angles(0,(math.atan2(-s.X,-s.Z)),0)
end
It works except i want the bone to not be affected by the parent bones rotation.