I’m making a game that match these two genres: Horror, Parkour. But i need to understand how can i make the camera follow ONLY the orientation of the players head? I don’t want the position, I only want the orientation, anyone knows how to do that?
Hey, i just want a example script, not a full one! Also, i think it’s not a super hard thing, i just don’t know how to make it follow ONLY the orientation, the both i know i only want the orientation
I may be misunderstanding what you want. Can you try to explain further? Do you want the camera to stay in one place, or do you want it to follow the player? Are you trying to do something like HELLMET?
No, no, do you know that animations change the head orientation most of the time? Well, i want actually change the orientation to the player’s head orientation, but i never played hellmet or ever have watched any videos about it (just a little bit) but i don’t want it to stay on one place, i want it to rotate’s with the player’s head.
local Head = character.Head
game:GetService("RunSerive").RenderStepped:Connect(function()
local X,Y,Z = Head.CFrame:ToOrientation()
local CameraPosition = Vector3.new(0,0,0) -- change to whatever you want the camera position to be
Camera.CFrame = CFrame.new(CameraPosition) * CFrame.Angles(X,Y,Z)
end)