|
|
| 13 Aug 2016 02:39 PM
|
So... I'm trying to write a script for a game. It's not really what I want it to be yet, but it is what it's going to turn into.
Anyway, in this script, I need the player to do an action when he presses "x" on the keyboard. That part I have down. However, I also need the player to do an action if he moves his mouse while pressing "x." Is there a way I can detect that? (I am pretty sure there isn't, so I'm asking this question to make sure.)
If you need me to elaborate, feel free to ask me.
|
|
|
|
|
|
|
Report
Abuse
|
|
|
|
|
|
|
| 13 Aug 2016 03:02 PM
|
you can try something like this:
if mouse.Move:fire() then
print('Mouse has moved') end
|
|
|
|
|
|
|
Report
Abuse
|
|