Returning CurrentCamera to Player

I’m making a simple camera script.

task.wait(6)
local Part = script.Parent
local CurCam = game.Workspace.CurrentCamera

CurCam.CameraType = Enum.CameraType.Scriptable
CurCam.CFrame = Part.CFrame

How to return curcam to player head after specific time has passed?

LocalScript inside the Part.

Simply add:

CurCam.CameraType = Enum.CameraType.Custom

And it will automatically put the camera back to the player.

Of course you do need to specify the player the camera is gonna go back to, and the script should be a server script, since it’s inside the part.

1 Like

I give it a try. I set your reply as a solution if it worked.

It worked.
I change the script position into starter Gui.
I added ya script and it worked great.
Thank mate.

1 Like