|
| 19 Mar 2017 12:05 PM |
| So basically I have a model that when a button is clicked, it needs to rotate 45°. But, I want to see it rotating, haven't really used much CFrame so not sure if by default I do. How would I do this? |
|
|
| Report Abuse |
|
|
| |
|
KapKing47
|
  |
| Joined: 09 Sep 2012 |
| Total Posts: 5522 |
|
|
| 19 Mar 2017 01:00 PM |
| Assuming .PrimaryPart is set: local cf = Model.PrimaryPart.CFrame local rotated = cf * CFrame.Angle(0, math.rad(45), 0) --Change the axes if need-be for i = 1, 30 do ########################################### i / 30)) wait() end |
|
|
| Report Abuse |
|
|
KapKing47
|
  |
| Joined: 09 Sep 2012 |
| Total Posts: 5522 |
|
|
| 19 Mar 2017 01:01 PM |
Argh! Roblox needs to calm the ham with the filter!
paste bin . com /aTrR6veY
|
|
|
| Report Abuse |
|
|
|
| 19 Mar 2017 01:09 PM |
| "Attempt to call nil value "Angle"" |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Mar 2017 01:16 PM |
| Thanks for help! Only one problem now, once they rotate once, they go back to beginning when I click again. |
|
|
| Report Abuse |
|
|
|
| 19 Mar 2017 01:24 PM |
| nvm it's fixed, thanks again |
|
|
| Report Abuse |
|
|