|
| 01 Sep 2015 07:33 PM |
| How would I go about making the head's lookVector the same as the camera's, while maintaining its position relative to the torso? |
|
|
| Report Abuse |
|
|
litalela
|
  |
| Joined: 30 Mar 2010 |
| Total Posts: 6267 |
|
|
| 01 Sep 2015 07:34 PM |
change both of them
➳Lɪᴛᴀʟᴇʟᴀ ɪs ᴍʏ ɴᴀᴍᴇ, Lᴜᴀ ɪs ᴍʏ ɢᴀᴍᴇツ |
|
|
| Report Abuse |
|
|
| |
|
litalela
|
  |
| Joined: 30 Mar 2010 |
| Total Posts: 6267 |
|
|
| 01 Sep 2015 07:37 PM |
instead of just changing it so the head's lookvector is synonymous with the camera, you change it so the head and torsos lookvectors are synonymous with the camera
CFrame.new(head.CFrame.P, camera.lookVector)
pretty sure camera has lookvector
➳Lɪᴛᴀʟᴇʟᴀ ɪs ᴍʏ ɴᴀᴍᴇ, Lᴜᴀ ɪs ᴍʏ ɢᴀᴍᴇツ |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2015 07:38 PM |
uh no i can't the torso has to be the same as it always is |
|
|
| Report Abuse |
|
|
litalela
|
  |
| Joined: 30 Mar 2010 |
| Total Posts: 6267 |
|
|
| 01 Sep 2015 07:39 PM |
so you want to rotate the head without rotating the torso?
ehhh
➳Lɪᴛᴀʟᴇʟᴀ ɪs ᴍʏ ɴᴀᴍᴇ, Lᴜᴀ ɪs ᴍʏ ɢᴀᴍᴇツ |
|
|
| Report Abuse |
|
|
| |
|
|
| 01 Sep 2015 07:41 PM |
something along the lines of this char.Torso.Neck.C0 = ((CFrame.new(0,1.5,0)*(cam.CoordinateFrame-cam.CoordinateFrame.p)):inverse()*(char.Torso.CFrame-char.Torso.CFrame.p)):inverse()
but it isn't working correctly. |
|
|
| Report Abuse |
|
|
litalela
|
  |
| Joined: 30 Mar 2010 |
| Total Posts: 6267 |
|
|
| 01 Sep 2015 07:43 PM |
http://www.roblox.com/look-aim-weapon-up-down-item?id=146840226
read this script, it should help
it does what you want pretty muche
➳Lɪᴛᴀʟᴇʟᴀ ɪs ᴍʏ ɴᴀᴍᴇ, Lᴜᴀ ɪs ᴍʏ ɢᴀᴍᴇツ |
|
|
| Report Abuse |
|
|
| |
|
|
| 01 Sep 2015 07:49 PM |
| bleh i wish i could just find out how to rotate the head |
|
|
| Report Abuse |
|
|
litalela
|
  |
| Joined: 30 Mar 2010 |
| Total Posts: 6267 |
|
|
| 01 Sep 2015 07:50 PM |
that script has a thing for rotating the head according to the camera
just read it
➳Lɪᴛᴀʟᴇʟᴀ ɪs ᴍʏ ɴᴀᴍᴇ, Lᴜᴀ ɪs ᴍʏ ɢᴀᴍᴇツ |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2015 07:51 PM |
oh i thought it just adjusted the arms without moving the head lemme see again |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2015 07:58 PM |
it isn't working for me when i try to copy the code also it uses CFrame.Angles |
|
|
| Report Abuse |
|
|
litalela
|
  |
| Joined: 30 Mar 2010 |
| Total Posts: 6267 |
|
|
| 01 Sep 2015 07:58 PM |
dont copy the code
make your own code with that code as an idea
➳Lɪᴛᴀʟᴇʟᴀ ɪs ᴍʏ ɴᴀᴍᴇ, Lᴜᴀ ɪs ᴍʏ ɢᴀᴍᴇツ |
|
|
| Report Abuse |
|
|