How i avoid gun clipping without viewport frames and raycast

i want to avoid a tool from clipping through wall
mostly(first person) without raycasts and viewport frame