I'm not that sure what to title the Question but i'll explain.
So, I'm fairly new to creating Camera Manipulation. My goal was to manipulate the camera when the detector is enabled, and after 3s, will go back to the player.
I've placed the script in StarterPlayerScripts, and is a LocalScript.
The Outcome was that it did not work at all.
local detector = game.workspace.BlahBlah
local camera = game.workspace.CurrentCamera
local camerapart = game.workspace.CameraPart
local player = game.Player.LocalPlayer
if detector.Enabled == true then
camera.CameraType = "Fixed"
camera.Focus = camerapart.CFrame
wait(3)
camera.CameraType = "Custom"
camera.CameraSubject = player.Character.Humanoid
end

2 comments
at first didn't work but the problem was the player local so i placed it in the function. It worked but something off-topic is that the face of the camera keeps directing at the back
Can you elaborate on what you mean by "directing at the back"