Add more conditions..
for example
give the player a boolean variable IsHoldingGun
If the player is holding the gun set the boolean variable to true
else set the boolean variable to false
on a pressed
--player variable IsHoldingGun is true
player play animation Player(gun)run
-- else
player play animation Playerrun
There are many more ways, but this is the most straightforward