|
| 07 Dec 2016 06:52 PM |
script.Parent.Grip = (CFrame.new(script.Parent.Grip.p,player:GetMouse().Hit.p)) This is a script to move the gun to be pointed where the mouse is aiming. Yet it works correctly except for the part that its inverted. Ex. I move mouse down the gun points upward, How do I fix this or whats causing it. |
|
|
| Report Abuse |
|
|
| |
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 07 Dec 2016 07:46 PM |
Invert it by taking the negative of each value.
|
|
|
| Report Abuse |
|
|
|
| 07 Dec 2016 07:51 PM |
| of which value. The mouses Vector3? or the CFrame thats created? |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 07 Dec 2016 10:50 PM |
CFrame:inverse() -- is this what you're looking for?
|
|
|
| Report Abuse |
|
|