Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 26 Feb 2013 01:50 PM |
ray = Ray.new(tool.Handle.CFrame.p - (tool.Handle.CFrame.p - mouse.Hit.p).unit * 300)
Is unit * 300 the range? 300 studs? the range on how far part would go? |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 26 Feb 2013 01:59 PM |
| It would be good having somebody replying :D |
|
|
| Report Abuse |
|
|
|
| 26 Feb 2013 02:03 PM |
Yep, thats the length.
A unit vector is a vector with a length of 1 (Basically the direction) and so if you multiply it by 300, thats the length of the ray. |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 26 Feb 2013 02:04 PM |
| So when the part reaches 300, would it fall or would it be destroyed? |
|
|
| Report Abuse |
|
|
|
| 26 Feb 2013 02:06 PM |
Wait, you are using Rays wrong.
A ray takes a vector3 starting position and the direction (multiplied by the length) and it will just sit there until you do something with it. |
|
|
| Report Abuse |
|
|