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: This is correct for keyDown, right?

Previous Thread :: Next Thread 
Tranhead is not online. Tranhead
Joined: 02 Apr 2008
Total Posts: 4217
31 Jul 2010 07:02 PM
function keyDown(key)

if (key == "t") then
--what will happen
end



end

function onButton1Down(mouse)
Report Abuse
massivematt1998 is not online. massivematt1998
Joined: 04 Mar 2009
Total Posts: 1977
31 Jul 2010 07:03 PM
function keyDown(key)

if (key == "s") then

end


end

function onButton1Down(mouse)


Use WASD. S is Down.
Report Abuse
TheDigDug is not online. TheDigDug
Joined: 23 Nov 2009
Total Posts: 156
31 Jul 2010 07:06 PM
using aswd is not necessary
Report Abuse
Tranhead is not online. Tranhead
Joined: 02 Apr 2008
Total Posts: 4217
31 Jul 2010 07:19 PM
So I was right?

:D
Report Abuse
Tranhead is not online. Tranhead
Joined: 02 Apr 2008
Total Posts: 4217
31 Jul 2010 07:27 PM
This would work with a hopperbin right?
Report Abuse
evilnoob500 is not online. evilnoob500
Joined: 21 Jan 2009
Total Posts: 6016
31 Jul 2010 07:30 PM
yes.. but rember to fix your conenction line!
Report Abuse
Scriptec is not online. Scriptec
Joined: 16 Feb 2010
Total Posts: 1492
31 Jul 2010 07:32 PM
function keydown(key,mouse)
if key == "w" then
print(mouse.Target.Name)
end
end

function click(mouse)
print(mouse.Target.Name)
end

function sel(mouse)
mouse.KeyDown:connect(function(key) keydown(key,mouse) end)
mouse.Button1Down:connect(function() click(mouse) end)
end

script.Parent.Selected:connect(sel)
--
I just writ this on my ipod.
My hand aches.
Report Abuse
Tranhead is not online. Tranhead
Joined: 02 Apr 2008
Total Posts: 4217
31 Jul 2010 07:54 PM
Thanks scriptec
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