FurkyYT

Strucid aimbot

Feb 15th, 2019
2,533
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local strucidhack = Instance.new("ScreenGui")
  5. local MainGUI = Instance.new("Frame")
  6. local aimbotandesp = Instance.new("TextButton")
  7. local closegui = Instance.new("TextButton")
  8. local TextLabel = Instance.new("TextLabel")
  9. local opengui = Instance.new("Frame")
  10. local open = Instance.new("TextButton")
  11. --Properties:
  12. strucidhack.Name = "strucid hack"
  13. strucidhack.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  14. MainGUI.Active = true
  15. MainGUI.Draggable = true
  16.  
  17. MainGUI.Name = "MainGUI"
  18. MainGUI.Parent = strucidhack
  19. MainGUI.BackgroundColor3 = Color3.new(1, 1, 1)
  20. MainGUI.Position = UDim2.new(0.22521247, 0, 0.195965424, 0)
  21. MainGUI.Size = UDim2.new(0, 385, 0, 371)
  22. MainGUI.Visible = false
  23.  
  24. aimbotandesp.Name = "aimbot and esp"
  25. aimbotandesp.Parent = MainGUI
  26. aimbotandesp.BackgroundColor3 = Color3.new(1, 1, 1)
  27. aimbotandesp.BorderColor3 = Color3.new(0.333333, 0.666667, 1)
  28. aimbotandesp.BorderSizePixel = 3
  29. aimbotandesp.Position = UDim2.new(0.136179864, 0, 0.310200483, 0)
  30. aimbotandesp.Size = UDim2.new(0, 257, 0, 118)
  31. aimbotandesp.Font = Enum.Font.GothamSemibold
  32. aimbotandesp.Text = "Strucid Aimbot and esp"
  33. aimbotandesp.TextColor3 = Color3.new(0, 0, 0.498039)
  34. aimbotandesp.TextSize = 23
  35. aimbotandesp.MouseButton1Click:connect(function()
  36. local plrs = game:GetService("Players")
  37. local TeamBased = true ; local teambasedswitch = "o"
  38. local presskeytoaim = true; local aimkey = "e"
  39. local raycast = false
  40.  
  41. local espupdatetime = 5; autoesp = false
  42.  
  43.  
  44.  
  45. local lockaim = true; local lockangle = 5
  46.  
  47.  
  48.  
  49. --function findwat(folder, what)
  50. -- for i, smth in pairs(folder:GetChildren()) do
  51. -- if string.find(string.lower(tostring(smth)), string.lower(what)) then
  52. -- return smth
  53. -- end
  54. -- end
  55. --end
  56. --
  57. --local plrs = findwat(game, "Players")
  58.  
  59.  
  60.  
  61.  
  62. local Gui = Instance.new("ScreenGui")
  63. local Move = Instance.new("Frame")
  64. local Main = Instance.new("Frame")
  65. local EspStatus = Instance.new("TextLabel")
  66. local st1 = Instance.new("TextLabel")
  67. local st1_2 = Instance.new("TextLabel")
  68. local st1_3 = Instance.new("TextLabel")
  69. local Name = Instance.new("TextLabel")
  70. --Properties:
  71. Gui.Name = "Gui"
  72. Gui.Parent = plrs.LocalPlayer:WaitForChild("PlayerGui")
  73.  
  74. Move.Name = "Move"
  75. Move.Parent = Gui
  76. Move.BackgroundColor3 = Color3.new(0.0431373, 1, 0.0745098)
  77. Move.BackgroundTransparency = 0.40000000596046
  78. Move.BorderSizePixel = 0
  79. Move.Position = UDim2.new(0.005, 0,0.018, 0)
  80. Move.Size = UDim2.new(0.28141585, 0, 0.0320388414, 0)
  81.  
  82. Main.Name = "Main"
  83. Main.Parent = Move
  84. Main.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  85. Main.BackgroundTransparency = 0.69999998807907
  86. Main.Position = UDim2.new(0, 0, 0.995670795, 0)
  87. Main.Size = UDim2.new(1.0000006, 0, 9.79697132, 0)
  88.  
  89. EspStatus.Name = "EspStatus"
  90. EspStatus.Parent = Main
  91. EspStatus.BackgroundColor3 = Color3.new(1, 1, 1)
  92. EspStatus.BackgroundTransparency = 1
  93. EspStatus.Size = UDim2.new(0.272955924, 0, 0.161862016, 0)
  94. EspStatus.Font = Enum.Font.ArialBold
  95. EspStatus.Text = "Press T to update Esp"
  96. EspStatus.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  97. EspStatus.TextScaled = true
  98. EspStatus.TextSize = 14
  99. EspStatus.TextWrapped = true
  100.  
  101. st1.Name = "st1"
  102. st1.Parent = Main
  103. st1.BackgroundColor3 = Color3.new(1, 1, 1)
  104. st1.BackgroundTransparency = 1
  105. st1.Position = UDim2.new(0.271787882, 0, 0, 0)
  106. st1.Size = UDim2.new(0.728211343, 0, 0.161862016, 0)
  107. st1.Font = Enum.Font.ArialBold
  108. st1.Text = "Press "..aimkey.." to lock on a person inside ur view"
  109. st1.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  110. st1.TextScaled = true
  111. st1.TextSize = 14
  112. st1.TextWrapped = true
  113.  
  114. st1_2.Name = "st1"
  115. st1_2.Parent = Main
  116. st1_2.BackgroundColor3 = Color3.new(1, 1, 1)
  117. st1_2.BackgroundTransparency = 1
  118. st1_2.Position = UDim2.new(0, 0, 0.375590861, 0)
  119. st1_2.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
  120. st1_2.Font = Enum.Font.ArialBold
  121. st1_2.Text = "Press L to enable esp loop"
  122. st1_2.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  123. st1_2.TextScaled = true
  124. st1_2.TextSize = 14
  125. st1_2.TextWrapped = true
  126.  
  127. st1_3.Name = "st1"
  128. st1_3.Parent = Main
  129. st1_3.BackgroundColor3 = Color3.new(1, 1, 1)
  130. st1_3.BackgroundTransparency = 1
  131. st1_3.Position = UDim2.new(0, 0, 0.18558608, 0)
  132. st1_3.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
  133. st1_3.Font = Enum.Font.ArialBold
  134. st1_3.Text = "Press O to change team based mode"
  135. st1_3.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  136. st1_3.TextScaled = true
  137. st1_3.TextSize = 14
  138. st1_3.TextWrapped = true
  139. local teambasedstatus = st1_3:Clone()
  140. teambasedstatus.Parent = st1_3
  141. teambasedstatus.TextScaled = true
  142. teambasedstatus.Position = UDim2.new(0, 0,0.694, 0)
  143. teambasedstatus.Text = tostring(TeamBased)
  144.  
  145. Name.Name = "Name"
  146. Name.Parent = Move
  147. Name.BackgroundColor3 = Color3.new(1, 1, 1)
  148. Name.BackgroundTransparency = 1
  149. Name.Size = UDim2.new(0.838, 0, 0.980000019, 0)
  150. Name.Font = Enum.Font.Arial
  151. Name.Text = "FPS gui v1.0"
  152. Name.TextColor3 = Color3.new(0, 0, 0)
  153. Name.TextScaled = true
  154. Name.TextSize = 14
  155. Name.TextWrapped = true
  156. Name.TextXAlignment = Enum.TextXAlignment.Left
  157. -- Scripts:
  158.  
  159.  
  160. local plrsforaim = {}
  161.  
  162. local lplr = game:GetService("Players").LocalPlayer
  163. Move.Draggable = true
  164. Gui.ResetOnSpawn = false
  165. Gui.Name = "Chat"
  166. Gui.DisplayOrder = 999
  167.  
  168. Gui.Parent = plrs.LocalPlayer.PlayerGui
  169.  
  170.  
  171. f = {}
  172. local espforlder
  173.  
  174. f.addesp = function()
  175. --print("ESP ran")
  176. if espforlder then
  177. else
  178. espforlder = Instance.new("Folder")
  179. espforlder.Parent = game.Workspace.CurrentCamera
  180. end
  181. for i, v in pairs(espforlder:GetChildren()) do
  182. v:Destroy()
  183. end
  184. for _, plr in pairs(plrs:GetChildren()) do
  185. if plr.Character and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name then
  186. if TeamBased == true then
  187. if plr.Team.Name ~= plrs.LocalPlayer.Team.Name then
  188. local e = espforlder:FindFirstChild(plr.Name)
  189. if not e then
  190. --print("Added esp for team based")
  191. local bill = Instance.new("BillboardGui", espforlder)
  192. bill.Name = plr.Name
  193. bill.AlwaysOnTop = true
  194. bill.Size = UDim2.new(1,0,1,0)
  195. bill.Adornee = plr.Character.Head
  196. local Frame = Instance.new('Frame',bill)
  197. Frame.Active = true
  198. Frame.BackgroundColor3 = Color3.new(0/255,255/255,0/255)
  199. Frame.BackgroundTransparency = 0
  200. Frame.BorderSizePixel = 0
  201. Frame.AnchorPoint = Vector2.new(.5, .5)
  202. Frame.Position = UDim2.new (0.5,0,0.5,0)
  203. Frame.Size = UDim2.new (1,0,1,0)
  204. Frame.Rotation = 0
  205. plr.Character.Humanoid.Died:Connect(function()
  206. bill:Destroy()
  207. end)
  208. end
  209. end
  210. else
  211. local e = espforlder:FindFirstChild(plr.Name)
  212. if not e then
  213. --print("Added esp")
  214. local bill = Instance.new("BillboardGui", espforlder)
  215. bill.Name = plr.Name
  216. bill.AlwaysOnTop = true
  217. bill.Size = UDim2.new(1,0,1,0)
  218. bill.Adornee = plr.Character.Head
  219. local Frame = Instance.new('Frame',bill)
  220. Frame.Active = true
  221. Frame.BackgroundColor3 = Color3.new(0/255,255/255,0/255)
  222. Frame.BackgroundTransparency = 0
  223. Frame.BorderSizePixel = 0
  224. Frame.AnchorPoint = Vector2.new(.5, .5)
  225. Frame.Position = UDim2.new (0.5,0,0.5,0)
  226. Frame.Size = UDim2.new (1,0,1,0)
  227. Frame.Rotation = 0
  228. plr.Character.Humanoid.Died:Connect(function()
  229. bill:Destroy()
  230. end)
  231. end
  232. end
  233.  
  234.  
  235. end
  236. end
  237. end
  238. local cam = game.Workspace.CurrentCamera
  239.  
  240. local mouse = lplr:GetMouse()
  241. local switch = false
  242. local key = "k"
  243. local aimatpart = nil
  244. mouse.KeyDown:Connect(function(a)
  245. if a == "t" then
  246. print("worked1")
  247. f.addesp()
  248. elseif a == "u" then
  249. if raycast == true then
  250. raycast = false
  251. else
  252. raycast = true
  253. end
  254. elseif a == "l" then
  255. if autoesp == false then
  256. autoesp = true
  257. else
  258. autoesp = false
  259. end
  260. end
  261. if a == "j" then
  262. if mouse.Target then
  263. mouse.Target:Destroy()
  264. end
  265. end
  266. if a == key then
  267. if switch == false then
  268. switch = true
  269. else
  270. switch = false
  271. if aimatpart ~= nil then
  272. aimatpart = nil
  273. end
  274. end
  275. elseif a == teambasedswitch then
  276. if TeamBased == true then
  277. TeamBased = false
  278. teambasedstatus.Text = tostring(TeamBased)
  279. else
  280. TeamBased = true
  281. teambasedstatus.Text = tostring(TeamBased)
  282. end
  283. elseif a == aimkey then
  284. if not aimatpart then
  285. local maxangle = math.rad(20)
  286. for i, plr in pairs(plrs:GetChildren()) do
  287. if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  288. if TeamBased == true then
  289. if plr.Team.Name ~= lplr.Team.Name then
  290. local an = checkfov(plr.Character.Head)
  291. if an < maxangle then
  292. maxangle = an
  293. aimatpart = plr.Character.Head
  294. end
  295. end
  296. else
  297. local an = checkfov(plr.Character.Head)
  298. if an < maxangle then
  299. maxangle = an
  300. aimatpart = plr.Character.Head
  301. end
  302. print(plr)
  303. end
  304. plr.Character.Humanoid.Died:Connect(function()
  305. if aimatpart.Parent == plr.Character or aimatpart == nil then
  306. aimatpart = nil
  307. end
  308. end)
  309. end
  310. end
  311. else
  312. aimatpart = nil
  313. end
  314. end
  315. end)
  316.  
  317. function getfovxyz (p0, p1, deg)
  318. local x1, y1, z1 = p0:ToOrientation()
  319. local cf = CFrame.new(p0.p, p1.p)
  320. local x2, y2, z2 = cf:ToOrientation()
  321. --local d = math.deg
  322. if deg then
  323. --return Vector3.new(d(x1-x2), d(y1-y2), d(z1-z2))
  324. else
  325. return Vector3.new((x1-x2), (y1-y2), (z1-z2))
  326. end
  327. end
  328.  
  329. function getaimbotplrs()
  330. plrsforaim = {}
  331. for i, plr in pairs(plrs:GetChildren()) do
  332. if plr.Character and plr.Character.Humanoid and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name and plr.Character.Head then
  333.  
  334. if TeamBased == true then
  335. if plr.Team.Name ~= lplr.Team.Name then
  336. local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  337. local r = Ray.new(cf, cf.LookVector * 10000)
  338. local ign = {}
  339. for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
  340. if v:IsA("BasePart") then
  341. table.insert(ign , v)
  342. end
  343. end
  344. local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
  345. if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
  346. table.insert(plrsforaim, obj)
  347. end
  348. end
  349. else
  350. local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  351. local r = Ray.new(cf, cf.LookVector * 10000)
  352. local ign = {}
  353. for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
  354. if v:IsA("BasePart") then
  355. table.insert(ign , v)
  356. end
  357. end
  358. local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
  359. if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
  360. table.insert(plrsforaim, obj)
  361. end
  362. end
  363.  
  364.  
  365. end
  366. end
  367. end
  368.  
  369. function aimat(part)
  370. cam.CFrame = CFrame.new(cam.CFrame.p, part.CFrame.p)
  371. end
  372. function checkfov (part)
  373. local fov = getfovxyz(game.Workspace.CurrentCamera.CFrame, part.CFrame)
  374. local angle = math.abs(fov.X) + math.abs(fov.Y)
  375. return angle
  376. end
  377.  
  378. game:GetService("RunService").RenderStepped:Connect(function()
  379. if aimatpart then
  380. aimat(aimatpart)
  381. if aimatpart.Parent == plrs.LocalPlayer.Character then
  382. aimatpart = nil
  383. end
  384. end
  385.  
  386.  
  387. -- if switch == true then
  388. -- local maxangle = 99999
  389. --
  390. -- --print("Loop")
  391. -- if true and raycast == false then
  392. -- for i, plr in pairs(plrs:GetChildren()) do
  393. -- if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  394. -- if TeamBased then
  395. -- if plr.Team.Name ~= lplr.Team.Name or plr.Team.TeamColor ~= lplr.Team.TeamColor then
  396. -- local an = checkfov(plr.Character.Head)
  397. -- if an < maxangle then
  398. -- maxangle = an
  399. -- aimatpart = plr.Character.Head
  400. -- if an < lockangle then
  401. -- break
  402. -- end
  403. -- end
  404. -- end
  405. -- else
  406. -- local an = checkfov(plr.Character.Head)
  407. -- if an < maxangle then
  408. -- maxangle = an
  409. -- aimatpart = plr.Character.Head
  410. -- if an < lockangle then
  411. -- break
  412. -- end
  413. -- end
  414. -- end
  415. --
  416. --
  417. --
  418. --
  419. -- end
  420. -- end
  421. -- elseif raycast == true then
  422. --
  423. -- end
  424.  
  425. if raycast == true and switch == false and not aimatpart then
  426. getaimbotplrs()
  427. aimatpart = nil
  428. local maxangle = 999
  429. for i, v in ipairs(plrsforaim) do
  430. if v.Parent ~= lplr.Character then
  431. local an = checkfov(v)
  432. if an < maxangle and v ~= lplr.Character.Head then
  433. maxangle = an
  434. aimatpart = v
  435. print(v:GetFullName())
  436. v.Parent.Humanoid.Died:connect(function()
  437. aimatpart = nil
  438. end)
  439. end
  440. end
  441. end
  442.  
  443. end
  444. end)
  445. delay(0, function()
  446. while wait(espupdatetime) do
  447. if autoesp == true then
  448. pcall(function()
  449. f.addesp()
  450. end)
  451. end
  452. end
  453. end)
  454. warn("loaded")
  455. end)
  456.  
  457. closegui.Name = "close gui"
  458. closegui.Parent = MainGUI
  459. closegui.BackgroundColor3 = Color3.new(1, 1, 1)
  460. closegui.Position = UDim2.new(0.892828405, 0, 0.0474808663, 0)
  461. closegui.Size = UDim2.new(0, 28, 0, 36)
  462. closegui.Font = Enum.Font.SourceSansBold
  463. closegui.Text = "X"
  464. closegui.TextColor3 = Color3.new(0, 0, 0)
  465. closegui.TextSize = 34
  466.  
  467. TextLabel.Parent = MainGUI
  468. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  469. TextLabel.BorderSizePixel = 3
  470. TextLabel.Position = UDim2.new(0.0389667451, 0, 0.0325634778, 0)
  471. TextLabel.Size = UDim2.new(0, 313, 0, 50)
  472. TextLabel.Font = Enum.Font.SciFi
  473. TextLabel.Text = "Anti ban strcuid aimbot and esp"
  474. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  475. TextLabel.TextSize = 20
  476.  
  477. opengui.Name = "open gui"
  478. opengui.Parent = strucidhack
  479. opengui.BackgroundColor3 = Color3.new(1, 1, 1)
  480. opengui.Position = UDim2.new(0.0198300499, 0, 0.925072074, 0)
  481. opengui.Size = UDim2.new(0, 19, 0, 22)
  482.  
  483. open.Name = "open"
  484. open.Parent = opengui
  485. closegui.MouseButton1Click:connect(function()
  486. MainGUI.Visible = false
  487. opengui.Visible = true
  488. end)
  489. open.BackgroundColor3 = Color3.new(1, 1, 1)
  490. open.Position = UDim2.new(-0.746906042, 0, -0.172385469, 0)
  491. open.Size = UDim2.new(0, 65, 0, 29)
  492. open.Font = Enum.Font.SourceSans
  493. open.Text = "Open gui"
  494. open.TextColor3 = Color3.new(0, 0, 0)
  495. open.TextSize = 14
  496. open.MouseButton1Click:connect(function()
  497. MainGUI.Visible = true
  498. opengui.Visible = false
  499. end)
RAW Paste Data