How to write a smooth crouching script in blueprint?

@TJ Ballard / @spaid
As spaid said, using a line trace can clip you into objects, when you uncrouch right at the edge. I tried his sphere trace and it works better. but I’m still “able” to clip into objects at the edge, but only when I’m moving. so when I’m crouching towards an object and uncrouch while still moving I sometimes manage to clip into the object. I think it’s because the trace doesn’t hit anything when I hit uncrouch but during the crouch transition my location changes, because I’m still moving a few inches. So I kinda understand the problem, but I have no idea how to solve it. Just started with UE last week. Could you guys help me out? Thanks in advance.