Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Could anyone assist me with this speed script?

Asked by 9 years ago

This script won't change my speed to normal or when I die it won't give me back 1000 walk speed.

debounce = true

script.Parent.Touched:connect(function(hit)
    local h = hit.Parent:FindFirstChild("Humanoid")
    if (h ~= nil and debounce == true) then
    debounce = false
        if h.WalkSpeed == 16 then
           h.WalkSpeed = 1000
           wait(.25)
        end
    else 
        if h.Walkspeed == 1000 then
           h.Walkspeed = 16
        end 
    debounce = true  
    end
end)

Answer this question