Hey there! I’m trying to make the camera follow the head smoothly.
Here’s roughly what I’m trying to achieve:
https://streamable.com/23itvc
Here’s what I’ve tried:
RunService:BindToRenderStep("CameraSway", Enum.RenderPriority.Camera.Value + 1, function(deltaTime)
Camera.CFrame = Camera.CFrame * CFrame.Angles(math.rad(head.Orientation.X)/100*10, 0, math.rad(head.Orientation.Z)/100*10)
end)
The problem with this is, is that it doesn’t exactly follow the head, and makes the rotation shoot out way further than the actual head rotation.
What can I do to achieve this? Any help is appreciated!
1 Like
Emskipo
(Emskipo)
November 9, 2023, 3:42pm
#2
Have you tried just matching the head CFrame?
local offset = CFrame.new(0,0,-1) --1 stud in front of head
Camera.CFrame = head.CFrame * offset
Yes, but it will just spin the player really fast in first person.
Emskipo
(Emskipo)
November 9, 2023, 7:59pm
#4
Is the camera set as scriptable? Though I suppose the character controls might be based off the camera as well. Sorry, that’s the best I got without trying to do it myself.
Aeresei
(Aeresei)
October 23, 2024, 5:12pm
#5
Bump.
I’m trying to get this exact same result as the new Parkour game, I can’t get it for the life of me D: