Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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?

1 comment

0

Construct a CFrame with a lookVector.

1 answer

✓ Accepted answer

As you can see, we cannot set a camera CFrame if 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!

This discussion is preserved as it was. New answers, comments, and votes are closed.