How to make a animation run on hot keys? Here is the script I tried using, it didn't work:
function KeyPressed(Key) if Key == b then bow = hum:LoadAnimation(script.Parent.Bow) bow:Play() end end function KeyUnpressed(Key) if Key == b then end end
Thank you for reading.
This will help : http://wiki.roblox.com/index.php?title=SpecialKey_(Enum)
Well I hope that's not the whole script because it neglects to define the variable 'hum', and have a connection statement for either of those events. Also theres no need for the KeyUp event in the first place.
-Goulstem