Advertisement
ExodiaForce

Tracer Roblox ESP

Aug 16th, 2023
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.97 KB | Source Code | 0 0
  1. local function API_Check()
  2. if Drawing == nil then
  3. return "No"
  4. else
  5. return "Yes"
  6. end
  7. end
  8.  
  9. local Find_Required = API_Check()
  10.  
  11. if Find_Required == "No" then
  12. game:GetService("StarterGui"):SetCore("SendNotification",{
  13. Title = "Exunys Developer";
  14. Text = "Tracer script could not be loaded because your exploit is unsupported.";
  15. Duration = math.huge;
  16. Button1 = "OK"
  17. })
  18.  
  19. return
  20. end
  21.  
  22. local RunService = game:GetService("RunService")
  23. local Players = game:GetService("Players")
  24. local Camera = game:GetService("Workspace").CurrentCamera
  25. local UserInputService = game:GetService("UserInputService")
  26. local TestService = game:GetService("TestService")
  27.  
  28. local Typing = false
  29.  
  30. _G.SendNotifications = true -- If set to true then the script would notify you frequently on any changes applied and when loaded / errored. (If a game can detect this, it is recommended to set it to false)
  31. _G.DefaultSettings = false -- If set to true then the tracer script would run with default settings regardless of any changes you made.
  32.  
  33. _G.TeamCheck = false -- If set to true then the script would create tracers only for the enemy team members.
  34.  
  35. --[!]-- ONLY ONE OF THESE VALUES SHOULD BE SET TO TRUE TO NOT ERROR THE SCRIPT --[!]--
  36.  
  37. _G.FromMouse = false -- If set to true, the tracers will come from the position of your mouse curson on your screen.
  38. _G.FromCenter = false -- If set to true, the tracers will come from the center of your screen.
  39. _G.FromBottom = true -- If set to true, the tracers will come from the bottom of your screen.
  40.  
  41. _G.TracersVisible = true -- If set to true then the tracers will be visible and vice versa.
  42. _G.TracerColor = Color3.fromRGB(255, 80, 10) -- The color that the tracers would appear as.
  43. _G.TracerThickness = 1 -- The thickness of the tracers.
  44. _G.TracerTransparency = 0.7 -- The transparency of the tracers.
  45.  
  46. _G.ModeSkipKey = Enum.KeyCode.P -- The key that changes between modes that indicate where will the tracers come from.
  47. _G.DisableKey = Enum.KeyCode.U -- The key that disables / enables the tracers.
  48.  
  49. local function CreateTracers()
  50. for _, v in next, Players:GetPlayers() do
  51. if v.Name ~= game.Players.LocalPlayer.Name then
  52. local TracerLine = Drawing.new("Line")
  53.  
  54. RunService.RenderStepped:Connect(function()
  55. if workspace:FindFirstChild(v.Name) ~= nil and workspace[v.Name]:FindFirstChild("HumanoidRootPart") ~= nil then
  56. local HumanoidRootPart_Position, HumanoidRootPart_Size = workspace[v.Name].HumanoidRootPart.CFrame, workspace[v.Name].HumanoidRootPart.Size * 1
  57. local Vector, OnScreen = Camera:WorldToViewportPoint(HumanoidRootPart_Position * CFrame.new(0, -HumanoidRootPart_Size.Y, 0).p)
  58.  
  59. TracerLine.Thickness = _G.TracerThickness
  60. TracerLine.Transparency = _G.TracerTransparency
  61. TracerLine.Color = _G.TracerColor
  62.  
  63. if _G.FromMouse == true and _G.FromCenter == false and _G.FromBottom == false then
  64. TracerLine.From = Vector2.new(UserInputService:GetMouseLocation().X, UserInputService:GetMouseLocation().Y)
  65. elseif _G.FromMouse == false and _G.FromCenter == true and _G.FromBottom == false then
  66. TracerLine.From = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y / 2)
  67. elseif _G.FromMouse == false and _G.FromCenter == false and _G.FromBottom == true then
  68. TracerLine.From = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y)
  69. end
  70.  
  71. if OnScreen == true then
  72. TracerLine.To = Vector2.new(Vector.X, Vector.Y)
  73. if _G.TeamCheck == true then
  74. if Players.LocalPlayer.Team ~= v.Team then
  75. TracerLine.Visible = _G.TracersVisible
  76. else
  77. TracerLine.Visible = false
  78. end
  79. else
  80. TracerLine.Visible = _G.TracersVisible
  81. end
  82. else
  83. TracerLine.Visible = false
  84. end
  85. else
  86. TracerLine.Visible = false
  87. end
  88. end)
  89.  
  90. Players.PlayerRemoving:Connect(function()
  91. TracerLine.Visible = false
  92. end)
  93. end
  94. end
  95.  
  96. Players.PlayerAdded:Connect(function(Player)
  97. Player.CharacterAdded:Connect(function(v)
  98. if v.Name ~= game.Players.LocalPlayer.Name then
  99. local TracerLine = Drawing.new("Line")
  100.  
  101. RunService.RenderStepped:Connect(function()
  102. if workspace:FindFirstChild(v.Name) ~= nil and workspace[v.Name]:FindFirstChild("HumanoidRootPart") ~= nil then
  103. local HumanoidRootPart_Position, HumanoidRootPart_Size = workspace[v.Name].HumanoidRootPart.CFrame, workspace[v.Name].HumanoidRootPart.Size * 1
  104. local Vector, OnScreen = Camera:WorldToViewportPoint(HumanoidRootPart_Position * CFrame.new(0, -HumanoidRootPart_Size.Y, 0).p)
  105.  
  106. TracerLine.Thickness = _G.TracerThickness
  107. TracerLine.Transparency = _G.TracerTransparency
  108. TracerLine.Color = _G.TracerColor
  109.  
  110. if _G.FromMouse == true and _G.FromCenter == false and _G.FromBottom == false then
  111. TracerLine.From = Vector2.new(UserInputService:GetMouseLocation().X, UserInputService:GetMouseLocation().Y)
  112. elseif _G.FromMouse == false and _G.FromCenter == true and _G.FromBottom == false then
  113. TracerLine.From = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y / 2)
  114. elseif _G.FromMouse == false and _G.FromCenter == false and _G.FromBottom == true then
  115. TracerLine.From = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y)
  116. end
  117.  
  118. if OnScreen == true then
  119. TracerLine.To = Vector2.new(Vector.X, Vector.Y)
  120. if _G.TeamCheck == true then
  121. if Players.LocalPlayer.Team ~= Player.Team then
  122. TracerLine.Visible = _G.TracersVisible
  123. else
  124. TracerLine.Visible = false
  125. end
  126. else
  127. TracerLine.Visible = _G.TracersVisible
  128. end
  129. else
  130. TracerLine.Visible = false
  131. end
  132. else
  133. TracerLine.Visible = false
  134. end
  135. end)
  136.  
  137. Players.PlayerRemoving:Connect(function()
  138. TracerLine.Visible = false
  139. end)
  140. end
  141. end)
  142. end)
  143. end
  144.  
  145. UserInputService.TextBoxFocused:Connect(function()
  146. Typing = true
  147. end)
  148.  
  149. UserInputService.TextBoxFocusReleased:Connect(function()
  150. Typing = false
  151. end)
  152.  
  153. UserInputService.InputBegan:Connect(function(Input)
  154. if Input.KeyCode == _G.ModeSkipKey and Typing == false then
  155. if _G.FromMouse == true and _G.FromCenter == false and _G.FromBottom == false and _G.TracersVisible == true then
  156. _G.FromCenter = false
  157. _G.FromBottom = true
  158. _G.FromMouse = false
  159.  
  160. if _G.SendNotifications == true then
  161. game:GetService("StarterGui"):SetCore("SendNotification",{
  162. Title = "Exunys Developer";
  163. Text = "Tracers will be now coming from the bottom of your screen (Mode 1)";
  164. Duration = 5;
  165. })
  166. end
  167. elseif _G.FromMouse == false and _G.FromCenter == false and _G.FromBottom == true and _G.TracersVisible == true then
  168. _G.FromCenter = true
  169. _G.FromBottom = false
  170. _G.FromMouse = false
  171.  
  172. if _G.SendNotifications == true then
  173. game:GetService("StarterGui"):SetCore("SendNotification",{
  174. Title = "Exunys Developer";
  175. Text = "Tracers will be now coming from the center of your screen (Mode 2)";
  176. Duration = 5;
  177. })
  178. end
  179. elseif _G.FromMouse == false and _G.FromCenter == true and _G.FromBottom == false and _G.TracersVisible == true then
  180. _G.FromCenter = false
  181. _G.FromBottom = false
  182. _G.FromMouse = true
  183.  
  184. if _G.SendNotifications == true then
  185. game:GetService("StarterGui"):SetCore("SendNotification",{
  186. Title = "Exunys Developer";
  187. Text = "Tracers will be now coming from the position of your mouse cursor on your screen (Mode 3)";
  188. Duration = 5;
  189. })
  190. end
  191. end
  192. elseif Input.KeyCode == _G.DisableKey and Typing == false then
  193. _G.TracersVisible = not _G.TracersVisible
  194.  
  195. if _G.SendNotifications == true then
  196. game:GetService("StarterGui"):SetCore("SendNotification",{
  197. Title = "Exunys Developer";
  198. Text = "The tracers' visibility is now set to "..tostring(_G.TracersVisible)..".";
  199. Duration = 5;
  200. })
  201. end
  202. end
  203. end)
  204.  
  205. if _G.DefaultSettings == true then
  206. _G.TeamCheck = false
  207. _G.FromMouse = false
  208. _G.FromCenter = false
  209. _G.FromBottom = true
  210. _G.TracersVisible = true
  211. _G.TracerColor = Color3.fromRGB(40, 90, 255)
  212. _G.TracerThickness = 1
  213. _G.TracerTransparency = 0.5
  214. _G.ModeSkipKey = Enum.KeyCode.E
  215. _G.DisableKey = Enum.KeyCode.Q
  216. end
  217.  
  218. local Success, Errored = pcall(function()
  219. CreateTracers()
  220. end)
  221.  
  222. if Success and not Errored then
  223. if _G.SendNotifications == true then
  224. game:GetService("StarterGui"):SetCore("SendNotification",{
  225. Title = "Exunys Developer";
  226. Text = "Tracer script has successfully loaded.";
  227. Duration = 5;
  228. })
  229. end
  230. elseif Errored and not Success then
  231. if _G.SendNotifications == true then
  232. game:GetService("StarterGui"):SetCore("SendNotification",{
  233. Title = "Exunys Developer";
  234. Text = "Tracer script has errored while loading, please check the developer console! (F9)";
  235. Duration = 5;
  236. })
  237. end
  238. TestService:Message("The tracer script has errored, please notify Exunys with the following information :")
  239. warn(Errored)
  240. print("!! IF THE ERROR IS A FALSE POSITIVE (says that a player cannot be found) THEN DO NOT BOTHER !!")
  241. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement