|
| 05 Nov 2011 03:00 PM |
script.Parent.Selected:connect(function(t) t.KeyDown:connect(function(key) if key == "r" then --rotate a model end end) end)
How would you rotate a whole model 90 degrees when you pressed R? |
|
|
| Report Abuse |
|
|
| |
|
31drake
|
  |
| Joined: 10 Dec 2010 |
| Total Posts: 341 |
|
|
| 05 Nov 2011 03:24 PM |
| Do you mean while you're building, or for players to use? |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2011 03:32 PM |
| In my game, there's a hopperbin, I want it so you press R and then click a model, and it rotates the whole model. I want to add this to the rest of the hopperbin script I made. |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2011 03:45 PM |
If it helps, all the bricks need to be rotated on the middle brick's axis. This brick is named, "bottom"
If no one knows how to do this (and it is possible)... then I will just make a different model for every direction the model needs to face and replace that model with a different one every time someone presses "R". |
|
|
| Report Abuse |
|
|