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

My camera script won't make the camera point down?

workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable

workspace.CurrentCamera.CFrame = CFrame.new(22.2, 50, 25.9)
workspace.CurrentCamera.Focus = CFrame.new(22.2, 1.5, 25.9)

This script is suppose to make the camera look down at a giant green button, but it does not work, there are no errors in the output log.

3 comments

0

it wont work because u didnt give it a CameraSubject

0

Hmm, okay. I will try that

0

It did not work.

3 answers

✓ Accepted answer

AlphaGamer150, you can make a the camera CFrame on a part instead of a position, and make the front surface of the part face down like this:

local camera = workspace.CurrentCamera
 
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = workspace.looker.CFrame

make a part in workspace and make sure the front face of it is facing where ever you want and name it "looker", but you can name it whatever you want, but you need to change the name in the script

4 comments

0

hmm, I will try that, thanks

0

This worked

0

Thanks for the help!

1

yey

wait()

workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable

workspace.CurrentCamera.CFrame = CFrame.new(22.2, 50, 25.9)
workspace.CurrentCamera.Focus = CFrame.new(22.2, 1.5, 25.9)

4 comments

0

It does not work

0

CFrame.Angles

0

I will try

0

with CFrame.Angles u cant look down :(

I hope this works :) and also tell me what errors you get if it doesnt work!

workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable

workspace.CurrentCamera.CoordinateFrame = CFrame*CFrame.new(math.rad(22.2),math.rad(50),math.rad(25.9))
workspace.CurrentCamera.Focus = CFrame*CFrame.new(math.rad(22.2),math.rad(1.5),math.rad(25.9))

1 comment

1

that doesnt work

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