Deactivate an object - and all scripts in that object deactivated?

When you deactivate a gameobject, do all scripts in that object become deactivated, too? What if a script in the deactivated object is referenced in another object?

They are deactivated, yes, in the sense that OnDisable() is called, and Update() is not called each frame. They still exist, though. So if a script was referenced in another object, it’s still referenced.