Progress bar not changing?

mannnn … you are casting player controller to cube.

if your pawn is a cube, then you must cast the player pawn to cube