thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
|
| 18 Jan 2014 07:46 AM |
| It works, however when I unequipe and re-equippe, it takes my walkspeed SUPER slow! |
|
|
| Report Abuse |
|
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
|
| 18 Jan 2014 07:47 AM |
Script is local player = game.Players.LocalPlayer function onequipped() if player.Character.Humanoid.WalkSpeed >= 16 then player.Character.Humanoid.WalkSpeed = 100 for i = 1, 20 do wait(1) player.Character.Humanoid.WalkSpeed = player.Character.Humanoid.WalkSpeed -1 if player.Character.Humanoid.WalkSpeed >= 16 then player.Character.Humanoid.WalkSpeed = 100 end end end end script.Parent.Parent.Equipped:connect(onequipped)
function notequpped() player.Character.Humanoid.WalkSpeed = 16 end script.Parent.Parent.Unequipped:connect(notequpped) |
|
|
| Report Abuse |
|
|
NiceCoder
|
  |
| Joined: 15 Oct 2012 |
| Total Posts: 6593 |
|
|
| 18 Jan 2014 07:48 AM |
"player.Character.Humanoid.WalkSpeed = player.Character.Humanoid.WalkSpeed -1"
|
|
|
| Report Abuse |
|
|
Kingmouli
|
  |
| Joined: 28 Sep 2012 |
| Total Posts: 1292 |
|
|
| 18 Jan 2014 07:53 AM |
| Why >=, why not just == or <= |
|
|
| Report Abuse |
|
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
|
| 18 Jan 2014 08:17 AM |
| Because what I wrote is alot more efficient, obviously. |
|
|
| Report Abuse |
|
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
| |
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
|
| 18 Jan 2014 09:06 AM |
What answer is that exactly?
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
Kingmouli
|
  |
| Joined: 28 Sep 2012 |
| Total Posts: 1292 |
|
|
| 18 Jan 2014 09:08 AM |
if player.Character.Humanoid.WalkSpeed >= 16 then player.Character.Humanoid.WalkSpeed = 100
His WalkSpeed will always be 100 because 100 > 16. That's why I told you, do you REALLY have to use >= |
|
|
| Report Abuse |
|
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
|
| 18 Jan 2014 03:18 PM |
It becomes slower is what the issue is though.
Follow me on twitter: https://twitter.com/thetacah |
|
|
| Report Abuse |
|
|