generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: EHHHH

Previous Thread :: Next Thread 
affectless is not online. affectless
Joined: 28 Dec 2014
Total Posts: 1084
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 is not online. litalela
Joined: 30 Mar 2010
Total Posts: 6267
01 Sep 2015 07:34 PM
change both of them

➳Lɪᴛᴀʟᴇʟᴀ ɪs ᴍʏ ɴᴀᴍᴇ, Lᴜᴀ ɪs ᴍʏ ɢᴀᴍᴇツ
Report Abuse
affectless is not online. affectless
Joined: 28 Dec 2014
Total Posts: 1084
01 Sep 2015 07:35 PM
??
Report Abuse
litalela is not online. 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
affectless is not online. affectless
Joined: 28 Dec 2014
Total Posts: 1084
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 is not online. 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
affectless is not online. affectless
Joined: 28 Dec 2014
Total Posts: 1084
01 Sep 2015 07:41 PM
yes
Report Abuse
affectless is not online. affectless
Joined: 28 Dec 2014
Total Posts: 1084
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 is not online. 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
affectless is not online. affectless
Joined: 28 Dec 2014
Total Posts: 1084
01 Sep 2015 07:46 PM
k
Report Abuse
affectless is not online. affectless
Joined: 28 Dec 2014
Total Posts: 1084
01 Sep 2015 07:49 PM
bleh i wish i could just find out how to rotate the head
Report Abuse
litalela is not online. 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
affectless is not online. affectless
Joined: 28 Dec 2014
Total Posts: 1084
01 Sep 2015 07:51 PM
oh i thought it just adjusted the arms without moving the head
lemme see again
Report Abuse
affectless is not online. affectless
Joined: 28 Dec 2014
Total Posts: 1084
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image