|
| 23 Jun 2013 12:14 PM |
| How do you rotate a part in a script to your choice? Anyone know, please tell! |
|
|
| Report Abuse |
|
|
tigerr666
|
  |
| Joined: 13 Aug 2009 |
| Total Posts: 1665 |
|
| |
|
|
| 23 Jun 2013 12:15 PM |
| So how is it told in script form? |
|
|
| Report Abuse |
|
|
Ekkoh
|
  |
| Joined: 22 Oct 2012 |
| Total Posts: 524 |
|
|
| 23 Jun 2013 12:15 PM |
No... not with velocity... it's called CFrame. Try this code out and play with it a little.
Part.CFrame = Part.CFrame * CFrame.new(0, .5, 0) |
|
|
| Report Abuse |
|
|
|
| 23 Jun 2013 12:18 PM |
| Okay so your script obviously moves the part with CFrame so I need to find out how to rotate it? |
|
|
| Report Abuse |
|
|
|
| 23 Jun 2013 12:25 PM |
function Rotate(p,x,y,z) p.CFrame = p.CFrame * CFrame.Angles(math.rad(x),math.rad(y),math.rad(z)) end
Rotate(Workspace.Part,0,180,0)
this would put the part upside down. |
|
|
| Report Abuse |
|
|
|
| 23 Jun 2013 12:36 PM |
| Thanks notspownedg, this is great! |
|
|
| Report Abuse |
|
|
|
| 23 Jun 2013 12:39 PM |
| Theres actually quite a few different ways to rotate a part |
|
|
| Report Abuse |
|
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
|
| 23 Jun 2013 12:46 PM |
There's a new property of a BasePart (all physical parts) called Rotation.
Workspace.Part.Rotation = Vector3.new(0,0,0) |
|
|
| Report Abuse |
|
|
tigerr666
|
  |
| Joined: 13 Aug 2009 |
| Total Posts: 1665 |
|
|
| 23 Jun 2013 12:53 PM |
| Guys, he wants a part to rotate, like 3D rotate. Ya know, when you enter a popular game lobby, and theres several bricks just rotating in place. He doesn't want to rotate a part once, then have it do nothing. |
|
|
| Report Abuse |
|
|
| |
|