Hello so I've been trying to make a camera system for my game, but I haven't worked out that well. In my game if a player sits on a seat, then the camera should automatically move to a part I have assigned with the script and when the player jumps off the seat then the camera should go back to the player. If someone could help me with this script I would be grateful.
✓ ANSWER ACCEPTED
How would a camera seat script look like?
1 answer
✓ Accepted answer
Run this on a localscript
camera = game.Workspace.CurrentCamera --Fetch the camera
camera.CameraType = Enum.CameraType.Scriptable --This suspends the default camera script, so you can have the camera do whatever you'd like
camera.CFrame = game.Workspace.CameraPart.CFrame --Make a part in workspace (CameraPart was used here, name doesn't matter) where you'd like the camera to move. Make sure the front of the part is facing the direction you'd like the camera to face
wait(5)
camera
camera.CameraType = Enum.CameraType.Default --This sets the camera back to the default camera script, so it'll go back to your player and track it as normal.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
remove camera from line 8
remove camera from line 8