animator not being effected my script

Have you checked that the “Speed” parameter exists in the animator controller, has the proper type and is used by / assigned to the blend-tree?

PS: Please use code-tags when posting code: