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
 

Key down function

Previous Thread :: Next Thread 
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
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 is not online. 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
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
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 is not online. 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 is not online. 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
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
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
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
11 Dec 2013 07:03 PM
(Its in a hopperbin btw)
Report Abuse
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
11 Dec 2013 07:08 PM
Please Help
Report Abuse
KEVEKEV77 is not online. 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
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