Hello.
I’m attempting to create a camera that faces the mouse’s position.
Camera.CameraType = Enum.CameraType.Scriptable
RSS.RenderStepped:Connect(function(Delta)
local NewCamCFrame = CFrame.new(script.Engines.Value.Parent.Parent.CriticalStructure.ThirdView.CFrame.p, Vector3.new(Mouse.Hit.p.X,Mouse.Hit.p.Y,Mouse.hit.p.Z))
script.Engines.Value.Parent.Parent.CriticalStructure.ThirdView.CFrame:Lerp(NewCamCFrame, 1)
print(NewCamCFrame)
Camera.CFrame = script.Engines.Value.Parent.Parent.CriticalStructure.ThirdView.CFrame
end)
So basically I have a part, that I then use as a “camera”. This part will later on be moving, as it apart of an aircraft. I want this part to face the player’s mouse, and lerp to its Hit, so that the player camera will face it.
But when I test play, the camera stays the same.
I can provide more information if necessary.