How to make r15 loader stand on ground

got this code, and I want for my NPC to stand on the ground not get stuck on the ground in an awkward position…

image

I aint got any scripts, the block was just anchored. I already tried using hipheight but I don’t know where to start… can anyone help me out here?