|
| 22 Nov 2012 07:00 PM |
start = Vector3.new(0,0,0) lootAt = Vector3.new(0,0,10) ray = Ray.new(start, (lookAt-start).unit) hit = game.Workspace:FindPartOnRay(ray,nil) if hit then print("Part") else print("Nil") end
It's simple, but I get this output:
19:58:58.835 - Workspace.Script:3: bad argument #1 to '?' (Vector3 expected, got nil) 19:58:58.842 - Script "Workspace.Script", Line 3 19:58:58.842 - stack end
There's nothing nil... I just copied the example(somewhat) on the Wiki.
Want a script? Send me a PM and we'll work out a deal! |
|
|
| Report Abuse |
|
|
| 22 Nov 2012 07:01 PM |
Never mind... Spelling error.
Want a script? Send me a PM and we'll work out a deal! |
|
|
| Report Abuse |
|