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: shift run

Previous Thread :: Next Thread 
pinkiller is not online. pinkiller
Joined: 21 Jan 2012
Total Posts: 6
19 Jun 2013 11:16 AM
hello can anyone help me with a script
i want to do when you hold shift it will speed you up
can anyone help?
sry for bad english
Report Abuse
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
19 Jun 2013 11:40 AM
Go here http://www.roblox.com/Forum/ShowPost.aspx?PostID=101171453
Report Abuse
ArbiterOfDeath is not online. ArbiterOfDeath
Joined: 20 Jun 2011
Total Posts: 1458
19 Jun 2013 12:03 PM
Use the player:GetMouse() method to see keypress events... when shift is press the keydown even fires with a 0. If it is down, then increase the character's humanoid's runspeed.
Report Abuse
pinkiller is not online. pinkiller
Joined: 21 Jan 2012
Total Posts: 6
19 Jun 2013 12:39 PM
can you write for me the script plz?
sorry i just newbie
Report Abuse
btft is not online. btft
Joined: 19 Feb 2011
Total Posts: 1512
19 Jun 2013 12:56 PM
--Local Script.

local m = game:service'Players'.LocalPlayer:GetMouse()
m.KeyDown:connect(function(k)
if k:byte() == 48 then --left shift key
game:service'Players'.LocalPlayer.Character.Humanoid.Walkspeed = 50
end
end)
Report Abuse
pinkiller is not online. pinkiller
Joined: 21 Jan 2012
Total Posts: 6
19 Jun 2013 01:19 PM
for some reason it wont work:(
Report Abuse
btft is not online. btft
Joined: 19 Feb 2011
Total Posts: 1512
19 Jun 2013 01:20 PM
game:service'Players'.LocalPlayer.Character.Humanoid.WalkSpeed = 50
change that
Report Abuse
pinkiller is not online. pinkiller
Joined: 21 Jan 2012
Total Posts: 6
20 Jun 2013 05:51 AM
dont work :(
Report Abuse
markrasher is not online. markrasher
Joined: 06 Sep 2011
Total Posts: 23
20 Jun 2013 12:13 PM
i need help with it too
Report Abuse
1waffle1 is not online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
20 Jun 2013 12:15 PM
It does work, you just don't understand how to run it.
Report Abuse
markrasher is not online. markrasher
Joined: 06 Sep 2011
Total Posts: 23
20 Jun 2013 12:26 PM
how?
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
20 Jun 2013 12:28 PM
[ Content Deleted ]
Report Abuse
Preston99 is not online. Preston99
Joined: 21 Sep 2008
Total Posts: 247
20 Jun 2013 12:51 PM
If you want a successful game, you should atleast know a miniscule speck of lua.

He told you to put it in a local script, and told you what to change. I'm sure you didn't do it.
Report Abuse
markrasher is not online. markrasher
Joined: 06 Sep 2011
Total Posts: 23
21 Jul 2013 02:46 AM
so what to do?
Report Abuse
indyracoon is not online. indyracoon
Joined: 12 Sep 2009
Total Posts: 6666
21 Jul 2013 03:20 AM
That's a cool script.
I'm gonna make a limited run time to go with it c:
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
21 Jul 2013 03:42 AM
:D ????


wait(1/30)
local MaxSprintTime = 7
local SprintSpeed = 25
local DelayTime =7
local H = Game:GetService("Players").LocalPlayer.Character.Humanoid
local Current = 0
local M =Game:GetService("Players").LocalPlayer:GetMouse()
local Holding = false
M.KeyDown:connect(function(key)
if not Reloaded then return end.
if key:byte() == 48 do
Holding = true
while Holding and wait(1) and Reloaded do
H.WalkSpeed = SprintSpeed
Current = Current + 1
if Current == MaxSprintTime then Reloading = true
Delay(DelayTime,function() Reloading = false end) break
end
end
end)
M.KeyUp:connect(function(p)
if p:byte() == 48 then
Holding = false
end
end)
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
21 Jul 2013 03:44 AM
Oops:
Reloading = true
H.WalkSpeed = 16
Delay(DelayTime,function() Reloading = false end)
Report Abuse
swmaniac is not online. swmaniac
Joined: 28 Jun 2008
Total Posts: 15773
21 Jul 2013 05:47 AM
http://www.roblox.com/Shift-Run-item?id=123442225
Report Abuse
swmaniac is not online. swmaniac
Joined: 28 Jun 2008
Total Posts: 15773
21 Jul 2013 05:49 AM
Roblox is giving me errors when I try to make the other one free, so here.

http://www.roblox.com/Shift-Run-Free-item?id=123442317
Report Abuse
markrasher is not online. markrasher
Joined: 06 Sep 2011
Total Posts: 23
27 Oct 2013 11:52 AM
where to put it?
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