vat21s
|
  |
| Joined: 07 Jun 2010 |
| Total Posts: 2508 |
|
|
| 25 Apr 2017 12:39 AM |
| I want to turn a part to point in the direction of my mouse. but the part is welded to another part that turns. I'm using this to control the Y rotation. ######################################################## * CFrame.Angles(0, (math.atan2(dir.X,dir.Z) + ####################################################### 0) |
|
|
| Report Abuse |
|
|
vat21s
|
  |
| Joined: 07 Jun 2010 |
| Total Posts: 2508 |
|
|
| 25 Apr 2017 12:40 AM |
CFrame.Angles(0, (math.atan2(dir.X,dir.Z) + math.pi)+math.rad(Part.Parent.Parent.OriginPart.Rotation.Y), 0)
This filter is getting on my nerves. |
|
|
| Report Abuse |
|
|
| |
|
vat21s
|
  |
| Joined: 07 Jun 2010 |
| Total Posts: 2508 |
|
| |
|
vat21s
|
  |
| Joined: 07 Jun 2010 |
| Total Posts: 2508 |
|
|
| 25 Apr 2017 12:45 AM |
The model if you want to test it. https://www.roblox.com/library/750958463/Boat |
|
|
| Report Abuse |
|
|