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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: UIS version of mouse clicking

Previous Thread :: Next Thread 
TheCoderOfLua is not online. TheCoderOfLua
Joined: 12 Apr 2016
Total Posts: 1599
22 Apr 2016 07:03 PM
How to tell if the mouse clicked, I dont care where it clicked or anything, just if it clicked,

with User Input Service
Report Abuse
PureConcept is not online. PureConcept
Joined: 15 Feb 2014
Total Posts: 2838
22 Apr 2016 07:36 PM
Enum.UserInputType.MouseButton1
or something like that forgot


http://t7.rbxcdn.com/5be0c122f58c05a7094f5abc0fe5ceda
Report Abuse
Jackbuilder02 is not online. Jackbuilder02
Joined: 01 Mar 2012
Total Posts: 204
22 Apr 2016 07:37 PM
identify the mouse, then just make it a function
Mouse.Button1Down:connect(function()

end)


sweg
Report Abuse
TheCoderOfLua is not online. TheCoderOfLua
Joined: 12 Apr 2016
Total Posts: 1599
22 Apr 2016 07:40 PM
I said the UIS version.... I know that one already
Report Abuse
nickcool9999 is not online. nickcool9999
Joined: 04 Dec 2007
Total Posts: 1528
22 Apr 2016 07:48 PM
UIS = game:GetService("UserInputService")

UIS.InputBegan:connect(function(K)
local code = K.KeyCode.Name -- if ty is Keyboard, you could check code against letters to get input
local ty = K.UserInputType.Name

if ty == "MouseButton1" then
-- mouse button 1 down
end
end)
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