Camera troubles

How do i tell my camera to not go through walls or the floor when i move my player using the smooth follow script?

Your best bet GameDevDave is to use the Physics class.

Would require you rewrite SmoothFollow to use physics, not transform.