Roblox - Aimbot for any game - Pastebin.com (2024)

  1. --Brought to you by Sute#6666

  2. --https://discord.gg/Mkpq3gr4S4

  3. --https://sites.google.com/view/synaptics/home

  4. pcall(function()

  5. local espcolor = Color3.fromRGB(140, 69, 102)

  6. local wallhack_esp_transparency = .4

  7. local gui_hide_button = {Enum.KeyCode.LeftControl, "h"}

  8. local plrs = game:GetService("Players")

  9. local lplr = game:GetService("Players").LocalPlayer

  10. local TeamBased = true ; local teambasedswitch = "o"

  11. local presskeytoaim = true; local aimkey = "e"

  12. aimbothider = false; aimbothiderspeed = .5

  13. local Aim_Assist = false ; Aim_Assist_Key = {Enum.KeyCode.LeftControl, "z"}

  14. local espupdatetime = 5; autoesp = false

  15. local abs = math.abs

  16. local mouselock = false

  17. local canaimat = true

  18. local lockaim = true; local lockangle = 5

  19. local ver = "2"

  20. local cam = game.Workspace.CurrentCamera

  21. local BetterDeathCount = true

  22. local mouse = lplr:GetMouse()

  23. local switch = false

  24. local key = "k"

  25. local aimatpart = nil

  26. local Gui = Instance.new("ScreenGui")

  27. local Move = Instance.new("Frame")

  28. local Main = Instance.new("Frame")

  29. local EspStatus = Instance.new("TextLabel")

  30. local st1 = Instance.new("TextLabel")

  31. local st1_2 = Instance.new("TextLabel")

  32. local st1_3 = Instance.new("TextLabel")

  33. local Name = Instance.new("TextLabel")

  34. --Properties:

  35. Gui.Parent = plrs.LocalPlayer:WaitForChild("PlayerGui")

  36. local gotstring = 0

  37. local function getrandomstring()

  38. gotstring = gotstring+666

  39. local str = ""

  40. 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",

  41. "?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?", "`", "$",

  42. "0","1","2","3","4","5","6","7","8","9", }

  43. local counting123 = 0

  44. for i, v in ipairs(randomstring) do

  45. counting123 = i

  46. end

  47. do

  48. math.randomseed(tick()+gotstring)

  49. for i = 3, math.random(1,100) do

  50. math.randomseed(i+tick()+gotstring)

  51. local oneortwo = math.random(1,2)

  52. if oneortwo == 2 then

  53. math.randomseed(i+tick()+gotstring)

  54. str = str..""..randomstring[math.random(1, counting123)]

  55. else

  56. math.randomseed(i+tick()+gotstring)

  57. str = str..""..string.upper(randomstring[math.random(1, counting123)])

  58. end

  59. end

  60. end

  61. return str

  62. end

  63. local mousedown = false

  64. local isonmovething = false

  65. local mouseoffset = Vector2.new()

  66. local mousedown = false

  67. Gui.Name = getrandomstring()

  68. Move.Name = getrandomstring()

  69. Move.Draggable = true

  70. Move.Parent = Gui

  71. Move.BackgroundColor3 = Color3.new(0.0431373, 1, 0.0745098)

  72. Move.BackgroundTransparency = 0.40000000596046

  73. Move.BorderSizePixel = 0

  74. Move.Position = UDim2.new(0.5, 0,0.018, 0)

  75. Move.Size = UDim2.new(0.2, 0, 0.0320388414, 0)

  76. Move.MouseEnter:Connect(function()

  77. isonmovething = true

  78. end)

  79. Move.MouseLeave:Connect(function()

  80. isonmovething = mousedown and true or false

  81. end)

  82. mouse.Button1Down:connect(function()

  83. mousedown = true

  84. mouseoffset = Move.AbsolutePosition - Vector2.new(mouse.X, mouse.Y)

  85. end)

  86. mouse.Button1Up:connect(function()

  87. mousedown = false

  88. end)

  89. mouse.Move:Connect(function()

  90. if isonmovething == true and mousedown then

  91. Move.Position = UDim2.new(0, mouseoffset.X + mouse.X, 0, mouseoffset.Y + mouse.Y)

  92. end

  93. end)

  94. Main.Name = getrandomstring()

  95. Main.Parent = Move

  96. Main.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)

  97. Main.BackgroundTransparency = 0.69999998807907

  98. Main.Position = UDim2.new(0, 0, 0.995670795, 0)

  99. Main.Size = UDim2.new(1.0000006, 0, 11.2, 0)

  100. EspStatus.Name = getrandomstring()

  101. EspStatus.Parent = Main

  102. EspStatus.BackgroundColor3 = Color3.new(1, 1, 1)

  103. EspStatus.BackgroundTransparency = 1

  104. EspStatus.Size = UDim2.new(0.272955924, 0, 0.161862016, 0)

  105. EspStatus.Font = Enum.Font.ArialBold

  106. EspStatus.Text = "Press T to update Esp"

  107. EspStatus.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)

  108. EspStatus.TextScaled = true

  109. EspStatus.TextSize = 14

  110. EspStatus.TextWrapped = true

  111. st1.Name = getrandomstring()

  112. st1.Parent = Main

  113. st1.BackgroundColor3 = Color3.new(1, 1, 1)

  114. st1.BackgroundTransparency = 1

  115. st1.Position = UDim2.new(0.271787882, 0, 0, 0)

  116. st1.Size = UDim2.new(0.728211343, 0, 0.161862016, 0)

  117. st1.Font = Enum.Font.ArialBold

  118. st1.Text = "Press "..aimkey.." to lock on a person inside ur view"

  119. st1.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)

  120. st1.TextScaled = true

  121. st1.TextSize = 14

  122. st1.TextWrapped = true

  123. st1_2.Name = getrandomstring()

  124. st1_2.Parent = Main

  125. st1_2.BackgroundColor3 = Color3.new(1, 1, 1)

  126. st1_2.BackgroundTransparency = 1

  127. st1_2.Position = UDim2.new(0, 0, 0.375590861, 0)

  128. st1_2.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)

  129. st1_2.Font = Enum.Font.ArialBold

  130. st1_2.Text = "Press L to enable esp loop. Press Y to disable/enable aimbot hider"

  131. st1_2.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)

  132. st1_2.TextScaled = true

  133. st1_2.TextSize = 14

  134. st1_2.TextWrapped = true

  135. local aimbothiderbox = Instance.new("TextBox")

  136. aimbothiderbox.Name = getrandomstring()

  137. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"

  138. aimbothiderbox.Size = UDim2.new(1, 0,0.162, 0)

  139. aimbothiderbox.TextScaled = true

  140. aimbothiderbox.TextColor3 =Color3.fromRGB(255, 0, 0)

  141. aimbothiderbox.Position = UDim2.new(0, 0,0.853, 0)

  142. aimbothiderbox.BackgroundTransparency = 1

  143. aimbothiderbox.Parent = Main

  144. st1_3.Name = getrandomstring()

  145. st1_3.Parent = Main

  146. st1_3.BackgroundColor3 = Color3.new(1, 1, 1)

  147. st1_3.BackgroundTransparency = 1

  148. st1_3.Position = UDim2.new(0, 0, 0.18558608, 0)

  149. st1_3.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)

  150. st1_3.Font = Enum.Font.ArialBold

  151. st1_3.Text = "Press O to change team based mode"

  152. st1_3.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)

  153. st1_3.TextScaled = true

  154. st1_3.TextSize = 14

  155. st1_3.TextWrapped = true

  156. local teambasedstatus = st1_3:Clone()

  157. teambasedstatus.Parent = Main

  158. teambasedstatus.TextScaled = true

  159. teambasedstatus.Position = UDim2.new(0, 0,.7, 0)

  160. teambasedstatus.Size = UDim2.new(1, 0,.1, 0)

  161. teambasedstatus.Name = getrandomstring()

  162. teambasedstatus.Text = "Team Based: "..tostring(TeamBased)

  163. local espstatustext = teambasedstatus:Clone()

  164. espstatustext.Name = getrandomstring()

  165. espstatustext.Position = UDim2.new(0, 0,0.58, 0)

  166. espstatustext.Text = "Esp loop :"..tostring(autoesp)

  167. espstatustext.Parent = Main

  168. local hide = Instance.new("TextButton")

  169. hide.Text = "_"

  170. hide.BackgroundTransparency = 1

  171. hide.TextScaled = true

  172. hide.TextWrapped = true

  173. hide.Size = UDim2.new(0.1, 0,1, 0)

  174. hide.Position = UDim2.new(0.9, 0,-0.15, 0)

  175. hide.Name = getrandomstring()

  176. hide.Parent = Move

  177. Name.Name = getrandomstring()

  178. Name.Parent = Move

  179. Name.BackgroundColor3 = Color3.new(1, 1, 1)

  180. Name.BackgroundTransparency = 1

  181. Name.Size = UDim2.new(0.838, 0, 1, 0)

  182. Name.Font = Enum.Font.Arial

  183. Name.Text = "FPS gui v"..ver

  184. Name.TextColor3 = Color3.new(0, 0, 0)

  185. Name.TextScaled = true

  186. Name.TextSize = 14

  187. Name.TextWrapped = true

  188. Name.TextXAlignment = Enum.TextXAlignment.Left

  189. local scr = Instance.new("ScrollingFrame")

  190. scr.Size = Main.Size

  191. scr.Position = Main.Position

  192. scr.ScrollBarThickness = 0

  193. scr.BackgroundTransparency = 1

  194. scr.Name = getrandomstring()

  195. Main.Size = UDim2.new(1, 0, 1, 0)

  196. Main.Position = UDim2.new(0,0,0,0)

  197. Main.Parent = scr

  198. scr.Parent = Move

  199. startpos = Main.Position

  200. Move.Active = true

  201. -- Scripts:

  202. hided = false

  203. hide.MouseButton1Click:Connect(function()

  204. if hided == false then

  205. hided = true

  206. Main:TweenPosition(UDim2.new(0, 0, -1.5, 0))

  207. else

  208. hided = false

  209. Main:TweenPosition(startpos)

  210. end

  211. end)

  212. aimbothiderbox.FocusLost:Connect(function()

  213. local numb = tonumber(aimbothiderbox.Text)

  214. if aimbothider == true then

  215. aimbothiderbox.TextColor3 =Color3.fromRGB(11, 255, 19)

  216. else

  217. aimbothiderbox.TextColor3 =Color3.fromRGB(255, 0, 0)

  218. end

  219. if numb ~= nil then

  220. aimbothiderspeed = numb

  221. if aimbothider == true then

  222. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"

  223. else

  224. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"

  225. end

  226. else

  227. if aimbothider == true then

  228. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"

  229. else

  230. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"

  231. end

  232. end

  233. end)

  234. local plrsforaim = {}

  235. Move.Draggable = true

  236. Gui.ResetOnSpawn = false

  237. --Gui.Name = "Chat"

  238. Gui.DisplayOrder = 999

  239. if not game:GetService("CoreGui") then

  240. Gui.Parent = plrs.LocalPlayer.PlayerGui

  241. else

  242. Gui.Parent = game:GetService("CoreGui")

  243. end

  244. f = {}

  245. local espforlder

  246. local partconverter = Instance.new("Part")

  247. f.addesp = function()

  248. pcall(function()

  249. --print("ESP ran")

  250. if espforlder then

  251. espforlder:Destroy()

  252. espforlder = Instance.new("Folder")

  253. espforlder.Parent = game.Workspace.CurrentCamera

  254. else

  255. espforlder = Instance.new("Folder")

  256. espforlder.Parent = game.Workspace.CurrentCamera

  257. end

  258. for i, v in pairs(espforlder:GetChildren()) do

  259. v:Destroy()

  260. end

  261. for _, plr in pairs(plrs:GetChildren()) do

  262. if plr.Character and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name then

  263. if TeamBased == true then

  264. if plr.Team.Name ~= plrs.LocalPlayer.Team.Name then

  265. local e = espforlder:FindFirstChild(plr.Name)

  266. if not e then

  267. local fold = Instance.new("Folder", espforlder)

  268. fold.Name = plr.Name

  269. --partconverter.BrickColor = plr.Team.Color

  270. --local teamc = partconverter.Color

  271. for i, p in pairs(plr.Character:GetChildren()) do

  272. if p:IsA("BasePart") and p.Name ~= "HumanoidRootPart" then

  273. local urmom = Instance.new("BoxHandleAdornment")

  274. urmom.ZIndex = 10

  275. urmom.AlwaysOnTop = true

  276. urmom.Color3 = espcolor

  277. urmom.Size = p.Size

  278. urmom.Adornee = p

  279. urmom.Name = tick().." Ur mom has big gay"

  280. urmom.Transparency = wallhack_esp_transparency

  281. urmom.Parent = fold

  282. end

  283. end

  284. plr.Character.Humanoid.Died:Connect(function()

  285. fold:Destroy()

  286. end)

  287. end

  288. end

  289. else

  290. local e = espforlder:FindFirstChild(plr.Name)

  291. if not e then

  292. local fold = Instance.new("Folder", espforlder)

  293. fold.Name = plr.Name

  294. --partconverter.BrickColor = plr.Team.Color

  295. --local teamc = Move.BackgroundColor3

  296. for i, p in pairs(plr.Character:GetChildren()) do

  297. if p:IsA("BasePart") and p.Name ~= "HumanoidRootPart" then

  298. local urmom = Instance.new("BoxHandleAdornment")

  299. urmom.ZIndex = 10

  300. urmom.AlwaysOnTop = true

  301. urmom.Color3 = espcolor

  302. urmom.Size = p.Size

  303. urmom.Adornee = p

  304. urmom.Name = tick().." Ur mom has big gay"

  305. urmom.Transparency = wallhack_esp_transparency

  306. urmom.Parent = fold

  307. end

  308. end

  309. plr.Character.Humanoid.Died:Connect(function()

  310. fold:Destroy()

  311. end)

  312. end

  313. end

  314. end

  315. end

  316. end)

  317. end

  318. local uis = game:GetService("UserInputService")

  319. local bringall = false

  320. local hided2 = false

  321. mouse.KeyDown:Connect(function(a)

  322. if a == "t" then

  323. --print("worked1")

  324. f.addesp()

  325. elseif a == gui_hide_button[2] and uis:IsKeyDown(gui_hide_button[1]) then

  326. if hided2 == false then

  327. hided2 = true

  328. autoesp =false

  329. if espforlder then

  330. espforlder:Destroy()

  331. end

  332. Gui.Enabled = false

  333. else

  334. Gui.Enabled = true

  335. hided2 = false

  336. end

  337. elseif a == "u" then

  338. if mouselock == false then

  339. mouselock = true

  340. else

  341. mouselock = false

  342. end

  343. elseif a == "y" then

  344. if aimbothider == false then

  345. aimbothider = true

  346. if aimbothider == true then

  347. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"

  348. else

  349. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"

  350. end

  351. else

  352. aimbothider = false

  353. if aimbothider == true then

  354. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"

  355. else

  356. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"

  357. end

  358. end

  359. if aimbothider == true then

  360. aimbothiderbox.TextColor3 =Color3.fromRGB(11, 255, 19)

  361. else

  362. aimbothiderbox.TextColor3 =Color3.fromRGB(255, 0, 0)

  363. end

  364. elseif a == "l" then

  365. if autoesp == false then

  366. autoesp = true

  367. else

  368. autoesp = false

  369. end

  370. elseif a == Aim_Assist_Key[2] and uis:IsKeyDown(Aim_Assist_Key[1]) then

  371. if Aim_Assist == true then

  372. Aim_Assist = false

  373. --print("disabled")

  374. else

  375. Aim_Assist = true

  376. end

  377. end

  378. if a == "j" then

  379. if mouse.Target then

  380. mouse.Target:Destroy()

  381. end

  382. end

  383. if a == key then

  384. if switch == false then

  385. switch = true

  386. else

  387. switch = false

  388. if aimatpart ~= nil then

  389. aimatpart = nil

  390. end

  391. end

  392. elseif a == teambasedswitch then

  393. if TeamBased == true then

  394. TeamBased = false

  395. teambasedstatus.Text = "Team Based: "..tostring(TeamBased)

  396. else

  397. TeamBased = true

  398. teambasedstatus.Text = "Team Based: "..tostring(TeamBased)

  399. end

  400. elseif a == aimkey then

  401. if not aimatpart then

  402. local maxangle = math.rad(20)

  403. for i, plr in pairs(plrs:GetChildren()) do

  404. if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then

  405. if TeamBased == true then

  406. if plr.Team.Name ~= lplr.Team.Name then

  407. local an = checkfov(plr.Character.Head)

  408. if an < maxangle then

  409. maxangle = an

  410. aimatpart = plr.Character.Head

  411. end

  412. end

  413. else

  414. local an = checkfov(plr.Character.Head)

  415. if an < maxangle then

  416. maxangle = an

  417. aimatpart = plr.Character.Head

  418. end

  419. --print(plr)

  420. end

  421. local old = aimatpart

  422. plr.Character.Humanoid.Died:Connect(function()

  423. --print("died")

  424. if aimatpart and aimatpart == old then

  425. aimatpart = nil

  426. end

  427. end)

  428. end

  429. end

  430. else

  431. aimatpart = nil

  432. canaimat = false

  433. delay(1.1, function()

  434. canaimat = true

  435. end)

  436. end

  437. end

  438. end)

  439. function getfovxyz (p0, p1, deg)

  440. local x1, y1, z1 = p0:ToOrientation()

  441. local cf = CFrame.new(p0.p, p1.p)

  442. local x2, y2, z2 = cf:ToOrientation()

  443. local d = math.deg

  444. if deg then

  445. return Vector3.new(d(x1-x2), d(y1-y2), d(z1-z2))

  446. else

  447. return Vector3.new((x1-x2), (y1-y2), (z1-z2))

  448. end

  449. end

  450. function aimat(part)

  451. if part then

  452. if aimbothider == true or Aim_Assist == true then

  453. cam.CFrame = cam.CFrame:Lerp(CFrame.new(cam.CFrame.p, part.CFrame.p), aimbothiderspeed)

  454. else

  455. cam.CFrame = CFrame.new(cam.CFrame.p, part.CFrame.p)

  456. end

  457. end

  458. end

  459. function checkfov (part)

  460. local fov = getfovxyz(game.Workspace.CurrentCamera.CFrame, part.CFrame)

  461. local angle = math.abs(fov.X) + math.abs(fov.Y)

  462. return angle

  463. end

  464. pcall(function()

  465. delay(0, function()

  466. while wait(.4) do

  467. if Aim_Assist and not aimatpart and canaimat and lplr.Character and lplr.Character.Humanoid and lplr.Character.Humanoid.Health > 0 then

  468. for i, plr in pairs(plrs:GetChildren()) do

  469. local minangle = math.rad(5.5)

  470. local lastpart = nil

  471. local function gg(plr)

  472. pcall(function()

  473. if plr.Name ~= lplr.Name and plr.Character and plr.Character.Humanoid and plr.Character.Humanoid.Health > 0 and plr.Character.Head then

  474. local raycasted = false

  475. local cf1 = CFrame.new(cam.CFrame.p, plr.Character.Head.CFrame.p) * CFrame.new(0, 0, -4)

  476. local r1 = Ray.new(cf1.p, cf1.LookVector * 9000)

  477. local obj, pos = game.Workspace:FindPartOnRayWithIgnoreList(r1, {lplr.Character.Head})

  478. local dist = (plr.Character.Head.CFrame.p- pos).magnitude

  479. if dist < 4 then

  480. raycasted = true

  481. end

  482. if raycasted == true then

  483. local an1 = getfovxyz(cam.CFrame, plr.Character.Head.CFrame)

  484. local an = abs(an1.X) + abs(an1.Y)

  485. if an < minangle then

  486. minangle = an

  487. lastpart = plr.Character.Head

  488. end

  489. end

  490. end

  491. end)

  492. end

  493. if TeamBased then

  494. if plr.Team.Name ~= lplr.Team.Name then

  495. gg(plr)

  496. end

  497. else

  498. gg(plr)

  499. end

  500. --print(math.deg(minangle))

  501. if lastpart then

  502. aimatpart = lastpart

  503. aimatpart.Parent.Humanoid.Died:Connect(function()

  504. if aimatpart == lastpart then

  505. aimatpart = nil

  506. end

  507. end)

  508. end

  509. end

  510. end

  511. end

  512. end)

  513. end)

  514. local oldheadpos

  515. local lastaimapart

  516. game:GetService("RunService").RenderStepped:Connect(function()

  517. espstatustext.Text = "Esp loop :"..tostring(autoesp)

  518. if aimatpart and lplr.Character and lplr.Character.Head then

  519. if BetterDeathCount and lastaimapart and lastaimapart == aimatpart then

  520. local dist = (oldheadpos - aimatpart.CFrame.p).magnitude

  521. if dist > 40 then

  522. aimatpart = nil

  523. end

  524. end

  525. lastaimapart = aimatpart

  526. oldheadpos = lastaimapart.CFrame.p

  527. do

  528. if aimatpart.Parent == plrs.LocalPlayer.Character then

  529. aimatpart = nil

  530. end

  531. aimat(aimatpart)

  532. pcall(function()

  533. if Aim_Assist == true then

  534. local cf1 = CFrame.new(cam.CFrame.p, aimatpart.CFrame.p) * CFrame.new(0, 0, -4)

  535. local r1 = Ray.new(cf1.p, cf1.LookVector * 1000)

  536. local obj, pos = game.Workspace:FindPartOnRayWithIgnoreList(r1, {lplr.Character.Head})

  537. local dist = (aimatpart.CFrame.p- pos).magnitude

  538. if obj then

  539. --print(obj:GetFullName())

  540. end

  541. if not obj or dist > 6 then

  542. aimatpart = nil

  543. --print("ooof")

  544. end

  545. canaimat = false

  546. delay(.5, function()

  547. canaimat = true

  548. end)

  549. end

  550. end)

  551. end

  552. end

  553. end)

  554. delay(0, function()

  555. while wait(espupdatetime) do

  556. if autoesp == true then

  557. pcall(function()

  558. f.addesp()

  559. end)

  560. end

  561. end

  562. end)

  563. --warn("loaded")

  564. end)

Roblox - Aimbot for any game - Pastebin.com (2024)

References

Top Articles
Latest Posts
Article information

Author: Terence Hammes MD

Last Updated:

Views: 6688

Rating: 4.9 / 5 (49 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Terence Hammes MD

Birthday: 1992-04-11

Address: Suite 408 9446 Mercy Mews, West Roxie, CT 04904

Phone: +50312511349175

Job: Product Consulting Liaison

Hobby: Jogging, Motor sports, Nordic skating, Jigsaw puzzles, Bird watching, Nordic skating, Sculpting

Introduction: My name is Terence Hammes MD, I am a inexpensive, energetic, jolly, faithful, cheerful, proud, rich person who loves writing and wants to share my knowledge and understanding with you.