Advertisement
Suteishia

Roblox - Aimbot for any game

Jan 17th, 2020 (edited)
57,905
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 16.08 KB | None | 0 0
  1. --Brought to you by Sute#6666
  2. --https://discord.gg/Mkpq3gr4S4
  3. --https://sites.google.com/view/synaptics/home
  4.  
  5. pcall(function()
  6. local espcolor = Color3.fromRGB(140, 69, 102)
  7. local wallhack_esp_transparency = .4
  8. local gui_hide_button = {Enum.KeyCode.LeftControl, "h"}
  9. local plrs = game:GetService("Players")
  10. local lplr = game:GetService("Players").LocalPlayer
  11. local TeamBased = true ; local teambasedswitch = "o"
  12. local presskeytoaim = true; local aimkey = "e"
  13. aimbothider = false; aimbothiderspeed = .5
  14. local Aim_Assist = false ; Aim_Assist_Key = {Enum.KeyCode.LeftControl, "z"}
  15. local espupdatetime = 5; autoesp = false
  16. local abs = math.abs
  17. local mouselock = false
  18. local canaimat = true
  19. local lockaim = true; local lockangle = 5
  20. local ver = "2"
  21. local cam = game.Workspace.CurrentCamera
  22. local BetterDeathCount = true
  23.  
  24.  
  25. local mouse = lplr:GetMouse()
  26. local switch = false
  27. local key = "k"
  28. local aimatpart = nil
  29.  
  30.  
  31.  
  32.  
  33. local Gui = Instance.new("ScreenGui")
  34. local Move = Instance.new("Frame")
  35. local Main = Instance.new("Frame")
  36. local EspStatus = Instance.new("TextLabel")
  37. local st1 = Instance.new("TextLabel")
  38. local st1_2 = Instance.new("TextLabel")
  39. local st1_3 = Instance.new("TextLabel")
  40. local Name = Instance.new("TextLabel")
  41. --Properties:
  42.  
  43. Gui.Parent = plrs.LocalPlayer:WaitForChild("PlayerGui")
  44.  
  45.  
  46.  
  47. local gotstring = 0
  48. local function getrandomstring()
  49. gotstring = gotstring+666
  50. local str = ""
  51. local randomstring = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "g", "k", "l", "m", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",
  52. "?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?", "`", "$",
  53. "0","1","2","3","4","5","6","7","8","9", }
  54. local counting123 = 0
  55. for i, v in ipairs(randomstring) do
  56. counting123 = i
  57. end
  58. do
  59. math.randomseed(tick()+gotstring)
  60. for i = 3, math.random(1,100) do
  61. math.randomseed(i+tick()+gotstring)
  62.  
  63. local oneortwo = math.random(1,2)
  64. if oneortwo == 2 then
  65. math.randomseed(i+tick()+gotstring)
  66. str = str..""..randomstring[math.random(1, counting123)]
  67. else
  68. math.randomseed(i+tick()+gotstring)
  69. str = str..""..string.upper(randomstring[math.random(1, counting123)])
  70. end
  71.  
  72. end
  73. end
  74. return str
  75. end
  76. local mousedown = false
  77. local isonmovething = false
  78. local mouseoffset = Vector2.new()
  79. local mousedown = false
  80.  
  81.  
  82.  
  83.  
  84. Gui.Name = getrandomstring()
  85.  
  86. Move.Name = getrandomstring()
  87. Move.Draggable = true
  88. Move.Parent = Gui
  89. Move.BackgroundColor3 = Color3.new(0.0431373, 1, 0.0745098)
  90. Move.BackgroundTransparency = 0.40000000596046
  91. Move.BorderSizePixel = 0
  92. Move.Position = UDim2.new(0.5, 0,0.018, 0)
  93. Move.Size = UDim2.new(0.2, 0, 0.0320388414, 0)
  94.  
  95. Move.MouseEnter:Connect(function()
  96.  
  97. isonmovething = true
  98.  
  99. end)
  100. Move.MouseLeave:Connect(function()
  101.  
  102. isonmovething = mousedown and true or false
  103. end)
  104. mouse.Button1Down:connect(function()
  105. mousedown = true
  106. mouseoffset = Move.AbsolutePosition - Vector2.new(mouse.X, mouse.Y)
  107. end)
  108. mouse.Button1Up:connect(function()
  109. mousedown = false
  110. end)
  111.  
  112. mouse.Move:Connect(function()
  113. if isonmovething == true and mousedown then
  114. Move.Position = UDim2.new(0, mouseoffset.X + mouse.X, 0, mouseoffset.Y + mouse.Y)
  115. end
  116. end)
  117.  
  118. Main.Name = getrandomstring()
  119. Main.Parent = Move
  120. Main.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  121. Main.BackgroundTransparency = 0.69999998807907
  122. Main.Position = UDim2.new(0, 0, 0.995670795, 0)
  123. Main.Size = UDim2.new(1.0000006, 0, 11.2, 0)
  124.  
  125. EspStatus.Name = getrandomstring()
  126. EspStatus.Parent = Main
  127. EspStatus.BackgroundColor3 = Color3.new(1, 1, 1)
  128. EspStatus.BackgroundTransparency = 1
  129. EspStatus.Size = UDim2.new(0.272955924, 0, 0.161862016, 0)
  130. EspStatus.Font = Enum.Font.ArialBold
  131. EspStatus.Text = "Press T to update Esp"
  132. EspStatus.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  133. EspStatus.TextScaled = true
  134. EspStatus.TextSize = 14
  135. EspStatus.TextWrapped = true
  136.  
  137. st1.Name = getrandomstring()
  138. st1.Parent = Main
  139. st1.BackgroundColor3 = Color3.new(1, 1, 1)
  140. st1.BackgroundTransparency = 1
  141. st1.Position = UDim2.new(0.271787882, 0, 0, 0)
  142. st1.Size = UDim2.new(0.728211343, 0, 0.161862016, 0)
  143. st1.Font = Enum.Font.ArialBold
  144. st1.Text = "Press "..aimkey.." to lock on a person inside ur view"
  145. st1.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  146. st1.TextScaled = true
  147. st1.TextSize = 14
  148. st1.TextWrapped = true
  149.  
  150. st1_2.Name = getrandomstring()
  151. st1_2.Parent = Main
  152. st1_2.BackgroundColor3 = Color3.new(1, 1, 1)
  153. st1_2.BackgroundTransparency = 1
  154. st1_2.Position = UDim2.new(0, 0, 0.375590861, 0)
  155. st1_2.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
  156. st1_2.Font = Enum.Font.ArialBold
  157. st1_2.Text = "Press L to enable esp loop. Press Y to disable/enable aimbot hider"
  158. st1_2.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  159. st1_2.TextScaled = true
  160. st1_2.TextSize = 14
  161. st1_2.TextWrapped = true
  162.  
  163. local aimbothiderbox = Instance.new("TextBox")
  164. aimbothiderbox.Name = getrandomstring()
  165. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  166. aimbothiderbox.Size = UDim2.new(1, 0,0.162, 0)
  167. aimbothiderbox.TextScaled = true
  168. aimbothiderbox.TextColor3 =Color3.fromRGB(255, 0, 0)
  169. aimbothiderbox.Position = UDim2.new(0, 0,0.853, 0)
  170. aimbothiderbox.BackgroundTransparency = 1
  171. aimbothiderbox.Parent = Main
  172.  
  173. st1_3.Name = getrandomstring()
  174. st1_3.Parent = Main
  175. st1_3.BackgroundColor3 = Color3.new(1, 1, 1)
  176. st1_3.BackgroundTransparency = 1
  177. st1_3.Position = UDim2.new(0, 0, 0.18558608, 0)
  178. st1_3.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
  179. st1_3.Font = Enum.Font.ArialBold
  180. st1_3.Text = "Press O to change team based mode"
  181. st1_3.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  182. st1_3.TextScaled = true
  183. st1_3.TextSize = 14
  184. st1_3.TextWrapped = true
  185. local teambasedstatus = st1_3:Clone()
  186. teambasedstatus.Parent = Main
  187. teambasedstatus.TextScaled = true
  188. teambasedstatus.Position = UDim2.new(0, 0,.7, 0)
  189. teambasedstatus.Size = UDim2.new(1, 0,.1, 0)
  190. teambasedstatus.Name = getrandomstring()
  191. teambasedstatus.Text = "Team Based: "..tostring(TeamBased)
  192. local espstatustext = teambasedstatus:Clone()
  193. espstatustext.Name = getrandomstring()
  194. espstatustext.Position = UDim2.new(0, 0,0.58, 0)
  195. espstatustext.Text = "Esp loop :"..tostring(autoesp)
  196. espstatustext.Parent = Main
  197. local hide = Instance.new("TextButton")
  198. hide.Text = "_"
  199. hide.BackgroundTransparency = 1
  200. hide.TextScaled = true
  201. hide.TextWrapped = true
  202. hide.Size = UDim2.new(0.1, 0,1, 0)
  203. hide.Position = UDim2.new(0.9, 0,-0.15, 0)
  204. hide.Name = getrandomstring()
  205. hide.Parent = Move
  206. Name.Name = getrandomstring()
  207. Name.Parent = Move
  208. Name.BackgroundColor3 = Color3.new(1, 1, 1)
  209. Name.BackgroundTransparency = 1
  210. Name.Size = UDim2.new(0.838, 0, 1, 0)
  211. Name.Font = Enum.Font.Arial
  212. Name.Text = "FPS gui v"..ver
  213. Name.TextColor3 = Color3.new(0, 0, 0)
  214. Name.TextScaled = true
  215. Name.TextSize = 14
  216. Name.TextWrapped = true
  217. Name.TextXAlignment = Enum.TextXAlignment.Left
  218. local scr = Instance.new("ScrollingFrame")
  219. scr.Size = Main.Size
  220. scr.Position = Main.Position
  221. scr.ScrollBarThickness = 0
  222. scr.BackgroundTransparency = 1
  223. scr.Name = getrandomstring()
  224. Main.Size = UDim2.new(1, 0, 1, 0)
  225. Main.Position = UDim2.new(0,0,0,0)
  226. Main.Parent = scr
  227. scr.Parent = Move
  228. startpos = Main.Position
  229. Move.Active = true
  230.  
  231. -- Scripts:
  232. hided = false
  233. hide.MouseButton1Click:Connect(function()
  234. if hided == false then
  235. hided = true
  236. Main:TweenPosition(UDim2.new(0, 0, -1.5, 0))
  237. else
  238. hided = false
  239. Main:TweenPosition(startpos)
  240. end
  241. end)
  242.  
  243.  
  244. aimbothiderbox.FocusLost:Connect(function()
  245. local numb = tonumber(aimbothiderbox.Text)
  246. if aimbothider == true then
  247. aimbothiderbox.TextColor3 =Color3.fromRGB(11, 255, 19)
  248. else
  249. aimbothiderbox.TextColor3 =Color3.fromRGB(255, 0, 0)
  250. end
  251. if numb ~= nil then
  252. aimbothiderspeed = numb
  253. if aimbothider == true then
  254. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  255. else
  256. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  257. end
  258. else
  259. if aimbothider == true then
  260. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  261. else
  262. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  263. end
  264. end
  265. end)
  266.  
  267.  
  268. local plrsforaim = {}
  269.  
  270.  
  271. Move.Draggable = true
  272. Gui.ResetOnSpawn = false
  273. --Gui.Name = "Chat"
  274. Gui.DisplayOrder = 999
  275. if not game:GetService("CoreGui") then
  276. Gui.Parent = plrs.LocalPlayer.PlayerGui
  277. else
  278. Gui.Parent = game:GetService("CoreGui")
  279. end
  280.  
  281.  
  282.  
  283.  
  284.  
  285. f = {}
  286. local espforlder
  287. local partconverter = Instance.new("Part")
  288.  
  289. f.addesp = function()
  290. pcall(function()
  291. --print("ESP ran")
  292. if espforlder then
  293. espforlder:Destroy()
  294. espforlder = Instance.new("Folder")
  295. espforlder.Parent = game.Workspace.CurrentCamera
  296. else
  297. espforlder = Instance.new("Folder")
  298. espforlder.Parent = game.Workspace.CurrentCamera
  299. end
  300. for i, v in pairs(espforlder:GetChildren()) do
  301. v:Destroy()
  302. end
  303. for _, plr in pairs(plrs:GetChildren()) do
  304. if plr.Character and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name then
  305. if TeamBased == true then
  306. if plr.Team.Name ~= plrs.LocalPlayer.Team.Name  then
  307. local e = espforlder:FindFirstChild(plr.Name)
  308. if not e then
  309. local fold = Instance.new("Folder", espforlder)
  310. fold.Name = plr.Name
  311.  
  312. --partconverter.BrickColor = plr.Team.Color
  313. --local teamc = partconverter.Color
  314. for i, p in pairs(plr.Character:GetChildren()) do
  315. if p:IsA("BasePart") and p.Name ~= "HumanoidRootPart" then
  316. local urmom = Instance.new("BoxHandleAdornment")
  317. urmom.ZIndex = 10
  318. urmom.AlwaysOnTop = true
  319. urmom.Color3 = espcolor
  320. urmom.Size = p.Size
  321. urmom.Adornee = p
  322. urmom.Name = tick().." Ur mom has big gay"
  323. urmom.Transparency = wallhack_esp_transparency
  324. urmom.Parent = fold
  325.  
  326. end
  327. end
  328. plr.Character.Humanoid.Died:Connect(function()
  329. fold:Destroy()
  330. end)
  331. end
  332. end
  333. else
  334. local e = espforlder:FindFirstChild(plr.Name)
  335. if not e then
  336. local fold = Instance.new("Folder", espforlder)
  337. fold.Name = plr.Name
  338.  
  339. --partconverter.BrickColor = plr.Team.Color
  340. --local teamc = Move.BackgroundColor3
  341. for i, p in pairs(plr.Character:GetChildren()) do
  342. if p:IsA("BasePart") and p.Name ~= "HumanoidRootPart" then
  343. local urmom = Instance.new("BoxHandleAdornment")
  344. urmom.ZIndex = 10
  345. urmom.AlwaysOnTop = true
  346. urmom.Color3 = espcolor
  347. urmom.Size = p.Size
  348. urmom.Adornee = p
  349. urmom.Name = tick().." Ur mom has big gay"
  350. urmom.Transparency = wallhack_esp_transparency
  351. urmom.Parent = fold
  352. end
  353. end
  354. plr.Character.Humanoid.Died:Connect(function()
  355. fold:Destroy()
  356. end)
  357. end
  358. end
  359.  
  360.  
  361. end
  362. end
  363. end)
  364. end
  365. local uis = game:GetService("UserInputService")
  366. local bringall = false
  367. local hided2 = false
  368. mouse.KeyDown:Connect(function(a)
  369. if a == "t" then
  370. --print("worked1")
  371. f.addesp()
  372. elseif a == gui_hide_button[2] and uis:IsKeyDown(gui_hide_button[1]) then
  373. if hided2 == false then
  374. hided2 = true
  375. autoesp =false
  376. if espforlder then
  377. espforlder:Destroy()
  378. end
  379. Gui.Enabled = false
  380. else
  381. Gui.Enabled = true
  382. hided2 = false
  383. end
  384. elseif a == "u" then
  385. if mouselock == false then
  386. mouselock = true
  387. else
  388. mouselock = false
  389. end
  390. elseif a == "y" then
  391. if aimbothider == false then
  392. aimbothider = true
  393. if aimbothider == true then
  394. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  395. else
  396. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  397. end
  398. else
  399.  
  400. aimbothider = false
  401. if aimbothider == true then
  402. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  403. else
  404. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  405. end
  406. end
  407. if aimbothider == true then
  408. aimbothiderbox.TextColor3 =Color3.fromRGB(11, 255, 19)
  409. else
  410. aimbothiderbox.TextColor3 =Color3.fromRGB(255, 0, 0)
  411. end
  412. elseif a == "l" then
  413. if autoesp == false then
  414. autoesp = true
  415. else
  416. autoesp = false
  417. end
  418. elseif a == Aim_Assist_Key[2] and uis:IsKeyDown(Aim_Assist_Key[1]) then
  419. if Aim_Assist == true then
  420. Aim_Assist = false
  421. --print("disabled")
  422. else
  423. Aim_Assist = true
  424. end
  425. end
  426. if a == "j" then
  427. if mouse.Target then
  428. mouse.Target:Destroy()
  429. end
  430. end
  431. if a == key then
  432. if switch == false then
  433. switch = true
  434. else
  435. switch = false
  436. if aimatpart ~= nil then
  437. aimatpart = nil
  438. end
  439. end
  440. elseif a == teambasedswitch then
  441. if TeamBased == true then
  442. TeamBased = false
  443. teambasedstatus.Text = "Team Based: "..tostring(TeamBased)
  444. else
  445. TeamBased = true
  446. teambasedstatus.Text = "Team Based: "..tostring(TeamBased)
  447. end
  448. elseif a == aimkey then
  449. if not aimatpart then
  450. local maxangle = math.rad(20)
  451. for i, plr in pairs(plrs:GetChildren()) do
  452. if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  453. if TeamBased == true then
  454. if plr.Team.Name ~= lplr.Team.Name then
  455. local an = checkfov(plr.Character.Head)
  456. if an < maxangle then
  457. maxangle = an
  458. aimatpart = plr.Character.Head
  459. end
  460. end
  461. else
  462. local an = checkfov(plr.Character.Head)
  463. if an < maxangle then
  464. maxangle = an
  465. aimatpart = plr.Character.Head
  466. end
  467. --print(plr)
  468. end
  469. local old = aimatpart
  470. plr.Character.Humanoid.Died:Connect(function()
  471. --print("died")
  472. if aimatpart and aimatpart == old then
  473. aimatpart = nil
  474. end
  475. end)
  476.  
  477. end
  478. end
  479. else
  480. aimatpart = nil
  481. canaimat = false
  482. delay(1.1, function()
  483. canaimat = true
  484. end)
  485. end
  486. end
  487. end)
  488.  
  489. function getfovxyz (p0, p1, deg)
  490. local x1, y1, z1 = p0:ToOrientation()
  491. local cf = CFrame.new(p0.p, p1.p)
  492. local x2, y2, z2 = cf:ToOrientation()
  493. local d = math.deg
  494. if deg then
  495. return Vector3.new(d(x1-x2), d(y1-y2), d(z1-z2))
  496. else
  497. return Vector3.new((x1-x2), (y1-y2), (z1-z2))
  498. end
  499. end
  500.  
  501.  
  502. function aimat(part)
  503. if part then
  504. if aimbothider == true or Aim_Assist == true then
  505. cam.CFrame = cam.CFrame:Lerp(CFrame.new(cam.CFrame.p, part.CFrame.p), aimbothiderspeed)
  506. else
  507.  
  508. cam.CFrame = CFrame.new(cam.CFrame.p, part.CFrame.p)
  509. end
  510. end
  511. end
  512. function checkfov (part)
  513. local fov = getfovxyz(game.Workspace.CurrentCamera.CFrame, part.CFrame)
  514. local angle = math.abs(fov.X) + math.abs(fov.Y)
  515. return angle
  516. end
  517. pcall(function()
  518. delay(0, function()
  519. while wait(.4) do
  520. if Aim_Assist and not aimatpart and canaimat and lplr.Character and lplr.Character.Humanoid and lplr.Character.Humanoid.Health > 0 then
  521. for i, plr in pairs(plrs:GetChildren()) do
  522.  
  523.  
  524. local minangle = math.rad(5.5)
  525. local lastpart = nil
  526. local function gg(plr)
  527. pcall(function()
  528. if plr.Name ~= lplr.Name and plr.Character and plr.Character.Humanoid and plr.Character.Humanoid.Health > 0 and plr.Character.Head then
  529. local raycasted = false
  530. local cf1 = CFrame.new(cam.CFrame.p, plr.Character.Head.CFrame.p) * CFrame.new(0, 0, -4)
  531. local r1 = Ray.new(cf1.p, cf1.LookVector * 9000)
  532. local obj, pos = game.Workspace:FindPartOnRayWithIgnoreList(r1,  {lplr.Character.Head})
  533. local dist = (plr.Character.Head.CFrame.p- pos).magnitude
  534. if dist < 4 then
  535. raycasted = true
  536. end
  537. if raycasted == true then
  538. local an1 = getfovxyz(cam.CFrame, plr.Character.Head.CFrame)
  539. local an = abs(an1.X) + abs(an1.Y)
  540. if an < minangle then
  541. minangle = an
  542. lastpart = plr.Character.Head
  543. end
  544. end
  545. end
  546. end)
  547. end
  548. if TeamBased then
  549. if plr.Team.Name ~= lplr.Team.Name then
  550. gg(plr)
  551. end
  552. else
  553. gg(plr)
  554. end
  555. --print(math.deg(minangle))
  556. if lastpart then
  557. aimatpart = lastpart
  558. aimatpart.Parent.Humanoid.Died:Connect(function()
  559. if aimatpart == lastpart then
  560. aimatpart = nil
  561. end
  562. end)
  563.  
  564. end
  565. end
  566. end
  567. end
  568. end)
  569. end)
  570. local oldheadpos
  571. local lastaimapart
  572. game:GetService("RunService").RenderStepped:Connect(function()
  573. espstatustext.Text = "Esp loop :"..tostring(autoesp)
  574. if aimatpart and lplr.Character and lplr.Character.Head then
  575. if BetterDeathCount and lastaimapart and lastaimapart == aimatpart then
  576. local dist = (oldheadpos - aimatpart.CFrame.p).magnitude
  577. if dist > 40 then
  578. aimatpart = nil
  579. end
  580. end
  581. lastaimapart = aimatpart
  582. oldheadpos = lastaimapart.CFrame.p
  583. do
  584. if aimatpart.Parent == plrs.LocalPlayer.Character then
  585. aimatpart = nil
  586. end
  587. aimat(aimatpart)
  588. pcall(function()
  589. if Aim_Assist == true then
  590. local cf1 = CFrame.new(cam.CFrame.p, aimatpart.CFrame.p) * CFrame.new(0, 0, -4)
  591. local r1 = Ray.new(cf1.p, cf1.LookVector * 1000)
  592. local obj, pos = game.Workspace:FindPartOnRayWithIgnoreList(r1,  {lplr.Character.Head})
  593. local dist = (aimatpart.CFrame.p- pos).magnitude
  594. if obj then
  595. --print(obj:GetFullName())
  596. end
  597. if not obj or dist > 6 then
  598. aimatpart = nil
  599. --print("ooof")
  600. end
  601. canaimat = false
  602. delay(.5, function()
  603. canaimat = true
  604. end)
  605. end
  606. end)
  607. end
  608.  
  609.  
  610.  
  611. end
  612. end)
  613. delay(0, function()
  614. while wait(espupdatetime) do
  615. if autoesp == true then
  616. pcall(function()
  617. f.addesp()
  618. end)
  619. end
  620. end
  621. end)
  622. --warn("loaded")
  623. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement