Sinking through a solid moving platform

Edited: Solved the problem