edenojack
|
  |
| Joined: 18 Jul 2008 |
| Total Posts: 989 |
|
|
| 23 Apr 2013 12:45 PM |
I am using the code; script.Parent.Aim.Changed or script.Parent.clicker.Changed:connect(fire)
I know its not a good line, but I am unsure as to how else I can do this. I am trying to call on a function that can be called if Aim or clicker Changes, but by making them each individually call fire, I use the same function twice, which I don't want.
Any help? |
|
|
| Report Abuse |
|
|
MrChubbs
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
|
| 23 Apr 2013 12:52 PM |
script.Parent.Aim.Changed:connect(fire) script.Parent.clicker.Changed:connect(fire)
|
|
|
| Report Abuse |
|
|
|
| 23 Apr 2013 12:54 PM |
| call each individually and add a debounce to your code. |
|
|
| Report Abuse |
|
|
KeyUp
|
  |
| Joined: 17 Mar 2013 |
| Total Posts: 457 |
|
| |
|
edenojack
|
  |
| Joined: 18 Jul 2008 |
| Total Posts: 989 |
|
|
| 23 Apr 2013 01:11 PM |
The aim will change to the mouse.Hit.p Vector, and the clicker will go between true and false when the mouse is clicked.
Sometimes aim will be the same value, but the player will still click.
|
|
|
| Report Abuse |
|
|
edenojack
|
  |
| Joined: 18 Jul 2008 |
| Total Posts: 989 |
|
|
| 23 Apr 2013 01:13 PM |
| * and click will not always change, as the mouse can be held down. |
|
|
| Report Abuse |
|
|