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 » Scripting Helpers
Home Search
 

Re: Does anyone know any good tutorials for this?

Previous Thread :: Next Thread 
Americium242 is not online. Americium242
Joined: 22 Oct 2010
Total Posts: 275
28 Sep 2011 08:11 AM
'Button1down' functions or however for use in tools, is there any tutorials for them?
Report Abuse
Wehttam664 is not online. Wehttam664
Joined: 02 Oct 2009
Total Posts: 767
28 Sep 2011 09:22 AM
Not entieley sure, but I think the call is MouseButton1Down.
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
28 Sep 2011 09:48 AM
MouseButton1Down is the left-click event for GUI Buttons.

Tool:

script.Parent.Equipped:connect(function(m)
m.Button1Down:connect(function()
--[[do something]]
end)
m.Button2Down:connect(function()
--[[do something for this right mouse-click]]
end)
m.KeyDown:connect(function(key)
if key == "keyletter" then
--[[Do something]]
elseif key == "keyletter2" then
--[[Do something]]
end
end)
end)

Hopperbin:

script.Parent.Selected:connect(function(m)
m.Button1Down:connect(function()
--[[do something]]
end)
m.Button2Down:connect(function()
--[[do something for this right mouse-click]]
end)
m.KeyDown:connect(function(key)
if key == "keyletter" then
--[[Do something]]
elseif key == "keyletter2" then
--[[Do something]]
end
end)
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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