Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help with CFrame.Angles and Functions with paramaters?

Asked by
Jo_Bot 67
6 years ago
function M6Drotate(X,Y,Z)
    M6D.Transform = M6D.Transform*CFrame.Angles(math.rad(X),math.rad(Y),math.rad(Z))
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!

0
Dont try and help me, stupid mistake I made... I fixed it :P Jo_Bot 67 — 6y

Answer this question