Advertisement
Be_Gone_Thot

Tracers by YoungStar

Jul 14th, 2020
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. if not game.Loaded then
  2. repeat wait() until game:IsLoaded()
  3. end
  4.  
  5. local ESP = {};
  6.  
  7. local Toggle = {
  8. ["VisibilityTracer"] = false;
  9. ["VisibilityBox"] = false;
  10. ["TeamCheck"] = false;
  11. ["Rainbow"] = false;
  12. }
  13.  
  14. local Library = loadstring(game:HttpGet"https://fluxteam.xyz/external-files/lib.lua")()
  15.  
  16. local ESPWindow = Library:CreateWindow("ESP")
  17.  
  18. ESPWindow:AddToggle("Tracers", function()
  19. Toggle.VisibilityTracer = not Toggle.VisibilityTracer
  20. end)
  21.  
  22. ESPWindow:AddToggle("Box", function()
  23. Toggle.VisibilityBox = not Toggle.VisibilityBox
  24. end)
  25.  
  26. ESPWindow:AddToggle("Team Check", function()
  27. Toggle.TeamCheck = not Toggle.TeamCheck
  28. end)
  29.  
  30. ESPWindow:AddToggle("Rainbow", function()
  31. Toggle.Rainbow = not Toggle.Rainbow
  32. end)
  33.  
  34. spawn(function()
  35. while wait() do
  36. for i,v in pairs(ESP) do
  37. if v.Char and v.Tracer and v.BoxESP then
  38. if v.Tracer and v.BoxESP and Toggle.TeamCheck and Toggle.Rainbow then
  39. v.Tracer.Color = Color3.fromRGB(255,255,255)
  40. v.BoxESP.Color = Color3.fromRGB(255,255,255)
  41. else
  42. if v.Tracer and v.BoxESP and not Toggle.TeamCheck and not Toggle.Rainbow then
  43. v.Tracer.Color = Color3.fromRGB(255,255,255)
  44. v.BoxESP.Color = Color3.fromRGB(255,255,255)
  45. else
  46. if v.Tracer and v.BoxESP and Toggle.TeamCheck then
  47. v.Tracer.Color = v.TeamRGB
  48. v.BoxESP.Color = v.TeamRGB
  49. elseif v.Tracer and v.BoxESP and Toggle.Rainbow then
  50. v.Tracer.Color = Color3.fromHSV(tick()%5/5, 1, 1)
  51. v.BoxESP.Color = Color3.fromHSV(tick()%5/5, 1, 1)
  52. end
  53. end
  54. end
  55. end
  56. end
  57. end
  58. end)
  59.  
  60. local Players = game:GetService("Players");
  61. local LocalPlayer = Players.LocalPlayer;
  62. local currentCamera = workspace.CurrentCamera;
  63. local RunService = game:GetService("RunService");
  64. local WorldToViewportPoint = currentCamera.WorldToViewportPoint;
  65.  
  66. if not Players.LocalPlayer.Character then
  67. repeat wait() until LocalPlayer.Character:FindFirstChild("Head") and LocalPlayer.Character:FindFirstChild("Humanoid")
  68. end
  69.  
  70. function GetView(vector)
  71. local Position, Screen = workspace.CurrentCamera:WorldToViewportPoint(vector)
  72. return {Vector2.new(Position.X,Position.Y), Screen, Position.Z}
  73. end
  74.  
  75. function charRemoving(char)
  76. for i, v in next, ESP do
  77. if v.Char == char and v.Tracer ~= nil and v.BoxESP ~= nil then
  78. v.Tracer:Remove();
  79. v.BoxESP:Remove();
  80. table.remove(ESP, i);
  81. end;
  82. end;
  83. end;
  84.  
  85. function charAdded(plr)
  86. plr.Character:WaitForChild("Head");
  87. plr.Character:WaitForChild("HumanoidRootPart");
  88.  
  89. local Line = Drawing.new("Line")
  90. Line.From = Vector2.new(currentCamera.ViewportSize.X / 2, currentCamera.ViewportSize.Y);
  91. Line.Color = plr.TeamColor.Color or Color3.fromRGB(255,255,255)
  92. Line.Transparency = .6
  93. Line.Thickness = 2
  94.  
  95. local Square = Drawing.new("Square");
  96. Square.Color = plr.TeamColor.Color or Color3.fromRGB(255,255,255);
  97. Square.Thickness = 2;
  98. Square.Filled = false;
  99. Square.Transparency = 0.8;
  100.  
  101. ESP[#ESP + 1] = {
  102. player = plr;
  103. Tracer = Line;
  104. BoxESP = Square;
  105. name = plr.Name;
  106. Char = plr.Character;
  107. Head = plr.Character.Head;
  108. TeamRGB = plr.TeamColor.Color or Color3.fromRGB(255,255,255);
  109. }
  110. end
  111.  
  112. for i,v in pairs(Players:GetPlayers()) do
  113. if v ~= Players.LocalPlayer then
  114. local char = v.Character
  115. if char and char:FindFirstChild("HumanoidRootPart") and char:FindFirstChild("Head") then
  116. char:WaitForChild("Head");
  117. char:WaitForChild("HumanoidRootPart");
  118.  
  119. local Line = Drawing.new("Line")
  120. Line.From = Vector2.new(currentCamera.ViewportSize.X / 2, currentCamera.ViewportSize.Y);
  121. Line.Color = v.TeamColor.Color or Color3.fromRGB(255,255,255)
  122. Line.Transparency = .6
  123. Line.Thickness = 2
  124.  
  125. local Square = Drawing.new("Square");
  126. Square.Color = v.TeamColor.Color or Color3.fromRGB(255,255,255);
  127. Square.Thickness = 2;
  128. Square.Filled = false;
  129. Square.Transparency = 0.8;
  130.  
  131. ESP[#ESP + 1] = {
  132. player = v;
  133. Tracer = Line;
  134. BoxESP = Square;
  135. name = v.Name;
  136. Char = char;
  137. Head = v.Character.Head;
  138. TeamRGB = v.TeamColor.Color or Color3.fromRGB(255,255,255);
  139. };
  140. end
  141. v.CharacterAdded:Connect(function(CharE)
  142. charAdded(v);
  143. CharE:FindFirstChild("Humanoid").Died:Connect(function()
  144. charRemoving(v)
  145. repeat wait() until v.Character and v.Character.HumanoidRootPart
  146. wait(2)
  147. charAdded(v)
  148. end);
  149. end);
  150. v.CharacterRemoving:Connect(charRemoving);
  151. end
  152. end
  153.  
  154. local function playerNew(plr)
  155. plr.CharacterAdded:Connect(function(CharT)
  156. charAdded(plr);
  157. CharT:FindFirstChild("Humanoid").Died:Connect(function()
  158. charRemoving(plr)
  159. repeat wait() until plr.Character and plr.Character.HumanoidRootPart
  160. wait(2)
  161. charAdded(plr)
  162. end);
  163. end);
  164. plr.CharacterRemoving:Connect(charRemoving);
  165. end;
  166.  
  167. game.Players.PlayerAdded:Connect(playerNew)
  168.  
  169. local Render = RunService.Stepped:Connect(function()
  170. for i,v in pairs(ESP) do
  171. pcall(function()
  172. if not v.Char then return end;
  173. if v.Char and v.Tracer ~= nil and v.BoxESP ~= nil then
  174. if v.Tracer == nil and v.BoxESP == nil then
  175. for i, v in next, ESP do
  176. if v.Tracer == nil and v.BoxESP == nil then
  177. v.Tracer:Remove();
  178. v.BoxESP:Remove();
  179. table.remove(ESP, i);
  180. end;
  181. end;
  182. end
  183.  
  184. repeat wait() until v.Char and v.Char.HumanoidRootPart
  185. if v.Char and v.Tracer and v.BoxESP and v.TracerC then
  186. local Point = GetView(v.Char.HumanoidRootPart.Position)
  187. local rootPart,rootVisible = WorldToViewportPoint(currentCamera,v.Char.HumanoidRootPart.Position)
  188. if rootVisible then
  189. v.Tracer.To = Point[1]
  190. v.BoxESP.Size = Vector2.new(1400/rootPart.Z,2682/rootPart.Z)
  191. v.BoxESP.Position = Vector2.new((rootPart.X) - v.BoxESP.Size.X/2,(rootPart.Y) - v.BoxESP.Size.Y/2)
  192.  
  193. v.Tracer.Visible = Toggle.VisibilityTracer and rootVisible
  194. v.BoxESP.Visible = Toggle.VisibilityBox and rootVisible
  195. else
  196. v.Tracer.Visible = false
  197. v.BoxESP.Visible = false
  198. end
  199. end
  200. end
  201. end)
  202. end
  203. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement