|
| 01 Apr 2012 12:04 PM |
local start = game.Workspace.Part1.Position local lookAt = game.Workspace.Part2.Position local ray = Ray.new(start,lookAt.unit)
print(Ray.Direction) print(Ray.Origin)
When I execute the script both prints come up as "nil". Any help on how to raycast? |
|
|
| Report Abuse |
|
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
|
| 01 Apr 2012 12:06 PM |
| You need to lowercase "Ray" in the print functions. Also, multiply a distance number to your unit vector, or else it won't go anywhere. |
|
|
| Report Abuse |
|
|
| |
|