|
| 11 Jul 2016 03:31 PM |
i want to make it so when you hold down the mouse button your weapon will autofire at a certain rate
should i just use InputEnded and InputBegan with UIS and set bool values to true/false, then check the bool value being changed?
or is there a better way
Add 13,000 posts |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 11 Jul 2016 04:00 PM |
tool.Activated:connect(function() firing = true while firing do --fire wait() end end)
tool.Deactivated:connect(function() firing = false end)
|
|
|
| Report Abuse |
|
|
|
| 11 Jul 2016 04:04 PM |
@Time
that's so much simpler and it works great
thanks lol
Add 13,000 posts |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 11 Jul 2016 04:05 PM |
i could of showed example with uis but i was too lazy
|
|
|
| Report Abuse |
|
|