|
| 01 Mar 2014 08:45 AM |
Okay I see people asking "How to move a model as a whole" and "How do you resize a model" but something I need, and I am not quite sure how, is that I need to rotate a whole model, so that when a main part in it moves, what is also in the model moves with it, I had the idea of putting the parts in a part instead of model, and rotate that, but would that work?
Thanks in advance! |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2014 09:09 AM |
| You could try and look at CmdAlt's model rotation? I would post it here, but it's exetremly long. Just try it out yourself possibly? |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2014 09:40 AM |
| I don't want a great big long script, I want something short, sweet, and simple. Any ideas? Maybe using Joints so when I move the main part others move with it? |
|
|
| Report Abuse |
|
|
Voidition
|
  |
| Joined: 14 Jul 2012 |
| Total Posts: 1849 |
|
| |
|
|
| 01 Mar 2014 04:31 PM |
| I need to rotate it within a script -_- |
|
|
| Report Abuse |
|
|
trogyssy
|
  |
| Joined: 29 Oct 2010 |
| Total Posts: 2322 |
|
|
| 01 Mar 2014 04:42 PM |
| try welding everything to a part in the middle, then rotate that part with the script. The weld maintains the parts position relative to the part it's welded to, so this should work. |
|
|
| Report Abuse |
|
|
Dralian
|
  |
| Joined: 21 Mar 2013 |
| Total Posts: 7624 |
|
|
| 01 Mar 2014 04:53 PM |
| Model it and Vector3 + loop. |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2014 05:25 PM |
| I will sound completely noobish, but I have never used wields, could you explain how I would do this? |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2014 05:33 PM |
you can rotate a part by multiplying its cframe by another cframe
part.CFrame = part.CFrame * CFrame.new(0, math.pi / 2)
that would rotate a part by 90 degrees
you can put this in a recursive function that rotates all parts in a model |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2014 05:34 PM |
| sorry should be 0, math.pi / 2, 0 lol |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2014 05:38 PM |
| Dragon I am going to be using the rotation property, I just have to rotate a whole model, not just a part. |
|
|
| Report Abuse |
|
|