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

How would you make an animation play on key?

Asked by 9 years ago

So, I've recently been playing around with an event, where if you press a key such as "a", "b", etc... It'll do something, and I'm wondering how you'd make it play an animation on keydown.

Here's the script.

Script:

function onKeyDown(key)
    if (key~=nil) then
        key = key:lower()
-- What's in here to make it play an animation?
        if (key=="f")  then

            end

    end
end
0
So, this script isn't to be played while holding a tool, What I'm wondering is how it's to be played just openly just whenever you press the button, if you aren't holding a tool it'll play. I'm wondering how to make it so it's usable without tools to everyone. TheReapersComing 0 — 9y

Answer this question