RenKaDi
(RenKa)
#1
I would like to know if there is a way to get the position and distance of the mouse if it is clicked in the air.
An example:
The maximum distance would be 40 studs; if the mouse is clicked in the air, then it will create a part that is a maximum of 40 studs away.
![image](//devforum-uploads.s3.dualstack.us-east-2.amazonaws.com/uploads/original/4X/9/8/7/987ffb785103153c23115dac12969fe4c1300d1e.jpeg)
1 Like
DasKairo
(Cairo)
#2
I would just say ray cast
I think this is how you would do the Raycast
Ray.new(Ex.Position, Mouse.Hit.p.Unit * 40)
1 Like
RenKaDi
(RenKa)
#3
Thanks, that actually works.
![image](//devforum-uploads.s3.dualstack.us-east-2.amazonaws.com/uploads/original/4X/4/3/0/4301bc4aef4ffd32010df36eae850854408d3857.png)
1 Like
system
(system)
Closed
#4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.