Is there a way to lock the camera on the player’s head during an animation? I am trying to make some cutscenes without a lot of tweens. Any help is appreciated!
You can change the type of the camera to “scriptable” and then define some properties to position the camera to the desired CFrame.
Do you mean something like this?
while wait(.1) do
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = char.Head.CFrame
end
If I use that method, it just makes the player’s character spin really fast both client side and server side
1 Like
You can try positioning the camera to about 20 studs above the head’s position and then use the focus property of the camera to focus on the head’s CFrame.
You can try this.
repeat wait() until camera.CameraType == Enum.CameraType.Scriptable
local function lockOnHead()
camera.CFrame = char.Head.CFrame * CFrame.new(0, 20, 0)
camera.Focus = char.Head.CFrame
end
lockOnHead()
It is the same result. The player’s character spins really fast.
1 sec let me enter Roblox Studio.