Hello, I am currently trying to make a camera face the front of a model’s primary part, though it only shows the top. Below, I have linked some images of what I am trying to accomplish.
Left: What I want to happen Right: What happens
Example: (sorry for the bad drawing lol)
Script:
local ViewportCamera = Instance.new("Camera", button)
ViewportCamera.CameraType = Enum.CameraType.Scriptable
ViewportCamera.FieldOfView = 100
ViewportCamera.CFrame = CFrame.new(Vector3.new(0, 3, 1), Vector3.new(0, 1, 0))
button.CurrentCamera = ViewportCamera
local model = button:FindFirstChildWhichIsA("Model")
model:SetPrimaryPartCFrame(CFrame.new(0, 0, 0))
model.Parent = button
I have tried tweaking the camera both in the script and using the properties tab while playing, though I have noticed that the position and orientation only moves 2 dimensionally.