Water Scripting C# cant get other script variables

I have looked up videos for unity 5 on swimming and all of them were for unity 4 and I cant seem to figure out how to make the script I am making to change variables in another script.
im using the Unity “PlayerController” and i want to get the script “First Person Controller”

so what i have is

FirstPersonController fpc;

so that i can call the FirstPersonController in the script by simply typing fpc.

There’s only a few differences between Unity 4 and Unity 5 scripts. Primarily the shortcuts on Components for ‘rigidbody’ and ‘animation’ don’t exist anymore, requiring you to call GetComponent.

So the tutorial shouldn’t be that big of a deal.

If you need to get a reference to another component. You call ‘GetComponent’ for that component on the GameObject that it’s attached to. Or you could just set the field through the inspector.

I don’t know specifically with your use case since I don’t know what tutorial you’re using or what ‘PlayerController’ and ‘First Person Controller’ is. Those names are so generic, and are not built in classes in unity… they could really be anything.