Advertisement
XeoNTime

Arsenal Noclip

Feb 20th, 2020
946
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.49 KB | None | 0 0
  1. -- By BAcon_Man#2232 on discord
  2. -- Added Noclip [aimbot is R now] [Noclip is e]
  3. local plrs = game:GetService("Players")
  4. local TeamBased = true ; local teambasedswitch = "o"
  5. local presskeytoaim = true; local aimkey = "r"
  6. local raycast = false
  7.  
  8. local espupdatetime = 5; autoesp = true
  9.  
  10.  
  11.  
  12. local lockaim = true; local lockangle = 5
  13.  
  14.  
  15.  
  16. --function findwat(folder, what)
  17. -- for i, smth in pairs(folder:GetChildren()) do
  18. -- if string.find(string.lower(tostring(smth)), string.lower(what)) then
  19. -- return smth
  20. -- end
  21. -- end
  22. --end
  23. --
  24. --local plrs = findwat(game, "Players")
  25.  
  26.  
  27.  
  28.  
  29. local Gui = Instance.new("ScreenGui")
  30. local Move = Instance.new("Frame")
  31. local Main = Instance.new("Frame")
  32. local EspStatus = Instance.new("TextLabel")
  33. local st1 = Instance.new("TextLabel")
  34. local st1_2 = Instance.new("TextLabel")
  35. local st1_3 = Instance.new("TextLabel")
  36. local Name = Instance.new("TextLabel")
  37. --Properties:
  38. Gui.Name = "Gui"
  39. Gui.Parent = plrs.LocalPlayer:WaitForChild("PlayerGui")
  40.  
  41. Move.Name = "Move"
  42. Move.Parent = Gui
  43. Move.BackgroundColor3 = Color3.new(0.545098, 0, 0)
  44. Move.BackgroundTransparency = 1
  45. Move.BorderSizePixel = 0
  46. Move.Draggable = true
  47. Move.Position = UDim2.new(0.005, 0, -0.15, 0)
  48. Move.Size = UDim2.new(0.28141585, 0, 0.0320388414, 0)
  49.  
  50. Main.Name = "Main"
  51. Main.Parent = Move
  52. Main.BackgroundColor3 = Color3.new(1, 1, 1)
  53. Main.Position = UDim2.new(0, 0, 0, 0)
  54. Main.Size = UDim2.new(0, 0, 0, 0)
  55. Main.Style = Enum.FrameStyle.RobloxSquare
  56.  
  57. EspStatus.Name = "EspStatus"
  58. EspStatus.Parent = Main
  59. EspStatus.BackgroundColor3 = Color3.new(1, 1, 1)
  60. EspStatus.BackgroundTransparency = 1
  61. EspStatus.Position = UDim2.new(0, 0, 0.300000012, 0)
  62. EspStatus.Size = UDim2.new(1, 0, 0.162, 0)
  63. EspStatus.Font = Enum.Font.ArialBold
  64. EspStatus.Text = "Press O to change team based mode"
  65. EspStatus.TextColor3 = Color3.new(0.6, 0.196078, 0.8)
  66. EspStatus.TextScaled = true
  67. EspStatus.TextWrapped = true
  68.  
  69. st1.Name = "st1"
  70. st1.Parent = Main
  71. st1.BackgroundColor3 = Color3.new(1, 1, 1)
  72. st1.BackgroundTransparency = 1
  73. st1.Position = UDim2.new(0.271787882, 0, 0, 0)
  74. st1.Size = UDim2.new(0.728211343, 0, 0.161862016, 0)
  75. st1.Font = Enum.Font.ArialBold
  76. st1.Text = ""
  77. st1.TextColor3 = Color3.new(0.0784314, 0.541176, 0)
  78. st1.TextScaled = true
  79. st1.TextSize = 14
  80. st1.TextWrapped = true
  81.  
  82. -- Scripts:
  83.  
  84.  
  85. local plrsforaim = {}
  86.  
  87. local lplr = game:GetService("Players").LocalPlayer
  88. Move.Draggable = true
  89. Gui.ResetOnSpawn = false
  90. Gui.Name = "Chat"
  91. Gui.DisplayOrder = 999
  92.  
  93. Gui.Parent = plrs.LocalPlayer.PlayerGui
  94.  
  95.  
  96. f = {}
  97. local espforlder
  98.  
  99. f.addesp = function()
  100. --print("ESP ran")
  101. if espforlder then
  102. else
  103. espforlder = Instance.new("Folder")
  104. espforlder.Parent = game.Workspace.CurrentCamera
  105. end
  106. for i, v in pairs(espforlder:GetChildren()) do
  107. v:Destroy()
  108. end
  109. for _, plr in pairs(plrs:GetChildren()) do
  110. if plr.Character and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name then
  111. if TeamBased == true then
  112. if plr.Team.Name ~= plrs.LocalPlayer.Team.Name then
  113. local e = espforlder:FindFirstChild(plr.Name)
  114. if not e then
  115. --print("Added esp for team based")
  116. local bill = Instance.new("BillboardGui", espforlder)
  117. bill.Name = plr.Name
  118. bill.AlwaysOnTop = true
  119. bill.Size = UDim2.new(1,0,1,0)
  120. bill.Adornee = plr.Character.Head
  121. local Frame = Instance.new('Frame',bill)
  122. Frame.Active = true
  123. Frame.BackgroundColor3 = Color3.new(0.541176, 0.168627, 0.886275)
  124. Frame.BackgroundTransparency = 0
  125. Frame.BorderSizePixel = 0
  126. Frame.AnchorPoint = Vector2.new(.5, .5)
  127. Frame.Position = UDim2.new (0.5,0,0.5,0)
  128. Frame.Size = UDim2.new (1,0,1,0)
  129. Frame.Rotation = 0
  130. plr.Character.Humanoid.Died:Connect(function()
  131. bill:Destroy()
  132. end)
  133. end
  134. end
  135. else
  136. local r = espforlder:FindFirstChild(plr.Name)
  137. if not r then
  138. --print("Added esp")
  139. local bill = Instance.new("BillboardGui", espforlder)
  140. bill.Name = plr.Name
  141. bill.AlwaysOnTop = true
  142. bill.Size = UDim2.new(1,0,1,0)
  143. bill.Adornee = plr.Character.Head
  144. local Frame = Instance.new('Frame',bill)
  145. Frame.Active = true
  146. Frame.BackgroundColor3 = Color3.new(0.541176, 0.168627, 0.886275)
  147. Frame.BackgroundTransparency = 0
  148. Frame.BorderSizePixel = 0
  149. Frame.AnchorPoint = Vector2.new(.5, .5)
  150. Frame.Position = UDim2.new (0.5,0,0.5,0)
  151. Frame.Size = UDim2.new (1,0,1,0)
  152. Frame.Rotation = 0
  153. plr.Character.Humanoid.Died:Connect(function()
  154. bill:Destroy()
  155. end)
  156. end
  157. end
  158.  
  159.  
  160. end
  161. end
  162. end
  163. local cam = game.Workspace.CurrentCamera
  164.  
  165. local mouse = lplr:GetMouse()
  166. local switch = false
  167. local key = "k"
  168. local aimatpart = nil
  169. mouse.KeyDown:Connect(function(a)
  170. if a == "t" then
  171. print("worked1")
  172. f.addesp()
  173. elseif a == "u" then
  174. if raycast == true then
  175. raycast = false
  176. else
  177. raycast = true
  178. end
  179. elseif a == "l" then
  180. if autoesp == false then
  181. autoesp = true
  182. else
  183. autoesp = false
  184. end
  185. end
  186. if a == "j" then
  187. if mouse.Target then
  188. mouse.Target:Destroy()
  189. end
  190. end
  191. if a == key then
  192. if switch == false then
  193. switch = true
  194. else
  195. switch = false
  196. if aimatpart ~= nil then
  197. aimatpart = nil
  198. end
  199. end
  200. elseif a == teambasedswitch then
  201. if TeamBased == true then
  202. TeamBased = false
  203. teambasedstatus.Text = tostring(TeamBased)
  204. else
  205. TeamBased = true
  206. teambasedstatus.Text = tostring(TeamBased)
  207. end
  208. elseif a == aimkey then
  209. if not aimatpart then
  210. local maxangle = math.rad(20)
  211. for i, plr in pairs(plrs:GetChildren()) do
  212. if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  213. if TeamBased == true then
  214. if plr.Team.Name ~= lplr.Team.Name then
  215. local an = checkfov(plr.Character.Head)
  216. if an < maxangle then
  217. maxangle = an
  218. aimatpart = plr.Character.Head
  219. end
  220. end
  221. else
  222. local an = checkfov(plr.Character.Head)
  223. if an < maxangle then
  224. maxangle = an
  225. aimatpart = plr.Character.Head
  226. end
  227. print(plr)
  228. end
  229. plr.Character.Humanoid.Died:Connect(function()
  230. if aimatpart.Parent == plr.Character or aimatpart == nil then
  231. aimatpart = nil
  232. end
  233. end)
  234. end
  235. end
  236. else
  237. aimatpart = nil
  238. end
  239. end
  240. end)
  241.  
  242. function getfovxyz (p0, p1, deg)
  243. local x1, y1, z1 = p0:ToOrientation()
  244. local cf = CFrame.new(p0.p, p1.p)
  245. local x2, y2, z2 = cf:ToOrientation()
  246. --local d = math.deg
  247. if deg then
  248. --return Vector3.new(d(x1-x2), d(y1-y2), d(z1-z2))
  249. else
  250. return Vector3.new((x1-x2), (y1-y2), (z1-z2))
  251. end
  252. end
  253.  
  254. function getaimbotplrs()
  255. plrsforaim = {}
  256. for i, plr in pairs(plrs:GetChildren()) do
  257. if plr.Character and plr.Character.Humanoid and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name and plr.Character.Head then
  258.  
  259. if TeamBased == true then
  260. if plr.Team.Name ~= lplr.Team.Name then
  261. local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  262. local r = Ray.new(cf, cf.LookVector * 10000)
  263. local ign = {}
  264. for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
  265. if v:IsA("BasePart") then
  266. table.insert(ign , v)
  267. end
  268. end
  269. local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
  270. if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
  271. table.insert(plrsforaim, obj)
  272. end
  273. end
  274. else
  275. local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  276. local r = Ray.new(cf, cf.LookVector * 10000)
  277. local ign = {}
  278. for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
  279. if v:IsA("BasePart") then
  280. table.insert(ign , v)
  281. end
  282. end
  283. local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
  284. if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
  285. table.insert(plrsforaim, obj)
  286. end
  287. end
  288.  
  289.  
  290. end
  291. end
  292. end
  293.  
  294. function aimat(part)
  295. cam.CFrame = CFrame.new(cam.CFrame.p, part.CFrame.p)
  296. end
  297. function checkfov (part)
  298. local fov = getfovxyz(game.Workspace.CurrentCamera.CFrame, part.CFrame)
  299. local angle = math.abs(fov.X) + math.abs(fov.Y)
  300. return angle
  301. end
  302.  
  303. game:GetService("RunService").RenderStepped:Connect(function()
  304. if aimatpart then
  305. aimat(aimatpart)
  306. if aimatpart.Parent == plrs.LocalPlayer.Character then
  307. aimatpart = nil
  308. end
  309. end
  310.  
  311.  
  312. -- if switch == true then
  313. -- local maxangle = 99999
  314. --
  315. -- --print("Loop")
  316. -- if true and raycast == false then
  317. -- for i, plr in pairs(plrs:GetChildren()) do
  318. -- if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  319. -- if TeamBased then
  320. -- if plr.Team.Name ~= lplr.Team.Name or plr.Team.TeamColor ~= lplr.Team.TeamColor then
  321. -- local an = checkfov(plr.Character.Head)
  322. -- if an < maxangle then
  323. -- maxangle = an
  324. -- aimatpart = plr.Character.Head
  325. -- if an < lockangle then
  326. -- break
  327. -- end
  328. -- end
  329. -- end
  330. -- else
  331. -- local an = checkfov(plr.Character.Head)
  332. -- if an < maxangle then
  333. -- maxangle = an
  334. -- aimatpart = plr.Character.Head
  335. -- if an < lockangle then
  336. -- break
  337. -- end
  338. -- end
  339. -- end
  340. --
  341. --
  342. --
  343. --
  344. -- end
  345. -- end
  346. -- elseif raycast == true then
  347. --
  348. -- end
  349.  
  350. if raycast == true and switch == false and not aimatpart then
  351. getaimbotplrs()
  352. aimatpart = nil
  353. local maxangle = 999
  354. for i, v in ipairs(plrsforaim) do
  355. if v.Parent ~= lplr.Character then
  356. local an = checkfov(v)
  357. if an < maxangle and v ~= lplr.Character.Head then
  358. maxangle = an
  359. aimatpart = v
  360. print(v:GetFullName())
  361. v.Parent.Humanoid.Died:connect(function()
  362. aimatpart = nil
  363. end)
  364. end
  365. end
  366. end
  367.  
  368. end
  369. end)
  370. delay(0, function()
  371. while wait(espupdatetime) do
  372. if autoesp == true then
  373. pcall(function()
  374. f.addesp()
  375. end)
  376. end
  377. end
  378. end)
  379. warn("loaded")
  380. noclip = false
  381. game:GetService('RunService').Stepped:connect(function()
  382. if noclip then
  383. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  384. end
  385. end)
  386. plr = game.Players.LocalPlayer
  387. mouse = plr:GetMouse()
  388. mouse.KeyDown:connect(function(key)
  389.  
  390. if key == "e" then
  391. noclip = not noclip
  392. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  393. end
  394. end)
  395. print('Loaded')
  396. print('Press "E" to noclip')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement