|
| 15 May 2016 04:03 PM |
I'm trying to make it so that when you click, a raycast will start from your tool and end directly in front of it.
this is what I have:
local ray = Ray.new(tool.Handle.CFrame.p, ((tool.Handle.CFame.P + 2) - tool.Handle.CFrame.p).unit * distance)
however, it gives me the error on this line:
14:56:04.033 - CFame is not a valid member of Part
Any suggestions? |
|
|
| Report Abuse |
|
|
|
| 15 May 2016 04:05 PM |
| You wrote CFame, it's CFrame, you left out the 'r' |
|
|
| Report Abuse |
|
|
| |
|
|
| 15 May 2016 04:35 PM |
| Alright, but the problem still persists, how do I make the raycast fire relative to the direction the tool is facing? |
|
|
| Report Abuse |
|
|
| |
|
Entelicon
|
  |
| Joined: 06 Nov 2012 |
| Total Posts: 1002 |
|
| |
|