Forum > General >

DaHood Run Hotkey *By Coryu*

Posts: 1

Threads: 1

Joined: Aug, 2023

Reputation: 0

Posted

local coryu = {
    ['CORXYULOCALPLAYER'] = game:GetService('Players').LocalPlayer;
    ['Mouse'] = game:GetService('Players').LocalPlayer:GetMouse();
    ['Run'] = false;
    ['runhotkey'] = 'q' -- you can change your run hotkey here
    ['RunSpeed'] = 170; -- you can change your run speed here
    ['norunhotkey'] = 'e' -- you can change your no run hotkey here
}

coryu['Mouse'].KeyDown:connect(function(coryuplrkey)
    if coryuplrkey:lower() == ['runhotkey'] then
    coryu['Run'] = true
        while coryu['Run'] do
        task.wait(0.1)
            coryu['CORXYULOCALPLAYER'].Character.HumanoidRootPart.Velocity = coryu['CORXYULOCALPLAYER'].Character.HumanoidRootPart.CFrame.lookVector * coryu['RunSpeed']
        end
    end
end)

coryu['Mouse'].KeyDown:connect(function(coryustpkey)
    if coryustpkey:lower() == coryu['norunhotkey'] then
        coryu['Run'] = false
    end
end)
  • 0

Posts: 1

Threads: 0

Joined: Aug, 2023

Reputation: 0

Replied

I don't understand this code. It is best if you could explain it

 

 

smash karts

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )