So lets say i have the players camera stuck in one spot using Camera.CoordinateFrame but what if i wanted to point the camera to something? How could i do this?
Also would the camera look to the left with it?
Thanks!
So lets say i have the players camera stuck in one spot using Camera.CoordinateFrame but what if i wanted to point the camera to something? How could i do this?
Also would the camera look to the left with it?
Thanks!
You actually need to use the CFrame constructor that takes two Vector3 values:
--LocalScript
local cam = workspace.CurrentCamera
local camPos = Vector3.new(5, 5, 5) --Example
local target = workspace.Part
cam.CoordinateFrame = CFrame.new(camPos, target.Position)
lookVector is a read-only Value.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
And that constructor is 'CFrame.new(Vector3 position, Vector3 point)'. It creates a CFrame at position, looking at point.