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: Help

Previous Thread :: Next Thread 
RobloxAssociated is not online. RobloxAssociated
Joined: 30 Oct 2011
Total Posts: 449
07 May 2014 05:42 PM
local Plr = game.Players.LocalPlayer
local Mouse = game.Players.LocalPlayer:GetMouse()
Mouse.KeyDown:connect(function(key)
local Key = key:lower()
if Key:byte()==48 then
Plr.Character.Humanoid.WalkSpeed = 25
end
end)

Mouse.KeyUp:connect(function(keyy)
local Keyy = keyy:lower()
if Keyy:byte()==48 then
Plr.Character.Humanoid.WalkSpeed = 16
end
end)

Does anyone know a way to know if the player isn't moving at all so its walkspeed doesn't change to 25?
A BoolValue or something to come up with some idea? I don't know
Report Abuse
HumanXerxes is not online. HumanXerxes
Joined: 17 Apr 2011
Total Posts: 1351
07 May 2014 05:45 PM
Humanoid Status?
Report Abuse
RobloxAssociated is not online. RobloxAssociated
Joined: 30 Oct 2011
Total Posts: 449
07 May 2014 05:47 PM
What do you mean by Humanoid Status?
Report Abuse
HumanXerxes is not online. HumanXerxes
Joined: 17 Apr 2011
Total Posts: 1351
07 May 2014 05:49 PM
repeat wait() until game.Players.LocalPlayer.Character

Running=false

game.Players.LocalPlayer.Character:WaitForChild("Humanoid").Running:connect(function(speed)
if speed > 0 then
Running=true
else
Running=false
end
end)

Try this, I guess.
Report Abuse
RobloxAssociated is not online. RobloxAssociated
Joined: 30 Oct 2011
Total Posts: 449
07 May 2014 05:50 PM
Right never mind i got it, thanks.
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