when I try to print out the Origin and Direction of the ray it errors out saying:
18:41:00.464 'Origin' is not a valid member of RaycastResult - Server - Script:4
wait(3) local rayResult = workspace:Raycast(Vector3.new(0,1,0), Vector3.new(0,0,100)) if rayResult then print(rayResult.Origin) print(rayResult.Direction) end
workspace:Raycast returns a RaycastResult value. You can find the properties of RaycastResult at developer.roblox.com/en-us/api-reference/datatype/RaycastResult