caca50
|
  |
| Joined: 10 Jul 2011 |
| Total Posts: 1542 |
|
|
| 15 Jul 2017 09:06 PM |
How can I have one object rotate with another object?
Example:
I am trying to make a gear, so I've tried to use a cylinder with parts sticking out of it, and rotating the cylinder via CFrame and attaching the pieces with constraints, but the cylinder rotates while the part stays still
Roblox.Forum.Scripters:1: bad argument #1 to 'intellect' (number expected, got nil) |
|
|
| Report Abuse |
|
|
caca50
|
  |
| Joined: 10 Jul 2011 |
| Total Posts: 1542 |
|
|
| 15 Jul 2017 09:16 PM |
Here's an example of using :SetPrimaryPartCFrame (which doesn't work)
goo.gl/bkpqxG
Roblox.Forum.Scripters:1: bad argument #1 to 'intellect' (number expected, got nil) |
|
|
| Report Abuse |
|
|
Niveum
|
  |
| Joined: 15 Aug 2009 |
| Total Posts: 3228 |
|
|
| 15 Jul 2017 09:16 PM |
use welds.
Unanchor the cylinders on the gear, weld them together, and they should act as 1 part while moving.
~ S P I C Y ~ |
|
|
| Report Abuse |
|
|
caca50
|
  |
| Joined: 10 Jul 2011 |
| Total Posts: 1542 |
|
|
| 15 Jul 2017 09:26 PM |
Using weld:
goo.gl/Wx5EbV
The central part rotates, and that's it.
Note: Central part is anchored
Roblox.Forum.Scripters:1: bad argument #1 to 'intellect' (number expected, got nil) |
|
|
| Report Abuse |
|
|
samy22
|
  |
| Joined: 28 Sep 2008 |
| Total Posts: 2038 |
|
|
| 15 Jul 2017 10:07 PM |
offset = Vector3.new(1,1,1)
Part.CFrame = CentralPart.CFrame*CFrame.new(offset) |
|
|
| Report Abuse |
|
|