1 | function M 6 Drotate(X,Y,Z) |
2 | M 6 D.Transform = M 6 D.Transform*CFrame.Angles(math.rad(X),math.rad(Y),math.rad(Z)) |
3 | end |
Error: Workspace.Test.Script:27: bad argument #3 to 'Angles' (number expected, got nil)
(lines would be 27-29 in my script) (M6D is a Motor6D(a character joint)) I do not know why this error is occuring.
Any help will be greatly apprectiated!