Check which side of a prop I'm aiming at

Sorry for the bad title, don’t know how to really explain this. But I’m trying to make a building system where you place blocks relative to others.

For example I’m using



pos = ent:GetPos() + ent:GetAngles():Forward() * 50


to set the position and that works for one direction but I want that direction to depend on where I aim relative to the base block so if I aim to the right of it it would give me the same as


 ent:GetAngles():Right() 

Anyone know how to do this?

You could do a trace in that direction and use normal.

Works, thanks!