Variable References

Hello, I am currently trying to use the native function _Get_Raycast_Result, but this function takes a reference to a variable as parameter, where it stores the result of the raycast. From what I have read online, there is no such thing as a reference in lua. Is there any way to get this function to work?