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

Recognize the left click. Any help?

Asked by 8 years ago

I am editing the turbo fusion script to make a really cool knife. Everything works awesomely so far :3 Now all I need if the activated knife to work when left clicked. Right now it works by pressing the "f" key. Is there a 'string.char()' number that I could use to recognize it?

Here is the line I am editing:

KnifeKey = "f";

that specific line is connected to the entire script to that when you press "f" it knifes.

There is another line that uses the shift to sprint. As an example of the string.char()

SprintKey = string.char(48);

1 answer

Log in to vote
-2
Answered by 8 years ago

Simply do Mouse.MouseClick or Mouse.Buton1Down. (I am in a rush, no time to test.)

Ad

Answer this question