How to draw a rectangle using MouseLocationToWorldSpace

Hey, i think the problem here is that you forgot a LineTraceByChannel. Try this script, it works fine:

Regards