Button1Down (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
Example added
>Camoy
Example added
(No difference)

Revision as of 13:29, 29 August 2010

Button1Down ( )
Description Fired when the mouse is in the left mouse down state.
Member of: [[RBX.lua.Mouse (Object)|Mouse]]
Example
--a script inside of a HopperBin
local bin = script.Parent 
local function hSelect(m)
  local function bdown()
    print("Button1Down")
  end
  m.Button1Down:connect(bdown) --connection
end
bin.Selected:connect(hSelect)