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 » Scripting Helpers
Home Search
 

Re: How would i do this?

Previous Thread :: Next Thread 
Zeranoc is not online. Zeranoc
Joined: 23 Aug 2014
Total Posts: 492
15 Nov 2014 10:51 PM
This makes the character look at the mouse.I want to lock it to one axis though.
The line that starts with Rot is the main thing. I only want the character to look side to side not up and down. Output says nothing :(

game:GetService("RunService").RenderStepped:connect(function()
Pos = C["Head"].Position +Vector3.new(30, 30, 30)
Rot = Vector3.new(Mouse.Hit.X,Chest.CFrame.lookVector.Y,Mouse.Hit.Z)
Chest.CFrame = CFrame.new(Chest.Position, Rot)
end)
Report Abuse
Kehqq is not online. Kehqq
Joined: 02 Nov 2013
Total Posts: 312
15 Nov 2014 11:30 PM
do you mean torso?
Report Abuse
Zeranoc is not online. Zeranoc
Joined: 23 Aug 2014
Total Posts: 492
16 Nov 2014 12:49 AM
Chest means torso

bump
Report Abuse
CloppityPoppity is not online. CloppityPoppity
Joined: 26 Aug 2014
Total Posts: 209
16 Nov 2014 12:59 AM
It should be Torso in the archives, not Chest.
Report Abuse
thermonuklear is not online. thermonuklear
Joined: 19 Oct 2014
Total Posts: 484
16 Nov 2014 01:23 AM
But you can define a variable 'Chest' to the Torso.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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