How can I access variables from other scripts? c#

I have seen many other post about this but i just cannot seem to get it to work.
I’m trying to use unity’s HandHeldCam script as my main camera.
I have made the variables that i want to change in the HandHeldCam script to public, what i want to do is make it so that when the player has under a certain health the camera starts to sway slightly more.
I am able to do all the rest myself but i just cam seem to get the m_SwaySpeed over to my other script

namespace UnityStandardAssets.Cameras
{
    public class HandHeldCam : LookatTarget
    {
        public float m_SwaySpeed = .5f;
        public float m_BaseSwayAmount = .5f;

I need to access these variables from this script

public Camera Cam;
public float playerHealth;

	void Start () {
    playerHealth = 100;
    Cam = GetComponent<Camera>();
	}

Using things like public HandHeldCam Sway; don’t seem to work
If anyone can help that would be amazing.

try this Cam.GetComponent(Camera).m_SwaySpeed;
instead of this line Cam = GetComponent();

You can change variable with this for example;

 if (something) 
{
Cam.GetComponent<Camera>().m_SwaySpeed = 1f;
}

I was able to find the best way to get the script from the other gameobject.
Something that i realized that I completely forgot was to get the game object, public gameobject other;
This made it so that the script could be found. This was my mistake, but thanks for the help anyway.