You can use the Tutorial or just follow the instructions below...
The mouse x is under Sensing...
first add/make a new variable...
name it 'score'...