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 wont work.

Previous Thread :: Next Thread 
FlameYeti is not online. FlameYeti
Joined: 14 Jan 2009
Total Posts: 22158
27 Oct 2014 08:17 PM
newspeed = 30
oldspeed = 16
player = game.Players.LocalPlayer
mouse = player:GetMouse()


mouse.KeyDown:connect(function(key)
if key == "q" then --Would "if key == "shift" then" work?
player.WalkSpeed = newspeed
wait(5)
player.WalkSpeed = oldspeed
end
end)
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
27 Oct 2014 08:18 PM
You'll have to use the key:byte()
As it stands, I don't know the byte code for the shift key
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
27 Oct 2014 08:19 PM
if key == "0" then

end

-- I think that's it


LUA - Losers Use Acronyms - I'm fairly certain that's not a coding language.
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
27 Oct 2014 08:19 PM
player.Character.Humanoid.WalkSpeed *
Report Abuse
FlameYeti is not online. FlameYeti
Joined: 14 Jan 2009
Total Posts: 22158
27 Oct 2014 08:22 PM
wrong @ rofl
Report Abuse
FlameYeti is not online. FlameYeti
Joined: 14 Jan 2009
Total Posts: 22158
27 Oct 2014 08:27 PM
bump
Report Abuse
Aesthetical is not online. Aesthetical
Joined: 01 Jan 2014
Total Posts: 2141
27 Oct 2014 08:28 PM
if key:lower() == "q" then
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
27 Oct 2014 08:31 PM
player.Character.Humanoid.Walkspeed


LUA - Losers Use Acronyms - I'm fairly certain that's not a coding language.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
27 Oct 2014 08:31 PM
player.Character.Humanoid.WalkSpeed

--I forgot to capitalize S in WalkSpeed


LUA - Losers Use Acronyms - I'm fairly certain that's not a coding language.
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