Advertisement
Guest User

arsenal esp + aimbot

a guest
Jul 25th, 2019
5,653
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.27 KB | None | 0 0
  1.  
  2. HideGuiInCoreGui = true --set to true or false
  3. Headshots = true --set to true or false
  4.  
  5. local AimbotMethod = 1 --set to 1 or 2, 1 is renderstep, 2 is heartbeat
  6. local ESPRefreshRate = 1 --how many seconds before esp updates (MAKE SURE IT'S NOT TOO SHORT OR ELSE IT MIGHT CAUSE LAG)
  7. local AutoESP = false --if you want auto ESP change this
  8.  
  9. --do not touch anything beyond this point
  10.  
  11. local ESPRefresh = false
  12. local ESPEnabled = false
  13.  
  14. if AutoESP then
  15. game:GetService("RunService").Heartbeat:Connect(function()
  16. ESPEnabled = true
  17. end)
  18. end
  19.  
  20. local currentCamera = workspace.CurrentCamera
  21. local Player = game.Players.LocalPlayer
  22. local Mouse = Player:GetMouse()
  23.  
  24. local LerpCamera = false
  25. local PartToLookAt = nil
  26. local LockedOn = false
  27.  
  28. local Teams = game:GetService("Teams")
  29. local playerGui = Player:WaitForChild("PlayerGui")
  30. local coreGui = game:GetService("CoreGui")
  31.  
  32. JSONPackedFunctions = [=[ {"CloseButton":{"Event1":"MouseButton1Down"},"Mouse":{"Event1":"KeyDown"}}]=]
  33.  
  34. local parent = ((HideGuiInCoreGui == true and coreGui) or (HideGuiInCoreGui == false and playerGui))
  35. local parentESP = ((Headshots == true and "Head") or (Headshots == false and "HumanoidRootPart"))
  36. local methodFunction = ((AimbotMethod == 1 and "RenderStepped") or (AimbotMethod == 2 and "Heartbeat"))
  37.  
  38. local Bigspace = function(spacenum)
  39. if tonumber(spacenum) == nil then return " " end
  40. local space = ""
  41. for i = 1, spacenum do
  42. space = space.." "
  43. end
  44. return space
  45. end
  46.  
  47. local FOVXYZ = function(P0, P1, DEG)
  48. local x1, y1, z1 = P0:ToOrientation()
  49. local cf = CFrame.new(P0.p, P1.p)
  50. local x2, y2, z2 = cf:ToOrientation()
  51. if not DEG then
  52. return Vector3.new((x1-x2), (y1-y2), (z1-z2))
  53. end
  54. end
  55.  
  56. local checkFOV = function(Part)
  57. local FOV = FOVXYZ(currentCamera.CFrame, Part.CFrame)
  58. local Ang = math.abs(FOV.X) + math.abs(FOV.Y)
  59. return Ang
  60. end
  61.  
  62. local Decode = function(JSON)
  63. local value = "Failed"
  64. local func = pcall(function() value = game:GetService("HttpService"):JSONDecode(JSON) end)
  65. return value
  66. end
  67.  
  68. local Encode = function(TABLE)
  69. local value = "Failed"
  70. local func = pcall(function() value = game:GetService("HttpService"):JSONEncode(TABLE) end)
  71. return value
  72. end
  73.  
  74. local GiveESP = function()
  75. local folder
  76. if parent:FindFirstChild("ESPMarkers") then
  77. folder = parent:FindFirstChild("ESPMarkers")
  78. for _, child in pairs(folder:GetChildren()) do
  79. child:Destroy()
  80. end
  81. else
  82. folder = Instance.new("Folder")
  83. folder.Name = "ESPMarkers"
  84. folder.Parent = parent
  85. folder.Archivable = true
  86. end
  87. local AllTeams = Teams:GetTeams()
  88. local playerTeam = Player.Team
  89. local TeamsToTarget = {}
  90. for _, t in pairs(AllTeams) do
  91. TeamsToTarget[t.Name] = (t ~= playerTeam)
  92. end
  93. for _, p in pairs(game.Players:GetPlayers()) do
  94. if p.Character then
  95. local enemyCharacter = p.Character
  96. if enemyCharacter:FindFirstChild("Health") then
  97. if enemyCharacter:WaitForChild("Health").Value > 0 then
  98. if TeamsToTarget[p.Team.Name] == true then
  99. local billboard = Instance.new("BillboardGui")
  100. local health = Instance.new("TextLabel")
  101. local frame = Instance.new("Frame")
  102. local teamColor = p.TeamColor
  103. billboard.Size = UDim2.new(1, 0, 1, 0)
  104. billboard.AlwaysOnTop = true
  105. billboard.Archivable = false
  106. billboard.Enabled = true
  107. if enemyCharacter:FindFirstChild(parentESP) then
  108. billboard.Adornee = enemyCharacter:FindFirstChild(parentESP)
  109. else
  110. billboard.Adornee = enemyCharacter:FindFirstChild("Head")
  111. end
  112. frame.BackgroundColor3 = teamColor.Color
  113. frame.Position = UDim2.new(0, 0, 0, 0)
  114. frame.Size = UDim2.new(1, 0, 1, 0)
  115. frame.BackgroundTransparency = 0
  116. frame.BorderSizePixel = 0
  117. frame.Selectable = false
  118. frame.Archivable = false
  119. frame.Active = false
  120. health.TextColor3 = Color3.fromRGB(25, 25, 25)
  121. health.Position = UDim2.new(0, 0, .25, 0)
  122. health.Size = UDim2.new(1, 0, .5, 0)
  123. health.BackgroundTransparency = 1
  124. health.BorderSizePixel = 0
  125. health.Archivable = false
  126. health.Selectable = false
  127. health.TextScaled = true
  128. health.Active = false
  129. health.Text = "100%"
  130. frame.Parent = billboard
  131. health.Parent = billboard
  132. billboard.Parent = folder
  133. local Connection
  134. Connection = game:GetService("RunService")[methodFunction]:Connect(function()
  135. if enemyCharacter == nil then health.Text = "0%" Connection:Disconnect() end
  136. if enemyCharacter:WaitForChild("Health").Value < 1 then health.Text = "0%" Connection:Disconnect() end
  137. if billboard == nil then
  138. billboard = nil
  139. Connection:Disconnect()
  140. end
  141. if ESPEnabled == false then
  142. if folder then
  143. billboard:Destroy()
  144. end
  145. Connection:Disconnect()
  146. end
  147. health.Text = enemyCharacter:WaitForChild("Health").Value.."%"
  148. end)
  149. spawn(function()
  150. wait(ESPRefreshRate)
  151. billboard:Destroy()
  152. Connection:Disconnect()
  153. end)
  154. end
  155. end
  156. end
  157. end
  158. end
  159. end
  160. local InitFunctions = function(INSTANCE,TABLE)
  161. if INSTANCE.Name == "CLOSEBUTTON" then
  162. for k, v in next, TABLE do
  163. if k == "Event1" then
  164. INSTANCE[v]:Connect(function()
  165. INSTANCE.Parent.Parent:Destroy()
  166. end)
  167. end
  168. end
  169. elseif INSTANCE == Mouse then
  170. for k, v in next, TABLE do
  171. if k == "Event1" then
  172. INSTANCE[v]:Connect(function(Key)
  173. if string.lower(Key) == "e" then
  174. if LockedOn == true then LockedOn = false PartToLookAt = nil return end
  175. if LockedOn == false or not PartToLookAt then
  176. if not PartToLookAt then
  177. if Player.Character then
  178. if Player.Character:WaitForChild("Health").Value > 0 or Player:WaitForChild("Status"):WaitForChild("Alive").Value == true then
  179. local MXANG = math.rad(8)
  180. for _, plr in pairs(game.Players:GetPlayers()) do
  181. if plr ~= Player and plr.Character and plr.Character ~= Player.Character and plr.Character:FindFirstChild(parentESP) and plr.Character:FindFirstChild("Humanoid") and plr.Character:FindFirstChild("Humanoid").Health > 1 then
  182. if plr.Team ~= Player.Team then
  183. local AN = checkFOV(plr.Character:FindFirstChild(parentESP))
  184. if AN < MXANG then
  185. MXANG = AN
  186. PartToLookAt = plr.Character:FindFirstChild(parentESP)
  187. end
  188. end
  189. if PartToLookAt then
  190. LockedOn = true
  191. local Dead = false
  192. local Connection
  193. Connection = plr:WaitForChild("Status"):WaitForChild("Alive").Changed:Connect(function()
  194. if plr:WaitForChild("Status"):WaitForChild("Alive").Value == false then
  195. Dead = true
  196. PartToLookAt = nil
  197. Connection:Disconnect()
  198. end
  199. end)
  200. local C
  201. C = game:GetService("RunService")[methodFunction]:Connect(function()
  202. if PartToLookAt == nil or plr.Character == nil or Player.Character == nil then
  203. PartToLookAt = nil
  204. currentCamera.CFrame = CFrame.new(currentCamera.CFrame.Position, currentCamera.CFrame.LookVector + Vector3.new(0, 10, 0))
  205. C:Disconnect()
  206. end
  207. if plr.Character:WaitForChild("Health").Value < 1 or Player.Character:WaitForChild("Health").Value < 1 then
  208. PartToLookAt = nil
  209. spawn(function()
  210. game:GetService("RunService").Heartbeat:Wait()
  211. currentCamera.CFrame = CFrame.new(currentCamera.CFrame.Position + Vector3.new(75, 0, 0), currentCamera.CFrame.LookVector + Vector3.new(0, 10, 0))
  212. end)
  213. C:Disconnect()
  214. end
  215. if Dead then
  216. PartToLookAt = nil
  217. spawn(function()
  218. game:GetService("RunService").Heartbeat:Wait()
  219. currentCamera.CFrame = CFrame.new(currentCamera.CFrame.Position + Vector3.new(75, 0, 0), currentCamera.CFrame.LookVector + Vector3.new(0, 10, 0))
  220. end)
  221. C:Disconnect()
  222. end
  223. if not LerpCamera then
  224. currentCamera.CFrame = CFrame.new(currentCamera.CFrame.Position, plr.Character:FindFirstChild(parentESP).CFrame.Position)
  225. else
  226. currentCamera.CFrame = currentCamera.CFrame:Lerp(CFrame.new(currentCamera.CFrame.Position, plr.Character:FindFirstChild(parentESP).CFrame.Position), .1)
  227. end
  228. end)
  229. break
  230. end
  231. end
  232. end
  233. end
  234. end
  235. end
  236. end
  237. elseif string.lower(Key) == "l" then
  238. LerpCamera = not LerpCamera
  239. elseif string.lower(Key) == "j" then
  240. ESPEnabled = not ESPEnabled
  241. end
  242. end)
  243. end
  244. end
  245. end
  246. end
  247.  
  248. function Init()
  249. InitFunctions(Mouse,Decode(JSONPackedFunctions)["Mouse"])
  250. spawn(function()
  251. while wait(ESPRefreshRate) do
  252. if ESPEnabled then
  253. GiveESP()
  254. else
  255. if parent:FindFirstChild("ESPMarkers") then
  256. parent:FindFirstChild("ESPMarkers"):Destroy()
  257. end
  258. end
  259. end
  260. end)
  261. local gui = Instance.new("ScreenGui")
  262. local closebutton = Instance.new("TextButton")
  263. local Einteraction = Instance.new("TextLabel")
  264. local Linteraction = Instance.new("TextLabel")
  265. local Ointeraction = Instance.new("TextLabel")
  266. local topframe = Instance.new("TextLabel")
  267. local midframe = Instance.new("Frame")
  268. gui.Name = "JGWHEARSENALGUI"
  269. gui.IgnoreGuiInset = false
  270. gui.ResetOnSpawn = false
  271. gui.Archivable = false
  272. gui.DisplayOrder = 999
  273. gui.Enabled = true
  274. topframe.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  275. topframe.TextXAlignment = Enum.TextXAlignment.Center
  276. topframe.TextColor3 = Color3.fromRGB(155, 155, 155)
  277. topframe.Position = UDim2.new(-1, 0, .5, 0)
  278. topframe.Size = UDim2.new(.3, 0, .05, 0)
  279. topframe.BackgroundTransparency = .25
  280. topframe.Text = "jgwhe Arsenal GUI"
  281. topframe.ClipsDescendants = false
  282. topframe.Font = Enum.Font.Gotham
  283. topframe.BorderSizePixel = 0
  284. topframe.Name = "TOPFRAME"
  285. topframe.Selectable = true
  286. topframe.Draggable = true
  287. topframe.TextSize = 12
  288. topframe.Active = true
  289. topframe.ZIndex = 2
  290. midframe.BackgroundColor3 = Color3.fromRGB(125, 125, 125)
  291. midframe.Position = UDim2.new(0, 0, 0, 0)
  292. midframe.BackgroundTransparency = .25
  293. midframe.Size = UDim2.new(1, 0, 1, 0)
  294. midframe.ClipsDescendants = true
  295. midframe.BorderSizePixel = 0
  296. midframe.Selectable = true
  297. midframe.Draggable = false
  298. midframe.Name = "MIDFRAME"
  299. midframe.Active = true
  300. Einteraction.Text = string.format("Press E to lock onto someone%s(aim with your camera)", Bigspace(45))
  301. Einteraction.TextColor3 = Color3.fromRGB(245, 245, 245)
  302. Einteraction.Position = UDim2.new(0, 0, .1, 0)
  303. Einteraction.Size = UDim2.new(1, 0, .15, 0)
  304. Einteraction.BackgroundTransparency = 1
  305. Einteraction.Font = Enum.Font.Gotham
  306. Einteraction.TextTransparency = .25
  307. Einteraction.BorderSizePixel = 0
  308. Einteraction.TextScaled = true
  309. Einteraction.Name = "EINTERACT"
  310. Einteraction.Active = false
  311. Linteraction.Text = string.format("Press L to lerp your camera%s(good for crossbows or rocket launchers)", Bigspace(45))
  312. Linteraction.TextColor3 = Color3.fromRGB(245, 245, 245)
  313. Linteraction.Position = UDim2.new(0, 0, .3, 0)
  314. Linteraction.Size = UDim2.new(1, 0, .15, 0)
  315. Linteraction.BackgroundTransparency = 1
  316. Linteraction.Font = Enum.Font.Gotham
  317. Linteraction.TextTransparency = .25
  318. Linteraction.BorderSizePixel = 0
  319. Linteraction.TextScaled = true
  320. Linteraction.Name = "LINTERACT"
  321. Linteraction.Active = false
  322. Ointeraction.Text = string.format("Press J to use ESP%s(shows a square with health)", Bigspace(55))
  323. Ointeraction.TextColor3 = Color3.fromRGB(245, 245, 245)
  324. Ointeraction.Position = UDim2.new(0, 0, .5, 0)
  325. Ointeraction.Size = UDim2.new(1, 0, .15, 0)
  326. Ointeraction.BackgroundTransparency = 1
  327. Ointeraction.Font = Enum.Font.Gotham
  328. Ointeraction.TextTransparency = .25
  329. Ointeraction.BorderSizePixel = 0
  330. Ointeraction.TextScaled = true
  331. Ointeraction.Name = "OINTERACT"
  332. Ointeraction.Active = false
  333. closebutton.BackgroundColor3 = Color3.fromRGB(155, 5, 5)
  334. closebutton.TextColor3 = Color3.fromRGB(5, 5, 5)
  335. closebutton.Position = UDim2.new(.885, 0, .1, 0)
  336. closebutton.Size = UDim2.new(.1, 0, .8, 0)
  337. closebutton.BackgroundTransparency = .25
  338. closebutton.TextTransparency = .25
  339. closebutton.Name = "CLOSEBUTTON"
  340. closebutton.TextScaled = true
  341. closebutton.ZIndex = 3
  342. closebutton.Text = "X"
  343. InitFunctions(closebutton,Decode(JSONPackedFunctions)["CloseButton"])
  344. Einteraction.Parent = midframe
  345. Linteraction.Parent = midframe
  346. Ointeraction.Parent = midframe
  347. closebutton.Parent = topframe
  348. midframe.Parent = topframe
  349. topframe.Parent = gui
  350. gui.Parent = parent
  351. topframe:TweenPosition(UDim2.new(.02, 0, .5, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 2)
  352. wait(3)
  353. midframe:TweenSizeAndPosition(UDim2.new(1, 0, 7, 0), UDim2.new(0, 0, 1, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quad, 1)
  354. end;
  355. wait(1)
  356. spawn(function()
  357. Init()
  358. warn("Script has loaded and initialized")
  359. end)
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement