I'm not sure if Player:aimEntity() does some sort of caching, but you could always use trace.traceLine(), it allows you to detect non-solid objects. Another advantage is that you get the hit position, hit entity, hit normal, hit texture, etc. all in one call.