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
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 312 |
|
| |
|
Zeranoc
|
  |
| Joined: 23 Aug 2014 |
| Total Posts: 492 |
|
| |
|
|
| 16 Nov 2014 12:59 AM |
| It should be Torso in the archives, not Chest. |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2014 01:23 AM |
| But you can define a variable 'Chest' to the Torso. |
|
|
| Report Abuse |
|
|