So I made a moving platform in my world with guard rails, but when I step on it and the platform moves...the camera seems to stay in place (meaning my view point) while I see my avatar riding away on the platform and eventually it just clips my avatar out of the guard rails and back to my view and I fall down off the map.

Pretty new to world building, but how do i fix this? the platform just has a simple animation loop on it that moves it diagonally across the map. How can I make my avatar "stick" to the platform so this weird view shit disconnect doesn't happen?