The camera isnt going back to the player

I am making a round based game, with a cutscene that starts when the round starts. I got the camera to change, but the camera doesnt go back to the player when I change it to custom

local player = game.Players.LocalPlayer
local camrea = game.Workspace.CurrentCamera
--allcutsceneremoteevents
local squidcutscene = game:GetService("ReplicatedStorage").CutScenes:WaitForChild("SquidBossCutscene")

--Seeing when all of the events are fired
squidcutscene.OnClientEvent:Connect(function()
	camrea.CameraType = Enum.CameraType.Scriptable
	camrea.CFrame = game.Workspace.TempMap:WaitForChild("Island Area").BossStuff.CamereaPos.CFrame
	wait(1)
	print(player)
	camrea.CameraType = Enum.CameraType.Custom
end)

it puts the camera to when the player was in the lobby not by the current position of the player

To teleport the player into the game, I change the team of the player and loadthe character so it will spawn in the map

Is the WaitForChild you added yielding and stuck in an infinite loop of waiting?

no there are no errors in the script

I had something similar to this. You have to put the camera to “Custom” mode and also change camera.CameraSubject to be the player’s character. Make sure to redefine the character as well so that it works properly.

1 Like

He already put that in. Thoughts?

What about the camera subject?

That shouldn’t matter, since the camera subject is never redefined in the first place.

Take a look at the code once more. I thought the wait(1) was the problem, but I realized that shouldn’t make a difference.

Is it printing “player”?

If not, I would check your spelling here, it looks a little fishy:

Maybe it should be CameraPos.CFrame? or CamreaPos.CFrame?