Player Movement along with Camera

Hi , I want to move player along the platform where the camera follows the player path. Player moves in a straight platform with 3 lanes and can switch between the lanes. Important point is ,AT the end of straight line path there is T shape turn where player get random left or right turn and moves again in straight line with 3 lanes. But once the player turn to left or right platform then switching between the lane gives me weired behaviour. May be its due to initially player moves in z axis so switching between lanes can be done in x axis. BUT after taking random turn to left or right player starts to move in x axis i guess then it need to be updated in z axis for lane switches.
Repo link is shared . anyone can have a look into this issue.
repo link : PlayCanvas 3D HTML5 Game Engine

Thank you.