I'm trying to make this game about a show called Buffy the vampire slayer, and I'm a beginner scripter and I'm trying to make a script that when pressing different keys on you're keyboard makes you do different fighting moves, but I have no Idea how to start it. What would I have to do?
COMMUNITY QUESTION
How do I make a martial arts script?
1 answer
You would use a script like this:
mouse = game.Players.LocalPlayer:GetMouse()
function keyDown(key)
key = key:lower()
if key == "(key here)" then
--What you want it to do
end
end
mouse.KeyDown:connect(keyDown)
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
But wouldn't I need some sort of animation or something?
Well, you would need to add what the animation is going to be. I can't help you there, but that is a basic keydown script to tell the game when the player is pressing a key.
Okay thanks.
Consider using UserInputService. http://wiki.roblox.com/index.php?title=API:Class/UserInputService instead. KeyDown event is deprecated.
I have no idea how to use that. I'm just a beginner.