I need help understanding Movement control

Heres my script and from what I know about scripting it should work

function Update() {
     if (Input.GetButtonDown ("W")) {
     (transform.Translate(1, 0, 0));
     }
}

but it dosnt i was gonna add on to it and make it so the mouse look would drive it
and i could hit the “W” button to move forward so i could fly

can some one help me in what i am doing wrong i did what it told me to do below but it dosnt work

It looks like you’re creating a copy with Instantiate. Change it to just

function Update()
{
if (Input.GetButtonDown (“W”))
{
transform.Translate(0, 1, 0));
}
}