The view model gets in the way of the ray when I try to shoot the gun. I tried doing
RaycastParams.new().FilterDescendantsInstances = {Tool, workspace.Camera.viewModel:WaitForChild("viewModel")}
but I get "viewModel is not a valid member of Camera "Workspace.Camera"". How do I fix this?

1 comment
Well, is it in the Camera? If not, thats why its erroring