Scyber
|
  |
| Joined: 21 Jun 2011 |
| Total Posts: 350 |
|
|
| 22 Jul 2015 12:56 PM |
It will not print Moving when I move my mouse. Am I doing this wrong?
Service.InputBegan:connect(function(Input) if Input.UserInputType == Enum.UserInputType.MouseMovement then print("Moving") end end) |
|
|
| Report Abuse |
|
|
fret13103
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 881 |
|
|
| 22 Jul 2015 01:01 PM |
| InputBegan takes two arguments |
|
|
| Report Abuse |
|
|
fret13103
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 881 |
|
|
| 22 Jul 2015 01:02 PM |
I'm just guessing though, I've never used 'UIS'.
http://wiki.roblox.com/?title=API:Class/UserInputService |
|
|
| Report Abuse |
|
|
cgjnm
|
  |
| Joined: 22 Dec 2011 |
| Total Posts: 2347 |
|
|
| 22 Jul 2015 01:03 PM |
Service.InputBegan:connect(function(Input,GPE)
--the 'Input' part is where you see what the 'input' was and 'GPE' checks if the player is typing |
|
|
| Report Abuse |
|
|
Scyber
|
  |
| Joined: 21 Jun 2011 |
| Total Posts: 350 |
|
|
| 22 Jul 2015 01:06 PM |
| I'm aware that it takes two arguments. Nothing happened |
|
|
| Report Abuse |
|
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
|
| 22 Jul 2015 01:17 PM |
lol that's not your problem(inb4 someone ninjad, im talking about the argument thing)
the thing is InputBegan doesn't fire when mouse is MOVED
idk is there a way with uis but ogood old mouse.Move works fine |
|
|
| Report Abuse |
|
|
Scyber
|
  |
| Joined: 21 Jun 2011 |
| Total Posts: 350 |
|
|
| 22 Jul 2015 01:18 PM |
| This is why I prefer Mouse over UserInputService. No confusion. |
|
|
| Report Abuse |
|
|