|
| 15 Aug 2012 12:29 PM |
running = false debounce = true
function speedBoost(v) wait() v = v + 1 end
function sprintCheck(sp, bool) if sp == 16 then wait(5) bool = true end end
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) h = character:findFirstChild("Humanoid") if h ~= nil then h.WalkSpeed = 1 h.Running:connect(function(speed) if speed >= 1 then speedBoost(h.Speed) elseif speed < 1 then h.WalkSpeed = 1 end end) h.Changed:connect(function(prop) if prop == "WalkSpeed" then if h.WalkSpeed == 17 and running == false and debounce == true then h.WalkSpeed = 16 debounce = false wait(3) sprintCheck(h.WalkSpeed, running) elseif h.WalkSpeed == 1 and debounce == false then debounce = true end end end) end end) end)
I could use a <= or => iterator, but that conflicts with my Anti-Exploit, which kicks anyone with over 32 WalkSpeed.
Anyone? |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 15 Aug 2012 12:36 PM |
How does using => or <= conflict with that?
|
|
|
| Report Abuse |
|
|
|
| 15 Aug 2012 12:40 PM |
if prop == "Health" then if human.Health >= 1001 then ban(character, banlist) end elseif prop == "WalkSpeed" then if human.WalkSpeed >= 33 then ban(character, banlist) end end
This code is from the anti-exploit |
|
|
| Report Abuse |
|
|
|
| 15 Aug 2012 12:42 PM |
Well " =>" wouldn't work.
† KMXD † |
|
|
| Report Abuse |
|
|