GFXBIT
(GFXBIT)
January 7, 2022, 9:59pm
#1
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.
Osrock_626
(Osrock626)
January 7, 2022, 10:01pm
#2
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
GFXBIT
(GFXBIT)
January 7, 2022, 10:01pm
#3
I give it a try. I set your reply as a solution if it worked.
GFXBIT
(GFXBIT)
January 7, 2022, 10:05pm
#4
It worked.
I change the script position into starter Gui.
I added ya script and it worked great.
Thank mate.
1 Like