#Dial Rotation

1 messages · Page 1 of 1 (latest)

frosty heart
#

I have a very simple problem that I can't seem to workout on my own, and have looked online for solutions but they seem so complicated for such a simple issue.

I need the long yellow part to rotate with the yellow cylinder. As in, I want them to be connected.

The yellow cylinder rotates with a script according to a global variable, and it rotates fine. The stick will not rotate with it, which is my problem.

I have tried:

  • Unioning them (as shown), but then then they rotate around their joined center rather than the pivot that I have placed at the actual place of rotation.
  • Using CFrame and welding or rigid constraint or weld constraint
  • Using Orientation and welding or rigid constraint or weld constraint
  • Making the stick a child of the cylinder
    In the last three points above, the cylinder ends up just rotating without the stick.

All to no avail. Any help is appreciated.

#

Here is the code in the script for using Orientation instead of CFrame

orchid vessel
#

weld constraint

frosty heart
orchid vessel
#

and change the cframe with

#

:setprimarycframe()

frosty heart
orchid vessel
#

you must use setprimarypartcframe

#

and you click on the model and go to proproties to set the primary part