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: Is it possible to use keydown without using a tool?

Previous Thread :: Next Thread 
Ultraw is not online. 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 is not online. 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
DragonODeath is not online. DragonODeath
Joined: 02 May 2011
Total Posts: 1252
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 is not online. 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 is not online. Ultraw
Joined: 20 Nov 2010
Total Posts: 6575
30 Aug 2013 02:18 AM
thanks btw
Report Abuse
YEGGOR is not online. YEGGOR
Joined: 02 Apr 2013
Total Posts: 1150
30 Aug 2013 02:34 AM
np bra
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