Xtreme101
|
  |
| Joined: 03 Jan 2009 |
| Total Posts: 4385 |
|
|
| 24 Jul 2013 09:07 PM |
I need a method for constantly keeping the character facing the direction of the mouse. My CFrame one was a fail :P
mouse = game.Players.LocalPlayer:GetMouse() while true do game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Torso.Position, Vector3.new(mouse.Hit.p.X, game.Players.LocalPlayer.Character.Torso.Position.Y, mouse.Hit.p.Z)) wait() end
The character bounces around and doesn't stay when I move. So, any methods? |
|
|
| Report Abuse |
|
|
Xtreme101
|
  |
| Joined: 03 Jan 2009 |
| Total Posts: 4385 |
|
| |
|
Xtreme101
|
  |
| Joined: 03 Jan 2009 |
| Total Posts: 4385 |
|
| |
|
|
| 24 Jul 2013 09:49 PM |
BodyGyro.
BodyGyro.cframe = CFrame.new(Character.Torso.Position, Mouse.Hit.p) |
|
|
| Report Abuse |
|
|
tummey2
|
  |
| Joined: 04 Feb 2009 |
| Total Posts: 1802 |
|
| |
|
Xtreme101
|
  |
| Joined: 03 Jan 2009 |
| Total Posts: 4385 |
|
|
| 24 Jul 2013 10:13 PM |
| No, that just controls the vertical properties of a brick. When I do that, the character just sorta leans in that direction. |
|
|
| Report Abuse |
|
|