Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Hot Key Animation ?

Asked by 9 years ago

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.

2 answers

Log in to vote
0
Answered by 9 years ago

This will help : http://wiki.roblox.com/index.php?title=SpecialKey_(Enum)

0
woops wrong link Lol jillmiles1 3 — 9y
Ad
Log in to vote
-1
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
9 years ago

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

Answer this question