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 » Scripters
Home Search
 

Re: Key down functions.

Previous Thread :: Next Thread 
TheCoolBob is not online. TheCoolBob
Joined: 10 Jul 2010
Total Posts: 459
26 Feb 2015 05:57 PM
So I can't find script helpers anywhere, so sorry but I guess I will just use this.

Anyways, I was wondering if it is possible to use key functions out of a GUI without selecting a tool. Is this possible? And if so how? Thanks.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
26 Feb 2015 06:01 PM
UserInputService or GetMouse.
Report Abuse
TheCoolBob is not online. TheCoolBob
Joined: 10 Jul 2010
Total Posts: 459
26 Feb 2015 06:05 PM
function okKeyDown(key)
if key == q then

end
end

If I could just get some help from this point, I could handle the rest. I don't know much about the get service stuff. Thanks.
Report Abuse
HellsteinInnovation is not online. HellsteinInnovation
Joined: 22 Dec 2014
Total Posts: 127
26 Feb 2015 06:07 PM
games.Player.PlayerAdded:connect(function(plr)
mouse = plr:GetMouse()
mouse.KeyDown:connect(function(key)
if key == "q" then
--do this
end
end)
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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