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

Q: How to make a part into a still positioned camera with a script?

Asked by 9 years ago

I don't have any code for this, sorry. But I need help making a part into a still positioned camera

Thanks!

1 answer

Log in to vote
0
Answered by
RoboFrog 400 Moderation Voter
9 years ago

You can use these lines to create your camera --

camera.CameraType = Enum.CameraType.Scriptable -- Enables player camera to be scriptable
camera.CoordinateFrame = CFrame.new(0,0,0) * CFrame.Angles(0, 0, 0) -- Where the camera is located
game.Workspace.CurrentCamera.Focus=CFrame.new(0,0,0) -- Where the camera is focused
game.Workspace.CurrentCamera.CameraType = "Custom" -- Returns camera to player

They'll not necessarily be used in that order, but will enable you to create the camera.

Ad

Answer this question