I’m making a flight simulator-ish game where I need the ailerons of the aircraft to rotate when you roll. I have welded a pivot part to the main part so the aileron can rotate with the correct origin.
Now’s the problem: rotating it.
I originally tried to just rotate the object itself which of course didn’t work since it is connected by a Motor6D. So I tried changing the orientation of the Motor6D’s C1 (the aileron) but I don’t know how. I know you can do
TweenService.Create(Motor6D, Info, {C1 = Vector3.new(0, 1, 0)}):Play()
to change the position of the C1, but I don’t know how to change the orientation.
TweenService.Create(Motor6D, Info, {C1.Orientation = Vector3.new(0, 1, 0)}):Play()
does not work and throws an unable to cast to object error.
I tried looking on devforum but nobody had the same problem as me. Any help is appreciated!