|
| 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 |
|
|
|
| 19 Jun 2013 11:40 AM |
| Go here http://www.roblox.com/Forum/ShowPost.aspx?PostID=101171453 |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 19 Jun 2013 12:39 PM |
can you write for me the script plz? sorry i just newbie |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 19 Jun 2013 01:19 PM |
| for some reason it wont work:( |
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|
| |
|
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 |
|
|
| |
|
| |
|
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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 21 Jul 2013 03:44 AM |
Oops: Reloading = true H.WalkSpeed = 16 Delay(DelayTime,function() Reloading = false end) |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
| |
|