How does the ‘depth’ property work in ScreenPointToRay?
local function OnRenderStepped()
local MousePosition2D = UserInputService:GetMouseLocation()
local MouseRay3D = Camera:ScreenPointToRay(MousePosition2D.X, MousePosition2D.Y, 1)
end
RunService.RenderStepped:Connect(OnRenderStepped)