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

1 comment
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.