Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.41 KB | None | 0 0
  1. putService");local curc;local mouse=player:GetMouse();
  2. 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;
  3. local visuals=library:CreateWindow('Visual Cheats');
  4. local combat=library:CreateWindow('Combat Cheats');
  5. local utils=library:CreateWindow('Utils');
  6. visuals:Toggle('Tracers', {location = toggles,flag = "tracers"})
  7. visuals:Section('ESP');
  8. visuals:Toggle('Name ESP' ,{location = toggles ,flag = "nESP"});
  9. visuals:Toggle('Head ESP' ,{location = toggles ,flag = "hESP"});
  10. combat:Section('Aimbot')
  11. combat:Toggle('Aimbot',{location=toggles,flag='aimbot'});
  12. combat:Bind('Aimbot key', {location=toggles, flag='abk', kbonly=false, default=Enum.UserInputType.MouseButton2},
  13. function(k,b)
  14. toggles.iag=b;
  15. end);
  16. combat:Section('General');
  17. combat:Dropdown('Aim part', {location=toggles,flag='abp', list={"Head","UpperTorso"}});
  18. combat:Toggle('Show FOV', {location=toggles, flag='showfov'})
  19. combat:Slider('FOV', {location=toggles, flag='fov', precise=false, default=100, min=30, max=500});
  20. local pepe = {[1]={[1] = 'hum', [2] = false, [3] = false, [4] = false}, [2]={[1] = false,[2] = false, [3] = 2, [4] = 2}}
  21. utils:Toggle('Kill All', {location=toggles, flag='ka'}, function(tg)
  22. spawn(function()
  23. if tg then
  24. local dmgremote=workspace["__THINGS"]["__REMOTES"]:WaitForChild("do damage");
  25. repeat wait();
  26. for i,v in pairs(players:GetChildren()) do
  27. if v~=player and v.Character and v.Character:FindFirstChild("Humanoid") then
  28. local a=pepe;
  29. a[1][1]=v.Character.Humanoid;
  30. dmgremote:FireServer(a);
  31. end
  32. end
  33. until not toggles.ka
  34. end
  35. end)
  36. end)
  37. function createline()
  38. local a=Drawing.new("Line");a.Thickness=1.5;a.Transparency=1;a.Visible=true;a.Color=Color3.fromRGB(0, 255, 149);
  39. a.From=tsp;
  40. return a;
  41. end;
  42. function createname(text)
  43. local a=Drawing.new("Text");a.Transparency=1;a.Visible=true;a.Color=Color3.fromRGB(0, 255, 149);a.Text=text;a.Size=15;
  44. return a;
  45. end;
  46. function createcircle()
  47. local a=Drawing.new('Circle');a.Transparency=1;a.Thickness=1.5;a.Visible=true;a.Color=Color3.fromRGB(0,255,149);a.Filled=false;a.Radius=toggles.fov;
  48. return a;
  49. end;
  50. function createsquare()
  51. local a=Drawing.new('Square');a.Transparency=1;a.Thickness=1.5;a.Visible=true;a.Color=Color3.fromRGB(0,255,149);a.Filled=false;
  52. return a;
  53. end;
  54. curc=createcircle();
  55. function isInTeam(char)
  56. if player and players:GetPlayerFromCharacter(char) then
  57. if player==players:GetPlayerFromCharacter(char) then
  58. return true;
  59. end
  60. if player.Team then
  61. return player.Team==players:GetPlayerFromCharacter(char).Team
  62. end
  63. end;
  64. end;
  65. local gc = function()
  66. local nearest = math.huge
  67. local nearplr;
  68. for i,v in pairs(players:GetPlayers()) do
  69. if v ~= player and v.Character and not isInTeam(v.Character) and v.Character:FindFirstChild(toggles.abp) then
  70. local pos = camera:WorldToScreenPoint(v.Character[toggles.abp].Position)
  71. local diff = math.sqrt((pos.X - sc.X)^2 + (pos.Y+gs.Y - sc.Y)^2)
  72. if diff < nearest and diff < toggles.fov then
  73. nearest=diff;
  74. nearplr=v;
  75. end
  76. end;
  77. end;
  78. return nearplr
  79. end;
  80. local getrel = function(x, y)
  81. local newy;
  82. local newy;
  83. if x > sc.X then
  84. newx = -(sc.X - x)
  85. newx = newx/5
  86. else
  87. newx = x - sc.X
  88. newx = newx/5
  89. end;
  90. if y > sc.Y then
  91. newy = -(sc.Y - y)
  92. newy = newy/5
  93. else
  94. newy = y - sc.Y
  95. newy = newy/5
  96. end;
  97. return newx, newy
  98. end;
  99. run.Stepped:Connect(function()
  100. spawn(function()
  101. for i,v in pairs(players:GetChildren()) do
  102. if v.Character and v.Character:FindFirstChild(toggles.abp) and (not isInTeam(v.Character)) and (toggles.tracers or toggles.nESP or toggles.hESP) then
  103. if not traced[v.Name] then
  104. traced[v.Name]={v.Character};
  105. end;
  106. local vector, onScreen= camera:WorldToScreenPoint(v.Character[toggles.abp].Position)
  107. if toggles.tracers then
  108. if traced[v.Name][2] then
  109. traced[v.Name][2].Visible=(onScreen and toggles.tracers);traced[v.Name][2].To=Vector2.new(vector.X, vector.Y+gs.Y);
  110. else
  111. 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);
  112. end;
  113. end;
  114. if toggles.nESP then
  115. if traced[v.Name][3] then
  116. traced[v.Name][3].Visible=(onScreen and toggles.nESP);traced[v.Name][3].Position=Vector2.new(vector.X, vector.Y+(gs.Y/2));
  117. else
  118. 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));
  119. end;
  120. end;
  121. if toggles.hESP then
  122. if traced[v.Name][4] then
  123. 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);
  124. else
  125. 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);
  126. end;
  127. end
  128. else
  129. if traced[v.Name] then
  130. if traced[v.Name][2] then
  131. traced[v.Name][2]:Remove();traced[v.Name][2]=nil;
  132. end;
  133. if traced[v.Name][3] then
  134. traced[v.Name][3]:Remove();traced[v.Name][3]=nil;
  135. end
  136. if traced[v.Name][4] then
  137. traced[v.Name][4]:Remove();traced[v.Name][4]=nil;
  138. end
  139. end;
  140. end;
  141. end;
  142. end);
  143. spawn(function()
  144. if toggles.showfov then
  145. curc.Visible=true;curc.Position = Vector2.new(mouse.X, mouse.Y+gs.Y);curc.Radius=toggles.fov;
  146. else
  147. curc.Visible=false;
  148. end;
  149. end);
  150. spawn(function()
  151. if toggles.aimbot and toggles.iag then
  152. if gc()~=nil and gc().Character:FindFirstChild(toggles.abp) then
  153. local pos=camera:WorldToScreenPoint(gc().Character[toggles.abp].Position)
  154. local x,y=getrel(pos.X, pos.Y+gs.Y)
  155. mousemoverel(x,y)
  156. end;
  157. end;
  158. end);
  159. end);
  160. players.PlayerRemoving:Connect(function(p) if traced[p.Name] then if traced[p.Name][2] then traced[p.Name][2]:Remove();traced[p.Name][2]=nil;end;if traced[p.Name][3] then trac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement