You can write your topic however you want, but you need to answer these questions:
- What do you want to achieve? Keep it simple and clear!
I’m attempting to create CFrame animations for npcs however CFrame.Angles despite being converted to Radians makes it messed up.
Even while anchored it doesn’t work properly.
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
I’ve scowered the far ends of youtube and the developer forum looking for answers, including a similar script being the Marine AI developed by Y3llow Mustang to no effect. I’ve attempted to use transform, lerp, C0, C1 and a host of other things to no effect.
Current Script:
local Torso = script.Parent.Torso
function RAD(X,Y,Z)
return math.rad(X),math.rad(Y),math.rad(Z)
end
Torso["Right Shoulder"].C1 = CFrame.new(-0.5,0.5,0) * CFrame.Angles(RAD(-58.633, 56.294, -53.104))
Torso["Right Shoulder"].C0 = CFrame.new(1, 0.5, 0) * CFrame.Angles(RAD(0, 90, 0))
Torso["Left Shoulder"].C1 = CFrame.new(0.534, 0.702, 0.02) * CFrame.Angles(RAD(-39.169, -85.405, 37.748))
Torso["Left Shoulder"].C0 = CFrame.new(1, 0.5, 0) * CFrame.Angles(RAD(0, -90, 0))
I genuinely have been working on this for over a week now and cannot find a single thing as to why its not properly animating. It moves but never to the correct location despite being converted to radians.
The method I used to grab the CFrame was grabbing it directly from moon animator as its being edited in said position. Typing it into the Motor6D manually results in it working perfectly fine.
Place File:
CFrameHelp.rbxl (109.6 KB)
Inside of the ScriptedVariant is also the AnimSave should you desire to look at the animation itself. I’ve attempted to animate it without the tool and it does the same exact thing.