Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make the camera reset to the original location?

I made a script for a custom camera, although I'm experiencing some difficulties making it go back to the 'normal' camera. How can I make this camera reset back to the original player camera?

local Player = game.Players.LocalPlayer
local Char = Player.Character or Player.CharacterAdded:Wait()
local camera = workspace.CurrentCamera

wait(0.1)
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = workspace.Cam.CFrame

1 answer

✓ Accepted answer
camera.CameraType = Enum.CameraType.Custom

If you want it to go back to the players position then reset to the original do

wait(0.1)
local plr = game.Players.LocalPlayer
local workspaceplr = game.Workspace[plr.Name]
camera.CFrame = workspaceplr.UpperTorso.CFrame
camera.CameraType = Enum.CameraType.Custom

This discussion is preserved as it was. New answers, comments, and votes are closed.