How do I find a Terrain Voxel's Position with Raycasting?

I wrote a simple script that cast a ray, when it hits the ray should print out the position of the hit part.

local YChecker = workspace.Test
local player = game.Players.LocalPlayer
local terrain = workspace.Terrain

local IgnoreList = {player.Character.Activator}
local Start = YChecker.Position
local Direction = YChecker.CFrame.LookVector * 500

local ray = Ray.new(Start, Direction)
local result = workspace:FindPartOnRayWithIgnoreList(ray, IgnoreList, true, true)

print(result)

local pos1 = YChecker.Position
local pos2 = result.Position

print(pos1)
print(terrain:WorldToCell(pos2)

when the ray came in contact with a terrain voxel the result was (0,0,0).
I tried to use :WorldToCell() but got the same result.

In this Picture you can see that the laser hit the terrain:
Screenshot_32

any Ideas?

I figured it out! Just change

local hitPart = workspace:FindPartOnRayWithIgnoreList(ray,ingoreTable)

to

local hitPart, hitPosition = workspace:FindPartOnRayWithIgnoreList(ray,ingoreTable)
print(hitPart, hitPosition)

FindPartOnRayWithIgnoreList is now a deprecated function, consider using the WorldRoot Raycast function