|
| 28 Oct 2015 01:12 PM |
| Instead of pointing in a direction like a small laser? |
|
|
| Report Abuse |
|
|
yobo89
|
  |
| Joined: 05 Jun 2010 |
| Total Posts: 2341 |
|
|
| 28 Oct 2015 01:15 PM |
ray.Size = Vector3.new(0.3, 0.3, distance)
Rather than use "distance" as the third argument replace with your size. |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2015 01:33 PM |
'Size cannot be assigned to'
I'm doing something wrong |
|
|
| Report Abuse |
|
|
yobo89
|
  |
| Joined: 05 Jun 2010 |
| Total Posts: 2341 |
|
|
| 28 Oct 2015 01:35 PM |
When you create your raycast part; what is it called?
|
|
|
| Report Abuse |
|
|
|
| 28 Oct 2015 01:41 PM |
| he isn't talking about the part |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2015 01:43 PM |
I don't think I've done that yet, this is all I got
local ray = Ray.new(Head.Position, (Head.CFrame.lookVector).unit*-Solid.Scale.Y*2) ray.Size = Vector3.new(0.3, 0.3, 0.3) |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2015 01:43 PM |
| You can't the diameter of rays. It's a ray. |
|
|
| Report Abuse |
|
|
Locard
|
  |
| Joined: 13 Apr 2014 |
| Total Posts: 3516 |
|
|
| 28 Oct 2015 01:44 PM |
Rays don't have a 'Size'. You can apply a magnitude to it to get a line segment though.
local r = Ray.new(Vector3.new(0,0,0),Vector3.new(0,1,0)*10)
That is a ray that's 10 studs in length. (kinda illogical since it is a ray, but bare with it). Yes that vector math is extremely easy, but it's for demonstration. |
|
|
| Report Abuse |
|
|