How do i use cframe.lookat only using y postion roblox

how do I use CFrame.lookAt
but only using the Y position

All Help Is Helpful
:grinning:

local lookAtPosition = Vector3.new()
local originPosition = Vector3.new()

local translatedLookAtPosition = Vector3.new(0, lookAtPosition.Y, 0) -- remove x and z components

local lookAtCFrame = CFrame.new(originPosition, translatedLookAtPosition) -- this constructor is the same as CFrame.lookAt

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.