|
| 13 Oct 2013 03:37 PM |
| Hey guys! I am making a gun, and I'm not sure how to do something. While the mouse button is held down, it is supposed to rapid-fire and rotate is barrel. My problem is that i don't know how to make multiple parts spin around an axis. I can do it to one part, but not seven. If you need to view the gun, visit my "Assault WIP". Help would be appreciated. Thanks! |
|
|
| Report Abuse |
|
|
MHebes
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 2278 |
|
|
| 13 Oct 2013 03:40 PM |
Here's what I would recommend: Weld all the parts to a part in the center (i.e. axis of rotation) - you could just use the front plate type thing. Now, weld that plate to the base (non-moving) part of the gun. When you want to rotate the gun, you could do something along the lines of
while rotating do wait() Weld_Connecting_Plate_and_Base.C0 = Weld_Connecting_Plate_and_Base.C0*CFrame.Angles(0,0,math.pi/100) end |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2013 03:41 PM |
| Weld the several parts to the main one. |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2013 03:44 PM |
Currently all of the parts of the gun are welded to the handle in order to prevent it from literally breaking. Would I reweld like this?
6 barrels > front plate
front plate > non-moving parts
non-moving parts > handle? |
|
|
| Report Abuse |
|
|
| |
|
08C
|
  |
| Joined: 26 Jan 2013 |
| Total Posts: 847 |
|
| |
|
| |
|
|
| 13 Oct 2013 04:02 PM |
^
I've only bumped this thread once. If you are not here to give me advice, please do not post on this thread. |
|
|
| Report Abuse |
|
|
| |
|
MHebes
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 2278 |
|
|
| 13 Oct 2013 05:16 PM |
| To answer your question, yes. |
|
|
| Report Abuse |
|
|