12packkid
|
  |
| Joined: 24 Jun 2011 |
| Total Posts: 1418 |
|
|
| 11 Apr 2013 12:36 PM |
function loadingTool() to=Instance.new('HopperBin',game.Players[Player].Backpack) to.Name="Ghostfield" to.Selected:connect(function() to.KeyDown:connect(function(key) if key=='q' then to.Name="Kill" x=Player:GetMouse() x.Button1Down:connect(function() if x.Target then x:BreakJoints() end end) end if key=='k' then to.Name='Kick' l=Player:GetMouse() l.Button1Down:connect(function() if l.Target then h=l.Target:GetPlayerFromCharacter() h:Destroy() end end) end end) end) to.Deselected:connect(function() game.Players.Player:BreakJoints() end) end loadingTool()
--No output. |
|
|
| Report Abuse |
|
|
| 11 Apr 2013 01:00 PM |
| KeyDown isn't an event of the Tool, it is an event of the mouse. The Selected event gives you the mouse. |
|
|
| Report Abuse |
|