HELP ME PLZ .LUA
SO i have a code
concommand.Remove("+bhop")
concommand.Add("+bhop",function()
local ply = LocalPlayer()
local oldeyeang = ply:EyeAngles()
hook.Add("CreateMove","hape",function(cmd)
local neweyeang = ply:EyeAngles()
if neweyeang.y > oldeyeang.y then
oldeyeang = neweyeang
RunConsoleCommand("+moveleft")
RunConsoleCommand("-moveright")
timer.Simple(.01, function() RunConsoleCommand("-moveleft") end)
end
if oldeyeang.y > neweyeang.y then
oldeyeang = neweyeang
RunConsoleCommand("+moveright")
RunConsoleCommand("-moveleft")
timer.Simple(.01, function() RunConsoleCommand("-moveright") end)
end
end)
end)
concommand.Remove("-hemp")
concommand.Add("-hemp",function()
RunConsoleCommand("-moveleft")
RunConsoleCommand("-moveright")
hook.Remove("CreateMove","hape")
end)
I need to make a on off button and i dont know how i want to be able to press the mouse scroll wheel down and turn it on and off with that button can someone recode in lua and send me it?