"Expecting ), found ';'" and "';' expected. Insert a semicolon at the end"

I am trying to make a pretty simple script where the player clicks on a wall and it disappears. I’m doing this by making a crumbling sound effect play and the wall object transform to 0, 0, 0, which is outside the game area so the player won’t see it. I don’t want to destroy the game object because I need it to return later. That’s another script and unrelated to the problem. The problem is no matter what I do, I get five or six error messages after I save, all saying either “BCE0044: expecting ), found ‘;’.”, or “UCE0001: ‘;’ expected. Insert a semicolon at the end.” I have pored over it looking for open brackets or missing semicolons and I can’t figure out what’s wrong. Here is the code:
#pragma strict
var beep : AudioClip;

function OnMouseUp(){
yield new WaitForSeconds(0.35);

@script RequireComponent(AudioSource)

What am I doing wrong in this?

You wrote
GameObject.transform…(upper case)

you needed

gameObject.transform… (lower-case)

So remove the the brackets you mentioned in comment2