|
| 16 Jan 2016 10:05 AM |
ok.. So I'm making a detection using raycasting where it will find the part in front of the brick.. but its only printing nil
local Direction = Vector3.FromNormalId(Enum.NormalId.Front) local CF = bomb.CFrame * CFrame.new(Direction) Direction = CF.p.unit local Ray = Ray.new(bomb.Position, Direction) local OHit, PHit = workspace:FindPartOnRay(Ray) print(OHit, PHit) |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 Jan 2016 10:15 AM |
| Is your vector/CFrame math accurate? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|