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

How do I make a martial arts script?

Asked by 9 years ago

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

Log in to vote
0
Answered by 9 years ago

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)
0
But wouldn't I need some sort of animation or something? 64batsalex 45 — 9y
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. TheTurretCore 20 — 9y
0
Okay thanks. 64batsalex 45 — 9y
0
Consider using UserInputService. http://wiki.roblox.com/index.php?title=API:Class/UserInputService instead. KeyDown event is deprecated. Redbullusa 1580 — 9y
0
I have no idea how to use that. I'm just a beginner. 64batsalex 45 — 9y
Ad

Answer this question