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: Keydown help

Previous Thread :: Next Thread 
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
28 Dec 2011 07:36 PM
I'm new to tools :D

Why won't this work?

wait()
script.Parent.Equipped:connect(function(mouse)
mouse.KeyDown:connect(function(key)
if key:lower() == "j" then
game.Players.LocalPlayer.Character.Humanoid.Seated:connect(function(sit)
end)
end
end)
end)

If Player types "j" they sit. Help?
Report Abuse
FlappydavidINC is not online. FlappydavidINC
Joined: 20 May 2011
Total Posts: 694
28 Dec 2011 07:43 PM
script.Parent.Equipped:connect(function(mouse)
mouse.KeyButton1Down:connect(function(key)
key:lower()
if key == "j" then
script.Parent.Parent.Humanoid.Sit = true
end
end)
end)
Report Abuse
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
28 Dec 2011 07:43 PM
Game.Players.LocalPlayer.Character.Humanoid.Sit = true
Report Abuse
FlappydavidINC is not online. FlappydavidINC
Joined: 20 May 2011
Total Posts: 694
28 Dec 2011 07:44 PM
Beat you to it, RATE. XD =3.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
28 Dec 2011 07:45 PM
Worked but if that's how you do it what's the point of the seated event?
Report Abuse
pauljkl is not online. pauljkl
Joined: 23 Oct 2008
Total Posts: 9364
28 Dec 2011 07:47 PM
Seated event fires when a player sits
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
28 Dec 2011 09:04 PM
Yeah, I sit...Once again, why?
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
28 Dec 2011 09:08 PM
Events are for when something HAPPENS. Methods are to DO something.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
28 Dec 2011 09:16 PM
Oh ok :P
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