Why do i have to type the command 2 times to make the animation works ?
The animation libraries have to be pre-loaded. Either apply them twice, or apply the 'NULL' animation for every library (or at least the ones you use). Note that pre-loading all libraries at once for a player will freeze them for about 5-10 seconds. Perhaps load them on a timer.