Advertisement
hacimiks

Venyx Ui Lib

Apr 10th, 2024 (edited)
645
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.44 KB | None | 0 0
  1. local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/aoki0x/UI-Libraries/main/Azure/source.lua", true))();
  2. local run = game:service("RunService");
  3. local runcon;players=game:service("Players");
  4. player=players.LocalPlayer;camera=workspace.CurrentCamera;
  5. local uis=game:service("UserInputService");
  6. local curc;
  7. local mouse=player:GetMouse();
  8. local toggles={abk=Enum.UserInputType.MouseButton2;iag=false;};local traced={};local tsp=Vector2.new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2 + 400);local gs=game:GetService("GuiService"):GetGuiInset();local sc=Vector2.new(camera.ViewportSize.X/2,camera.ViewportSize.Y/2);local mousemoverel = mousemoverel or Input.MoveMouse;local hookfunction = hookfunction or detour_function or replaceclosure;local getnamecallmethod=getnamecallmethod or get_namecall_method;
  9. local combat = library:CreateWindow('Aimbot');
  10. local visuals = library:CreateWindow('Visuals');
  11. visuals:Section('ESP');
  12. visuals:Toggle('Tracers', {location = toggles,flag = "tracers"})
  13. visuals:Toggle('Name ESP' ,{location = toggles ,flag = "nESP"});
  14. visuals:Toggle('Box ESP' ,{location = toggles ,flag = "hESP"});
  15. combat:Section('Aimbot')
  16. combat:Toggle('Aimbot',{location=toggles,flag='aimbot'});
  17. combat:Bind('Aimbot Hotkey', {location=toggles, flag='abk', kbonly=false, default=Enum.UserInputType.MouseButton2},
  18. function(k,b)
  19.     toggles.iag=b;
  20. end);
  21. combat:Dropdown('Aimpart', {location=toggles,flag='abp', list={"Head","UpperTorso","LowerTorso","HumanoidRootPart"}});
  22. combat:Toggle('Draw FOV circle', {location=toggles, flag='showfov'})
  23. combat:Toggle('Filled FOV circle', {location=toggles, flag='filled'})
  24. combat:Slider('FOV', {location=toggles, flag='fov', precise=false, default=50, min=50, max=500});
  25. function createline()
  26.     local a=Drawing.new("Line");a.Thickness=1.5;a.Transparency=1;a.Visible=true;a.Color=Color3.fromRGB(0,240,90);
  27.     a.From=tsp;
  28.     return a;
  29. end;
  30. function createname(text)
  31.     local a=Drawing.new("Text");a.Transparency=1;a.Visible=true;a.Color=Color3.fromRGB(0,240,90);a.Text=text;a.Size=15;
  32.     return a;  
  33. end;
  34. function createcircle()
  35.     local a=Drawing.new('Circle');a.Transparency=0.3;a.Thickness=1.5;a.Visible=true;a.Color=Color3.fromRGB(0,240,90);a.Filled=false;a.Radius=toggles.fov;
  36.     return a;
  37. end;
  38. function createsquare()
  39.     local a=Drawing.new('Square');a.Transparency=1;a.Thickness=1.5;a.Visible=true;a.Color=Color3.fromRGB(0,240,90);a.Filled=false;
  40.     return a;
  41. end;
  42. curc=createcircle();
  43. function isInTeam(char)
  44.     if player and players:GetPlayerFromCharacter(char) and players:GetPlayerFromCharacter(char).Team and player.Team then
  45.         if player.FriendlyFire.Value then
  46.             return false;
  47.         else
  48.             return (player.Team==players:GetPlayerFromCharacter(char).Team);
  49.         end;   
  50.     end;
  51. end;
  52. local gc = function()
  53.     local nearest = math.huge
  54.     local nearplr;
  55.     for i,v in pairs(players:GetPlayers()) do
  56.         if v ~= player and v.Character and not isInTeam(v.Character) and v.Character:FindFirstChild(toggles.abp) then
  57.             local pos = camera:WorldToScreenPoint(v.Character[toggles.abp].Position)
  58.             local diff = math.sqrt((pos.X - sc.X)^2 + (pos.Y+gs.Y - sc.Y)^2)
  59.             if diff < nearest and diff < toggles.fov then
  60.                 nearest=diff;
  61.                 nearplr=v;
  62.             end
  63.         end;
  64.     end;
  65.     return nearplr
  66. end;
  67. local getrel = function(x, y)
  68.     local newy;
  69.     local newy;
  70.     if x > sc.X then
  71.         newx = -(sc.X - x)
  72.         newx = newx/5
  73.     else
  74.         newx = x - sc.X
  75.         newx = newx/5
  76.     end;
  77.     if y > sc.Y then
  78.         newy = -(sc.Y - y)
  79.         newy = newy/5
  80.     else
  81.         newy = y - sc.Y
  82.         newy = newy/5
  83.     end;
  84.     return newx, newy
  85. end;
  86.  
  87. run.Stepped:Connect(function()
  88.     spawn(function()
  89.         for i,v in pairs(players:GetChildren()) do
  90.             if v.Character and v.Character:FindFirstChild(toggles.abp) and (not isInTeam(v.Character)) and (toggles.tracers or toggles.nESP or toggles.hESP) then
  91.                 if not traced[v.Name] then
  92.                     traced[v.Name]={v.Character};    
  93.                 end;  
  94.                 local vector, onScreen= camera:WorldToScreenPoint(v.Character[toggles.abp].Position)
  95.                 if toggles.tracers then
  96.                     if traced[v.Name][2] then
  97.                         traced[v.Name][2].Visible=(onScreen and toggles.tracers);traced[v.Name][2].To=Vector2.new(vector.X, vector.Y+gs.Y);
  98.                     else
  99.                         traced[v.Name][2]=createline();traced[v.Name][2].Visible=(onScreen and toggles.tracers);traced[v.Name][2].To=Vector2.new(vector.X, vector.Y+gs.Y);
  100.                     end;
  101.                 end;
  102.                 if toggles.nESP then    
  103.                     if traced[v.Name][3] then
  104.                         traced[v.Name][3].Visible=(onScreen and toggles.nESP);traced[v.Name][3].Position=Vector2.new(vector.X, vector.Y+(gs.Y/2)); 
  105.                     else
  106.                         traced[v.Name][3]=createname(v.Name);traced[v.Name][3].Visible=(onScreen and toggles.nESP);traced[v.Name][3].Position=Vector2.new(vector.X, vector.Y+(gs.Y/2));
  107.                     end;  
  108.                 end;
  109.                 if toggles.hESP then
  110.                     if traced[v.Name][4] then
  111.                         traced[v.Name][4].Visible=(onScreen and toggles.hESP);traced[v.Name][4].Size=Vector2.new(1400/vector.Z,1400/vector.Z);traced[v.Name][4].Position=Vector2.new((vector.X)-traced[v.Name][4].Size.X/2, (vector.Y+(gs.Y))-traced[v.Name][4].Size.Y/2);
  112.                     else
  113.                         traced[v.Name][4]=createsquare();traced[v.Name][4].Visible=(onScreen and toggles.hESP);traced[v.Name][4].Size=Vector2.new(1400/vector.Z,1400/vector.Z);traced[v.Name][4].Position=Vector2.new((vector.X)-traced[v.Name][4].Size.X/2, (vector.Y+(gs.Y))-traced[v.Name][4].Size.Y/2);
  114.                     end;
  115.                 end    
  116.             else
  117.                 if traced[v.Name] then
  118.                     if traced[v.Name][2] then
  119.                         traced[v.Name][2]:Remove();traced[v.Name][2]=nil;
  120.                     end;  
  121.                     if traced[v.Name][3] then
  122.                         traced[v.Name][3]:Remove();traced[v.Name][3]=nil;
  123.                     end
  124.                     if traced[v.Name][4] then
  125.                         traced[v.Name][4]:Remove();traced[v.Name][4]=nil;
  126.                     end
  127.                 end;  
  128.             end;    
  129.         end;      
  130.     end);
  131.     spawn(function()
  132.         if toggles.showfov then
  133.             curc.Visible=true;curc.Position = Vector2.new(mouse.X, mouse.Y+gs.Y);curc.Radius=toggles.fov;
  134.         else
  135.             curc.Visible=false;
  136.         end;    
  137.     end);
  138.     spawn(function()
  139.         if toggles.filled then
  140.             toggles.showfov = true
  141.             curc.Filled = true
  142.         else
  143.             curc.Filled = false
  144.         end
  145.     end)
  146.     spawn(function()
  147.         if toggles.aimbot and toggles.iag then
  148.             if gc()~=nil and gc().Character:FindFirstChild(toggles.abp) then
  149.                 local pos=camera:WorldToScreenPoint(gc().Character[toggles.abp].Position)
  150.                 local x,y=getrel(pos.X, pos.Y+gs.Y)
  151.                 mousemoverel(x,y)
  152.             end;
  153.         end;    
  154.     end);  
  155. end);    
  156. local fr;
  157. players.PlayerRemoving:Connect(function(p)
  158.     if traced[p.Name] then
  159.         if traced[p.Name][2] then
  160.             traced[p.Name][2]:Remove();traced[p.Name][2]=nil;
  161.         end;
  162.         if traced[p.Name][3] then
  163.              traced[p.Name][3]:Remove();traced[p.Name][3]=nil;
  164.             end;
  165.             if traced[p.Name][4] then
  166.                 traced[p.Name][4]:Remove();traced[p.Name][4]=nil;
  167.             end;traced[p.Name]=nil;
  168.         end;
  169.     end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement