RunConsoleCommand("+moveleft")
RunConsoleCommand("+moveright")
local AddHook = dismay and dismay.AddHook or hook and hook.Add or function() print("i liek dix") end;
AddHook("CreateMove", "BHOP", function(cmd)
if (cmd:KeyDown(IN_JUMP)) then
if(cmd:GetMouseX() < 0) then --spinning right
cmd:SetSideMove(-10000);
elseif(cmd:GetMouseX() > 0) then
cmd:SetSideMove(10000);
end
if (LocalPlayer():IsOnGround()) then
cmd:SetButtons(bit.bor(cmd:GetButtons(), IN_JUMP));
return;
end
end
cmd:RemoveKey(IN_JUMP);
end)