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)
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post