Ultraw
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 6575 |
|
|
| 30 Aug 2013 02:12 AM |
I read the wiki and it came that you select a tool, it finds the mouse and uses the mouse to use mouse.Keydown:connect(function(key) Is there any way to do this without the tool? |
|
|
| Report Abuse |
|
|
YEGGOR
|
  |
| Joined: 02 Apr 2013 |
| Total Posts: 1150 |
|
|
| 30 Aug 2013 02:13 AM |
LOCALSCRIPT IN STARTERPACK:
while game.Players.LocalPlayer == nil do wait() end
player = game.Players.LocalPlayer mouse = player:GetMouse()
-- code hear |
|
|
| Report Abuse |
|
|
|
| 30 Aug 2013 02:16 AM |
^^Dat guy ninja'd me. Oh look my Studio is finally, finally on. What YEGGOR said is correct. And so player:GetMouse().KeyDown:connect(function() will work. |
|
|
| Report Abuse |
|
|
Ultraw
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 6575 |
|
|
| 30 Aug 2013 02:17 AM |
Figured it out before i read this lol.
Its in a gui, so i did
player = script.Parent.Parent.Parent.Parent mouse = player:GetMouse() |
|
|
| Report Abuse |
|
|
Ultraw
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 6575 |
|
| |
|
YEGGOR
|
  |
| Joined: 02 Apr 2013 |
| Total Posts: 1150 |
|
| |
|