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

How do I make an attack on keybind script?

Asked by 3 years ago

I want to make a keybind that allows the Local Player/Character to place their mouse upon another Character's Torso and cause them to go through an Animation, Change their Walk speed, and take damage at the same time. Of course this would make the Local Player/Character also go through an animation and the keybind would have to be held. How would I go about doing this?

1 answer

Log in to vote
0
Answered by 3 years ago

There is a lot to unpack there because your gonna need to have a lot of communication between client and server. You would need to find a way to detect a player's mouse on another player without using click detectors because as far as I know, that would not be a great idea. Then you would need to pass the information of the player clicked to a server script and execute the according to code to load/play and animation, and edit the plays health and walk speed. I would suggest looking into remote events if you have not already, as well as animations cause they are a whole other can of worms.

0
Now that, is alot to unpack lol. But I think I get the gyst of what you are talking about. aeco_ux 5 — 3y
Ad

Answer this question