How to draw a rectangle using MouseLocationToWorldSpace

I’m trying to draw a rectangle with 2 clicks from the player. The following code isn’t working at the moment. I’m sure I’m doing the maths wrong here, but I’m just a bit stuck.

I’m attempting for the 1st push to get the far-top-left corner and the 2nd push to get the far-bottom-right corner, and then use that information to draw a rectangle.

I tried these two and other arrangements.

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

Regards