generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: UserInputService

Previous Thread :: Next Thread 
Scyber is not online. 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 is not online. fret13103
Joined: 15 Mar 2010
Total Posts: 881
22 Jul 2015 01:01 PM
InputBegan takes two arguments
Report Abuse
fret13103 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image