I'm trying to get this part to look at the mouse position. This is what I have:
local Mouse = game.Players.LocalPlayer:GetMouse()
local Part = workspace.Part
Part.CFrame = CFrame.new(Part.CFrame, Mouse.Hit.p)
(Im using RenderStepped in the actual code, to keep the CFrame updated) This code will get the part to look at my mouse position. But the part is rotating using all of its axis points, how would I get the part to look at my mouse position using only its Y cord?

5 comments
You would just use the y cord from the vector3
You're only trying to make the Character's y coordinate be equivalent to the Mouse's Y coordinate?
Part.CFrame = CFrame.new(Part.CFrame, Vector3.new(Part.CFrame,Mouse.Hit.p.Y,Part.CFrame) -- I already tried this and it is not working
Im trying to get the part to look at the mouse position, but LookAt is rotating it using all of its axis points. I need it to only rotate using its Y axis
Part.CFrame = CFrame.new(Part.Position, Vector3.new(Part.Position.X, Mouse.Hit.p.Y, Part.Position.Z)) -- This should work.