Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make a martial arts script?

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?

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)

5 comments

0

But wouldn't I need some sort of animation or something?

0

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.

0

Okay thanks.

0

Consider using UserInputService. http://wiki.roblox.com/index.php?title=API:Class/UserInputService instead. KeyDown event is deprecated.

0

I have no idea how to use that. I'm just a beginner.

This discussion is preserved as it was. New answers, comments, and votes are closed.