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

How do I make the Camera follow the player's head? [closed]

Asked by 4 years ago

I'm making a game with cut scenes and one of them is the character waking up, I want to make it so that when the camera is in First-Person, basically, I want to make it so that the camera will follow where the head turns to in the animation. Does anyone know how to script that sort of thing?

0
You can set Game.Workspace.CurrentCamera.CameraType to "Fixed" and Game.Workspace.CurrentCamera.Camera.CameraSubject to the player's head instead of the player's humanoid. I haven't tested it yet, but I think that's how it works. TheRealPotatoChips 793 — 4y

Closed as Not Constructive by Leamir, cailir, Gojinhan, and hiimgoodpack

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

--Create a [Non-LocalScript] new script in the workspace and place the information below.

pcall(function()
    game:GetService('StarterPlayer').CameraMode = ('LockFirstPerson')
end)
0
Okay, that locks it in First Person, but I'm trying to make it so that the camera follows where the head turns, this doesn't do that. Epicyoutube65 -5 — 4y
Ad