Robbery Script Animation HELP ME
 
	
		
			
				I want to put in a robbery script for an animation for 4-5 seconds, but I do not know how and where to fit it. If someone came to this, he could help. I tried 2-3 things, but none of them worked. Here is my  scrip,too, who would like to fit the appropriate script and write it to me, thank you very much!
			 
			
				Script:
			 
			
				 function createRob()     Marker = createMarker ( 1788.9731445313,-1123.0570068359,23.5, "cylinder", 1, 255, 0, 0, 5 )     setElementCollisionsEnabled( Marker, false )     bl = createBlipAttachedTo(Marker,45)     outputChatBox( "", root, 0, 255, 0 ) end addEventHandler("onResourceStart", resourceRoot,createRob)   addEventHandler("onMarkerLeave",root, function ( player )     if ( source ~= Marker ) then         return     end     if ( isPedInVehicle( player ) ) then         return     end         destroyElement( Marker )         destroyElement( bl )         randomMoney = math.random ( 22000, 22000 )         randomWanted = math.random ( 5, 5 )         givePlayerMoney(player,randomMoney)         setPlayerWantedLevel ( player, randomWanted )         robPlayer = getPlayerName(player)         outputChatBox("",root,0,255,0,true)         setTimer( createRob, 600000, 1 )     end )