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

How do I use other keys other than MouseButton1Down?

Asked by 10 years ago

Is there a way I can do the same with the top arrow or the W key. I am importing a animation and I only want it to work when they are holding down the W or top arrow key.

local animTrack = Humanoid:LoadAnimation(animation)
animTrack:Play()

2 answers

Log in to vote
0
Answered by
Qxest 25
10 years ago

This might be a better way to explain it.

Ad
Log in to vote
0
Answered by 10 years ago

And this page/article extends on the KeyDown event. http://wiki.roblox.com/index.php/Taking_keyboard_input Could you explain where your script is, though? I'm trying to figure it out but I can only get it if it's in a tool.

Answer this question