cant get raycast to work with tags

I have been trying and trying to get this for awhile now. I worked the first time and then I didn’t change anything and the next time I got on it didn’t work. So I fixed it again and then no it doesn’t work AGAIN. This is the line of code that is the problem

if (Physics.Raycast(transform.position, fwd, hit, RayLength) && hit.collider.tag == “FLEB”)

Raylength is an int set to 10

and

var hit : RaycastHit;

var fwd :Vector3 = transform.TransformDirection(Vector3.forward);

Please help me this is driving my crazy.

@uveritegames Well this code works fine for me, and it shows whether I hit anything in the scene view (be sure to change the tag name).

using UnityEngine;
using System.Collections;

public class RayCaster : MonoBehaviour {
	public int rayLength = 10;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		RaycastHit RaycastHitInfo;
		if (Physics.Raycast (transform.position, transform.forward, out RaycastHitInfo, rayLength) && RaycastHitInfo.collider.gameObject.CompareTag ("RaycastTagFilter")) {
			Debug.DrawRay (transform.position, transform.forward * rayLength, Color.green);
		} else {
			Debug.DrawRay(transform.position, transform.forward * rayLength, Color.red);
		}
	}
}

And here’s the UnityScript version.

#pragma strict

public var rayLength : int;
// Use this for initialization
function Start () {

}

// Update is called once per frame
function Update () {
	var RaycastHitInfo : RaycastHit;
	if (Physics.Raycast (transform.position, transform.forward, RaycastHitInfo, rayLength) && RaycastHitInfo.collider.gameObject.CompareTag ("RaycastTagFilter")) {
		Debug.DrawRay (transform.position, transform.forward * rayLength, Color.green);
	} else {
		Debug.DrawRay(transform.position, transform.forward * rayLength, Color.red);
	}
}