How to get a Spotlight on the road?

Hi ! I’m making a game with the basic environment like that of a racing game. The view of the gamer is on the road itself. Now I want to implement a spotlight in the game which specifies the spotlight of the bike and it attached to the camera. So I want a spotlight on the ground upto a certain distance.
I tried the Spotlight function but it doesn’t work.
Does any one have a solution for this??

Scritp issues would be a better forum for this.

Have you made sure you have used the setLight() function as described here?