Deactivate Script

Hi... so... I'm trying deactivate a script with "GameObject.GetComponet("script").active = false;" in C# but this deactivate also the GameObject... why the GameObject is deactivate and how can I to make to deactivate the script???

thanks!

Ricky Stefani

Get the script component (GetComponent) and set enabled = false;