Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

Making the player's head face the camera?

Asked by 7 years ago

I was able to make the head move up and down in the direction of the mouse, but im unable to figure out how to make it so it can move side to side as well, any ideas?

    Character.Torso.Neck.C1 = CFrame.new(0,-.5,0)
    Character.Torso.Neck.C0 = CFrame.new(0, 1, 0) * CFrame.Angles(math.sin((Mouse.Hit.p - Mouse.Origin.p).unit.y),0,0)
0
I have a script that might work, but I haven't tested it. Do you want to see it? flufffybuns 89 — 7y
0
might as well unwarranted 12 — 7y
0
Have you tried the lookAtPos from CFrame.new(Vector3,lookAtPos), and remaking the weld every tick ? RubenKan 3615 — 7y
0
local look = torso.CFrame:inverse()*CFrame.new(head.Position, mouse.Hit.p) neck.C0 = look-look.p+Vector3.new(0,1,0) 1waffle1 2908 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

i have no clue. Does anyone know how to make a Group Partical effect?

Ad

Answer this question