22ron
|
  |
| Joined: 17 Jun 2012 |
| Total Posts: 279 |
|
|
| 28 Aug 2014 05:17 PM |
How do I tell if a player has clicked the left mouse button. Not on a GUI not on a part with a click detector just when its click I already this:
local player = game.Players.LocalPlayer local mouse = player:GetMouse()
now that I have the mouse how do I tell if you click? |
|
|
| Report Abuse |
|
|
|
| 28 Aug 2014 05:20 PM |
The Button1Down event http://wiki.roblox.com/index.php?title=API:Class/Mouse/Button1Down
-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::] |
|
|
| Report Abuse |
|
|
Vescatur
|
  |
| Joined: 18 Feb 2012 |
| Total Posts: 3426 |
|
|
| 28 Aug 2014 05:45 PM |
local player = game.Players.LocalPlayer local mouse = player:GetMouse()
mouse.Button1Down:connect(function() --code end) |
|
|
| Report Abuse |
|
|