Player camera movement problem script

Hello everyone I made a system to change the genre in my game, it works well until play time, the camera no longer follows the movements of the player. If i not change the gender camera work.

Script for change gender:

Play Script:

image

image

I dont have error message too

thanks for reading

If you haven’t, which appears you have not, set the CameraType to Scriptable, not Custom. If I’m not wrong, Custom is the default CameraType. Whenever you need to manipulate the camera, you should always set it to Scriptable.

thank you for reading you mean here ? image

Yeah, switch that to Scriptable.

I do however recommend relying on the Enum values given, so instead of just typing Scriptable in a string, you could instead do this:

Camera.CameraType = Enum.CameraType.Scriptable

Ok i just found the problem it was the CameraSubject which was no longer attributing to the player thanks you very much for your time