detach and attack scripts

i have 2 separate shooting scripts for my player how can i create a script that detaches the shooting script the player starts with and then attaches a new script to the player???

Try this

Destroy(gameObject.GetComponent("ScriptToRemove"));
gameObject.AddComponent("ScriptToAdd");