Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I cant get the camera to look in the right direction with focus?

Asked by 6 years ago
local cam = workspace.CurrentCamera

cam.Focus=CFrame.new(142.75, 36.25, 296)

cam.CameraSubject = workspace.Camera1

cam.CoordinateFrame=CFrame.new(129.75, 36.25, 296)

cam.CameraType = ("Watch")

well everything works fine the camera just looks up and i need it to look to its front! I checked the roblox manipulatipon wiki but that just taught me the basics and some other stuff! Whats wrong?

0
Construct a CFrame with a lookVector. Thundermaker300 554 — 6y

1 answer

Log in to vote
1
Answered by 6 years ago

As you can see, we cannot set a camera CFrameif we didn't even set the camera to Scriptable By the way, this is a Local Script is in `StarterGui

local cam = workspace.CurrentCamera

repeat
    cam.CameraType == Enum.CameraType.Scriptable
    wait()
until
    cam.CameraType == Enum.CameraType.Scriptable

cam.CFrame = CFrame.new(142.75, 36.25, 296)

Please accept this answer if this worked!

Ad

Answer this question