Stradaa_

Untitled

Oct 6th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.50 KB | None | 0 0
  1.  
  2. local library = loadstring(game:HttpGet("https://pastebin.com/raw/tqKTJQAA", true))();
  3. local run = game:service("RunService");
  4. local runcon;
  5. local players = game:service("Players");
  6. local player = players.LocalPlayer;
  7. local camera = workspace.CurrentCamera;
  8. local uis = game:service("UserInputService");
  9. local curc;
  10. local ChatScript = player.PlayerGui.GUI.Main.Chats.DisplayChat
  11.  
  12. local mouse = player:GetMouse();
  13. local toggles = {
  14. abk = Enum.UserInputType.MouseButton2;
  15. iag = false;
  16. };
  17. local traced = {};
  18. local tsp = Vector2.new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2 + 400);
  19. local gs = game:GetService("GuiService"):GetGuiInset();
  20. local sc = Vector2.new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2);
  21. local mousemoverel = mousemoverel or Input.MoveMouse;
  22. local hookfunction = hookfunction or detour_function or replaceclosure;
  23. local getnamecallmethod = getnamecallmethod or get_namecall_method;
  24. local setupvalue = debug.setupvalue;
  25. local Client = player.PlayerGui.GUI.Client;
  26. local visuals = library:CreateWindow('Visual Cheats');
  27. local combat = library:CreateWindow('Combat Cheats');
  28. local misc = library:CreateWindow("Miscellaneous Cheats")
  29. pcall(function()
  30. Client.Disabled = false
  31. end)
  32.  
  33.  
  34. visuals:Toggle('Tracers', {
  35. location = toggles,
  36. flag = "tracers"
  37. })
  38. visuals:Section('ESP');
  39. visuals:Toggle('Name ESP' , {
  40. location = toggles ,
  41. flag = "nESP"
  42. });
  43. visuals:Toggle('Head ESP' , {
  44. location = toggles ,
  45. flag = "hESP"
  46. });
  47. combat:Toggle('Silent Aim', {
  48. location = toggles,
  49. flag = 'silent'
  50. });
  51. combat:Section('Aimbot')
  52. combat:Toggle('Aimbot', {
  53. location = toggles,
  54. flag = 'aimbot'
  55. });
  56. combat:Bind('Aimbot key', {
  57. location = toggles,
  58. flag = 'abk',
  59. kbonly = false,
  60. default = Enum.UserInputType.MouseButton2
  61. },
  62. function(k, b)
  63. toggles.iag = b;
  64. end);
  65. combat:Section('General');
  66. combat:Dropdown('Aim part', {
  67. location = toggles,
  68. flag = 'abp',
  69. list = {
  70. "Head",
  71. "UpperTorso"
  72. }
  73. });
  74. combat:Toggle('Show FOV', {
  75. location = toggles,
  76. flag = 'showfov'
  77. })
  78. combat:Slider('FOV', {
  79. location = toggles,
  80. flag = 'fov',
  81. precise = false,
  82. default = 100,
  83. min = 30,
  84. max = 500
  85. });
  86. combat:Section("Gun Modifications")
  87.  
  88. combat:Button("Gun Modification", function()
  89. local Envs = getsenv(Client)
  90. local FireBullet = rawget(Envs, "firebullet")
  91. game:GetService("RunService").Heartbeat:Connect(function()
  92. setupvalue(FireBullet, 5, 999)
  93. rawset(Envs, "DISABLED", false)
  94. rawset(Envs, "DISABLED2", false)
  95. rawset(Envs, "currentspread", 0)
  96. rawset(Envs, "recoil", 0)
  97. rawset(Envs, "mode", "automatic")
  98. rawset(Envs, "spreadmodifier", 0)
  99. rawset(Envs, "reloadtime", 0)
  100. end)
  101. end)
  102. combat:Section("Client Sided")
  103.  
  104. combat:Button("Give Very Long Bat", function()
  105. local Envs = getsenv(Client)
  106. setupvalue(rawget(Envs, "givetools"), 3, "Very Long Bat")
  107. end)
  108. combat:Button("Give Fasticuffs", function()
  109. local Envs = getsenv(Client)
  110. setupvalue(rawget(Envs, "givetools"), 3, "Fasticuffs")
  111. end)
  112. misc:Section("Miscellaneous")
  113. misc:Box("Clantag", {flag = "clntg", type = "string"}, function(New, Old, Enter)
  114. local Envs = getsenv(ChatScript)
  115. local OldFunc = Envs.createNewMessage
  116. Envs.createNewMessage = function(PlayerName, TheMessage, Color1, Color2, xValue, teamLabel)
  117. if PlayerName == player.Name then
  118. PlayerName = tostring(New) .. " " .. player.Name
  119. end
  120. return OldFunc(PlayerName, TheMessage, Color1, Color2, xValue, teamLabel)
  121. end
  122. end)
  123.  
  124. function createline()
  125. local a = Drawing.new("Line");
  126. a.Thickness = 1.5;
  127. a.Transparency = 1;
  128. a.Visible = true;
  129. a.Color = Color3.fromRGB(0, 255, 149);
  130. a.From = tsp;
  131. return a;
  132. end;
  133. function createname(text)
  134. local a = Drawing.new("Text");
  135. a.Transparency = 1;
  136. a.Visible = true;
  137. a.Color = Color3.fromRGB(0, 255, 149);
  138. a.Text = text;
  139. a.Size = 15;
  140. return a;
  141. end;
  142. function createcircle()
  143. local a = Drawing.new('Circle');
  144. a.Transparency = 1;
  145. a.Thickness = 1.5;
  146. a.Visible = true;
  147. a.Color = Color3.fromRGB(0, 255, 149);
  148. a.Filled = false;
  149. a.Radius = toggles.fov;
  150. return a;
  151. end;
  152. function createsquare()
  153. local a = Drawing.new('Square');
  154. a.Transparency = 1;
  155. a.Thickness = 1.5;
  156. a.Visible = true;
  157. a.Color = Color3.fromRGB(0, 255, 149);
  158. a.Filled = false;
  159. return a;
  160. end;
  161. curc = createcircle();
  162. function isInTeam(char)
  163. if player and players:GetPlayerFromCharacter(char) and players:GetPlayerFromCharacter(char).Team and player.Team then
  164. if player.FriendlyFire.Value then
  165. return false;
  166. else
  167. return (player.Team == players:GetPlayerFromCharacter(char).Team);
  168. end
  169. end;
  170. end;
  171. local gc = function()
  172. local nearest = math.huge
  173. local nearplr;
  174. for i, v in pairs(players:GetPlayers()) do
  175. if v ~= player and v.Character and not isInTeam(v.Character) and v.Character:FindFirstChild(toggles.abp) then
  176. local pos = camera:WorldToScreenPoint(v.Character[toggles.abp].Position)
  177. local diff = math.sqrt((pos.X - sc.X) ^ 2 + (pos.Y + gs.Y - sc.Y) ^ 2)
  178. if diff < nearest and diff < toggles.fov then
  179. nearest = diff;
  180. nearplr = v;
  181. end
  182. end;
  183. end;
  184. return nearplr
  185. end;
  186. local getrel = function(x, y)
  187. local newy;
  188. local newy;
  189. if x > sc.X then
  190. newx = -(sc.X - x)
  191. newx = newx / 5
  192. else
  193. newx = x - sc.X
  194. newx = newx / 5
  195. end;
  196. if y > sc.Y then
  197. newy = -(sc.Y - y)
  198. newy = newy / 5
  199. else
  200. newy = y - sc.Y
  201. newy = newy / 5
  202. end;
  203. return newx, newy
  204. end;
  205. run.Stepped:Connect(function()
  206. spawn(function()
  207. for i, v in pairs(players:GetChildren()) do
  208. if v.Character and v.Character:FindFirstChild(toggles.abp) and (not isInTeam(v.Character)) and (toggles.tracers or toggles.nESP or toggles.hESP) then
  209. if not traced[v.Name] then
  210. traced[v.Name] = {
  211. v.Character
  212. };
  213. end;
  214. local vector, onScreen = camera:WorldToScreenPoint(v.Character[toggles.abp].Position)
  215. if toggles.tracers then
  216. if traced[v.Name][2] then
  217. traced[v.Name][2].Visible = (onScreen and toggles.tracers);
  218. traced[v.Name][2].To = Vector2.new(vector.X, vector.Y + gs.Y);
  219. else
  220. traced[v.Name][2] = createline();
  221. traced[v.Name][2].Visible = (onScreen and toggles.tracers);
  222. traced[v.Name][2].To = Vector2.new(vector.X, vector.Y + gs.Y);
  223. end;
  224. end;
  225. if toggles.nESP then
  226. if traced[v.Name][3] then
  227. traced[v.Name][3].Visible = (onScreen and toggles.nESP);
  228. traced[v.Name][3].Position = Vector2.new(vector.X, vector.Y + (gs.Y / 2));
  229. else
  230. traced[v.Name][3] = createname(v.Name);
  231. traced[v.Name][3].Visible = (onScreen and toggles.nESP);
  232. traced[v.Name][3].Position = Vector2.new(vector.X, vector.Y + (gs.Y / 2));
  233. end;
  234. end;
  235. if toggles.hESP then
  236. if traced[v.Name][4] then
  237. traced[v.Name][4].Visible = (onScreen and toggles.hESP);
  238. traced[v.Name][4].Size = Vector2.new(1400 / vector.Z, 1400 / vector.Z);
  239. 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);
  240. else
  241. traced[v.Name][4] = createsquare();
  242. traced[v.Name][4].Visible = (onScreen and toggles.hESP);
  243. traced[v.Name][4].Size = Vector2.new(1400 / vector.Z, 1400 / vector.Z);
  244. 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);
  245. end;
  246. end
  247. else
  248. if traced[v.Name] then
  249. if traced[v.Name][2] then
  250. traced[v.Name][2]:Remove();
  251. traced[v.Name][2] = nil;
  252. end;
  253. if traced[v.Name][3] then
  254. traced[v.Name][3]:Remove();
  255. traced[v.Name][3] = nil;
  256. end
  257. if traced[v.Name][4] then
  258. traced[v.Name][4]:Remove();
  259. traced[v.Name][4] = nil;
  260. end
  261. end;
  262. end;
  263. end;
  264. end);
  265. spawn(function()
  266. if toggles.showfov then
  267. curc.Visible = true;
  268. curc.Position = Vector2.new(mouse.X, mouse.Y + gs.Y);
  269. curc.Radius = toggles.fov;
  270. else
  271. curc.Visible = false;
  272. end;
  273. end);
  274. spawn(function()
  275. if toggles.aimbot and toggles.iag then
  276. if gc() ~= nil and gc().Character:FindFirstChild(toggles.abp) then
  277. local pos = camera:WorldToScreenPoint(gc().Character[toggles.abp].Position)
  278. local x, y = getrel(pos.X, pos.Y + gs.Y)
  279. mousemoverel(x, y)
  280. end;
  281. end;
  282. end);
  283. end);
  284. local MT = getrawmetatable(game)
  285. local Old = MT.__namecall
  286. setreadonly(MT, false)
  287.  
  288. MT.__namecall = newcclosure(function(self, ...)
  289. if toggles.silent and get_namecall_method() == "FireServer" and ({...})[1] == "HitPart" and gc() ~= nil and gc().Character:FindFirstChild(toggles.abp) then
  290. local Args = {...}
  291. Args[2] = gc().Character[toggles.abp]
  292. Args[3] = gc().Character[toggles.abp].Position
  293. return Old(self, unpack(Args))
  294. elseif string.find(string.lower(get_namecall_method()), "ray") and string.lower(tostring(({...})[1])) == "workspace" and gc() ~= nil and gc().Character:FindFirstChild(toggles.abp) and player.NRPBS.EquippedTool.Value ~= "Railgun" then
  295. return gc().Character[toggles.abp], Vector3.new(1, 1, 1), true
  296. end
  297. return Old(self, ...)
  298. end)
  299. players.PlayerRemoving:Connect(function(p)
  300. if traced[p.Name] then
  301. if traced[p.Name][2] then
  302. traced[p.Name][2]:Remove();
  303. traced[p.Name][2] = nil;
  304. end;
  305. if traced[p.Name][3] then
  306. traced[p.Name][3]:Remove();
  307. traced[p.Name][3] = nil;
  308. end;
  309. if traced[p.Name][4] then
  310. traced[p.Name][4]:Remove();
  311. traced[p.Name][4] = nil;
  312. end;
  313. traced[p.Name] = nil;
  314. end;
  315. end);
Add Comment
Please, Sign In to add comment