A shift - to - sprint function, like if you press shift with the tool equiped you have sprint with custon animation just put it as [exampleAnim]
local tool = script.Parent
tool.Equipped:connect(function(mouse)
mouse.KeyDown:connect(function(key)
if key == "q" then
print("Switching to next weapon")
elseif key == "e" then
print("Switching to previous weapon")
end
end)
end)

1 comment
For the shifts, the codes are 47(Right shift), and 48(Left shift). Or you can put key == "/"(Right), key == "0"(Left).