|
| 11 Dec 2013 06:21 PM |
| I have no Idea how to use one and I want to put it into a tool. I just need to know how to use one help? |
|
|
| Report Abuse |
|
|
noah
|
  |
| Joined: 11 Sep 2006 |
| Total Posts: 18977 |
|
|
| 11 Dec 2013 06:23 PM |
KeyDown event*
http://wiki.roblox.com/index.php/KeyDown |
|
|
| Report Abuse |
|
|
|
| 11 Dec 2013 06:34 PM |
local function onKeyDown( key ) if key=='f' then Instance.new('Part',game.Workspace).Name='Test' end mouse.KeyDown:connect(onKeyDown) --How would I define mouse? |
|
|
| Report Abuse |
|
|
LordBH
|
  |
| Joined: 14 Apr 2011 |
| Total Posts: 108 |
|
|
| 11 Dec 2013 06:35 PM |
Mouse is Button1Down... KeyDown is (a,s,f,g,hokasodasodlaosdk anything from a to z
for gui's it's different btw |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 11 Dec 2013 06:36 PM |
tool.Equipped:connect(function(mouse) mouse.KeyDown:connect(onKeyDown) end) |
|
|
| Report Abuse |
|
|
|
| 11 Dec 2013 06:59 PM |
--If the player clicks this would it make 10 parts? script.Parent.Selected:connect(function(mouse) mouse.Button1Down:connect(function(click) for i = 1, 10, 1 do local part = Instance.new('Part',game.Workspace) part.Name='Part' part.Size=Vector3.new(1.2, 0.2, 0.2) wait(.2) end end) end) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 11 Dec 2013 07:13 PM |
btw, if u had a local script, u could define mouse like this
player = game.Players.LocalPlayer mouse = player:GetMouse() mouse.KeyDown:connect(function(key) if key == "t" then player:Kick() end end)
there :D |
|
|
| Report Abuse |
|
|