Camera follow the player

There’s multiple topics on this already on the forum (search for camera lock). Here’s one discussion: Camera lock on x-axis? (SOLVED)