1 | workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable |
2 |
3 | workspace.CurrentCamera.CFrame = CFrame.new( 22.2 , 50 , 25.9 ) |
4 | 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.
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:
1 | local camera = workspace.CurrentCamera |
2 |
3 | camera.CameraType = Enum.CameraType.Scriptable |
4 | 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
1 | wait() |
2 |
3 | workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable |
4 |
5 | workspace.CurrentCamera.CFrame = CFrame.new( 22.2 , 50 , 25.9 ) |
6 | workspace.CurrentCamera.Focus = CFrame.new( 22.2 , 1.5 , 25.9 ) |
I hope this works :) and also tell me what errors you get if it doesnt work!
1 | workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable |
2 |
3 | workspace.CurrentCamera.CoordinateFrame = CFrame*CFrame.new(math.rad( 22.2 ),math.rad( 50 ),math.rad( 25.9 )) |
4 | workspace.CurrentCamera.Focus = CFrame*CFrame.new(math.rad( 22.2 ),math.rad( 1.5 ),math.rad( 25.9 )) |