DehDancingHamster

strucid hack

Mar 14th, 2019
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.58 KB | None | 0 0
  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)
  500. RAW Paste Data
  501. -- Farewell Infortality.
  502. -- Version: 2.82
  503. -- Instances:
  504. local strucidhack = Instance.new("ScreenGui")
  505. local MainGUI = Instance.new("Frame")
  506. local aimbotandesp = Instance.new("TextButton")
  507. local closegui = Instance.new("TextButton")
  508. local TextLabel = Instance.new("TextLabel")
  509. local opengui = Instance.new("Frame")
  510. local open = Instance.new("TextButton")
  511. --Properties:
  512. strucidhack.Name = "strucid hack"
  513. strucidhack.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  514. MainGUI.Active = true
  515. MainGUI.Draggable = true
  516.  
  517. MainGUI.Name = "MainGUI"
  518. MainGUI.Parent = strucidhack
  519. MainGUI.BackgroundColor3 = Color3.new(1, 1, 1)
  520. MainGUI.Position = UDim2.new(0.22521247, 0, 0.195965424, 0)
  521. MainGUI.Size = UDim2.new(0, 385, 0, 371)
  522. MainGUI.Visible = false
  523.  
  524. aimbotandesp.Name = "aimbot and esp"
  525. aimbotandesp.Parent = MainGUI
  526. aimbotandesp.BackgroundColor3 = Color3.new(1, 1, 1)
  527. aimbotandesp.BorderColor3 = Color3.new(0.333333, 0.666667, 1)
  528. aimbotandesp.BorderSizePixel = 3
  529. aimbotandesp.Position = UDim2.new(0.136179864, 0, 0.310200483, 0)
  530. aimbotandesp.Size = UDim2.new(0, 257, 0, 118)
  531. aimbotandesp.Font = Enum.Font.GothamSemibold
  532. aimbotandesp.Text = "Strucid Aimbot and esp"
  533. aimbotandesp.TextColor3 = Color3.new(0, 0, 0.498039)
  534. aimbotandesp.TextSize = 23
  535. aimbotandesp.MouseButton1Click:connect(function()
  536. local plrs = game:GetService("Players")
  537. local TeamBased = true ; local teambasedswitch = "o"
  538. local presskeytoaim = true; local aimkey = "e"
  539. local raycast = false
  540.  
  541. local espupdatetime = 5; autoesp = false
  542.  
  543.  
  544.  
  545. local lockaim = true; local lockangle = 5
  546.  
  547.  
  548.  
  549. --function findwat(folder, what)
  550. -- for i, smth in pairs(folder:GetChildren()) do
  551. -- if string.find(string.lower(tostring(smth)), string.lower(what)) then
  552. -- return smth
  553. -- end
  554. -- end
  555. --end
  556. --
  557. --local plrs = findwat(game, "Players")
  558.  
  559.  
  560.  
  561.  
  562. local Gui = Instance.new("ScreenGui")
  563. local Move = Instance.new("Frame")
  564. local Main = Instance.new("Frame")
  565. local EspStatus = Instance.new("TextLabel")
  566. local st1 = Instance.new("TextLabel")
  567. local st1_2 = Instance.new("TextLabel")
  568. local st1_3 = Instance.new("TextLabel")
  569. local Name = Instance.new("TextLabel")
  570. --Properties:
  571. Gui.Name = "Gui"
  572. Gui.Parent = plrs.LocalPlayer:WaitForChild("PlayerGui")
  573.  
  574. Move.Name = "Move"
  575. Move.Parent = Gui
  576. Move.BackgroundColor3 = Color3.new(0.0431373, 1, 0.0745098)
  577. Move.BackgroundTransparency = 0.40000000596046
  578. Move.BorderSizePixel = 0
  579. Move.Position = UDim2.new(0.005, 0,0.018, 0)
  580. Move.Size = UDim2.new(0.28141585, 0, 0.0320388414, 0)
  581.  
  582. Main.Name = "Main"
  583. Main.Parent = Move
  584. Main.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  585. Main.BackgroundTransparency = 0.69999998807907
  586. Main.Position = UDim2.new(0, 0, 0.995670795, 0)
  587. Main.Size = UDim2.new(1.0000006, 0, 9.79697132, 0)
  588.  
  589. EspStatus.Name = "EspStatus"
  590. EspStatus.Parent = Main
  591. EspStatus.BackgroundColor3 = Color3.new(1, 1, 1)
  592. EspStatus.BackgroundTransparency = 1
  593. EspStatus.Size = UDim2.new(0.272955924, 0, 0.161862016, 0)
  594. EspStatus.Font = Enum.Font.ArialBold
  595. EspStatus.Text = "Press T to update Esp"
  596. EspStatus.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  597. EspStatus.TextScaled = true
  598. EspStatus.TextSize = 14
  599. EspStatus.TextWrapped = true
  600.  
  601. st1.Name = "st1"
  602. st1.Parent = Main
  603. st1.BackgroundColor3 = Color3.new(1, 1, 1)
  604. st1.BackgroundTransparency = 1
  605. st1.Position = UDim2.new(0.271787882, 0, 0, 0)
  606. st1.Size = UDim2.new(0.728211343, 0, 0.161862016, 0)
  607. st1.Font = Enum.Font.ArialBold
  608. st1.Text = "Press "..aimkey.." to lock on a person inside ur view"
  609. st1.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  610. st1.TextScaled = true
  611. st1.TextSize = 14
  612. st1.TextWrapped = true
  613.  
  614. st1_2.Name = "st1"
  615. st1_2.Parent = Main
  616. st1_2.BackgroundColor3 = Color3.new(1, 1, 1)
  617. st1_2.BackgroundTransparency = 1
  618. st1_2.Position = UDim2.new(0, 0, 0.375590861, 0)
  619. st1_2.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
  620. st1_2.Font = Enum.Font.ArialBold
  621. st1_2.Text = "Press L to enable esp loop"
  622. st1_2.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  623. st1_2.TextScaled = true
  624. st1_2.TextSize = 14
  625. st1_2.TextWrapped = true
  626.  
  627. st1_3.Name = "st1"
  628. st1_3.Parent = Main
  629. st1_3.BackgroundColor3 = Color3.new(1, 1, 1)
  630. st1_3.BackgroundTransparency = 1
  631. st1_3.Position = UDim2.new(0, 0, 0.18558608, 0)
  632. st1_3.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
  633. st1_3.Font = Enum.Font.ArialBold
  634. st1_3.Text = "Press O to change team based mode"
  635. st1_3.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  636. st1_3.TextScaled = true
  637. st1_3.TextSize = 14
  638. st1_3.TextWrapped = true
  639. local teambasedstatus = st1_3:Clone()
  640. teambasedstatus.Parent = st1_3
  641. teambasedstatus.TextScaled = true
  642. teambasedstatus.Position = UDim2.new(0, 0,0.694, 0)
  643. teambasedstatus.Text = tostring(TeamBased)
  644.  
  645. Name.Name = "Name"
  646. Name.Parent = Move
  647. Name.BackgroundColor3 = Color3.new(1, 1, 1)
  648. Name.BackgroundTransparency = 1
  649. Name.Size = UDim2.new(0.838, 0, 0.980000019, 0)
  650. Name.Font = Enum.Font.Arial
  651. Name.Text = "FPS gui v1.0"
  652. Name.TextColor3 = Color3.new(0, 0, 0)
  653. Name.TextScaled = true
  654. Name.TextSize = 14
  655. Name.TextWrapped = true
  656. Name.TextXAlignment = Enum.TextXAlignment.Left
  657. -- Scripts:
  658.  
  659.  
  660. local plrsforaim = {}
  661.  
  662. local lplr = game:GetService("Players").LocalPlayer
  663. Move.Draggable = true
  664. Gui.ResetOnSpawn = false
  665. Gui.Name = "Chat"
  666. Gui.DisplayOrder = 999
  667.  
  668. Gui.Parent = plrs.LocalPlayer.PlayerGui
  669.  
  670.  
  671. f = {}
  672. local espforlder
  673.  
  674. f.addesp = function()
  675. --print("ESP ran")
  676. if espforlder then
  677. else
  678. espforlder = Instance.new("Folder")
  679. espforlder.Parent = game.Workspace.CurrentCamera
  680. end
  681. for i, v in pairs(espforlder:GetChildren()) do
  682. v:Destroy()
  683. end
  684. for _, plr in pairs(plrs:GetChildren()) do
  685. if plr.Character and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name then
  686. if TeamBased == true then
  687. if plr.Team.Name ~= plrs.LocalPlayer.Team.Name then
  688. local e = espforlder:FindFirstChild(plr.Name)
  689. if not e then
  690. --print("Added esp for team based")
  691. local bill = Instance.new("BillboardGui", espforlder)
  692. bill.Name = plr.Name
  693. bill.AlwaysOnTop = true
  694. bill.Size = UDim2.new(1,0,1,0)
  695. bill.Adornee = plr.Character.Head
  696. local Frame = Instance.new('Frame',bill)
  697. Frame.Active = true
  698. Frame.BackgroundColor3 = Color3.new(0/255,255/255,0/255)
  699. Frame.BackgroundTransparency = 0
  700. Frame.BorderSizePixel = 0
  701. Frame.AnchorPoint = Vector2.new(.5, .5)
  702. Frame.Position = UDim2.new (0.5,0,0.5,0)
  703. Frame.Size = UDim2.new (1,0,1,0)
  704. Frame.Rotation = 0
  705. plr.Character.Humanoid.Died:Connect(function()
  706. bill:Destroy()
  707. end)
  708. end
  709. end
  710. else
  711. local e = espforlder:FindFirstChild(plr.Name)
  712. if not e then
  713. --print("Added esp")
  714. local bill = Instance.new("BillboardGui", espforlder)
  715. bill.Name = plr.Name
  716. bill.AlwaysOnTop = true
  717. bill.Size = UDim2.new(1,0,1,0)
  718. bill.Adornee = plr.Character.Head
  719. local Frame = Instance.new('Frame',bill)
  720. Frame.Active = true
  721. Frame.BackgroundColor3 = Color3.new(0/255,255/255,0/255)
  722. Frame.BackgroundTransparency = 0
  723. Frame.BorderSizePixel = 0
  724. Frame.AnchorPoint = Vector2.new(.5, .5)
  725. Frame.Position = UDim2.new (0.5,0,0.5,0)
  726. Frame.Size = UDim2.new (1,0,1,0)
  727. Frame.Rotation = 0
  728. plr.Character.Humanoid.Died:Connect(function()
  729. bill:Destroy()
  730. end)
  731. end
  732. end
  733.  
  734.  
  735. end
  736. end
  737. end
  738. local cam = game.Workspace.CurrentCamera
  739.  
  740. local mouse = lplr:GetMouse()
  741. local switch = false
  742. local key = "k"
  743. local aimatpart = nil
  744. mouse.KeyDown:Connect(function(a)
  745. if a == "t" then
  746. print("worked1")
  747. f.addesp()
  748. elseif a == "u" then
  749. if raycast == true then
  750. raycast = false
  751. else
  752. raycast = true
  753. end
  754. elseif a == "l" then
  755. if autoesp == false then
  756. autoesp = true
  757. else
  758. autoesp = false
  759. end
  760. end
  761. if a == "j" then
  762. if mouse.Target then
  763. mouse.Target:Destroy()
  764. end
  765. end
  766. if a == key then
  767. if switch == false then
  768. switch = true
  769. else
  770. switch = false
  771. if aimatpart ~= nil then
  772. aimatpart = nil
  773. end
  774. end
  775. elseif a == teambasedswitch then
  776. if TeamBased == true then
  777. TeamBased = false
  778. teambasedstatus.Text = tostring(TeamBased)
  779. else
  780. TeamBased = true
  781. teambasedstatus.Text = tostring(TeamBased)
  782. end
  783. elseif a == aimkey then
  784. if not aimatpart then
  785. local maxangle = math.rad(20)
  786. for i, plr in pairs(plrs:GetChildren()) do
  787. if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  788. if TeamBased == true then
  789. if plr.Team.Name ~= lplr.Team.Name then
  790. local an = checkfov(plr.Character.Head)
  791. if an < maxangle then
  792. maxangle = an
  793. aimatpart = plr.Character.Head
  794. end
  795. end
  796. else
  797. local an = checkfov(plr.Character.Head)
  798. if an < maxangle then
  799. maxangle = an
  800. aimatpart = plr.Character.Head
  801. end
  802. print(plr)
  803. end
  804. plr.Character.Humanoid.Died:Connect(function()
  805. if aimatpart.Parent == plr.Character or aimatpart == nil then
  806. aimatpart = nil
  807. end
  808. end)
  809. end
  810. end
  811. else
  812. aimatpart = nil
  813. end
  814. end
  815. end)
  816.  
  817. function getfovxyz (p0, p1, deg)
  818. local x1, y1, z1 = p0:ToOrientation()
  819. local cf = CFrame.new(p0.p, p1.p)
  820. local x2, y2, z2 = cf:ToOrientation()
  821. --local d = math.deg
  822. if deg then
  823. --return Vector3.new(d(x1-x2), d(y1-y2), d(z1-z2))
  824. else
  825. return Vector3.new((x1-x2), (y1-y2), (z1-z2))
  826. end
  827. end
  828.  
  829. function getaimbotplrs()
  830. plrsforaim = {}
  831. for i, plr in pairs(plrs:GetChildren()) do
  832. if plr.Character and plr.Character.Humanoid and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name and plr.Character.Head then
  833.  
  834. if TeamBased == true then
  835. if plr.Team.Name ~= lplr.Team.Name then
  836. local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  837. local r = Ray.new(cf, cf.LookVector * 10000)
  838. local ign = {}
  839. for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
  840. if v:IsA("BasePart") then
  841. table.insert(ign , v)
  842. end
  843. end
  844. local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
  845. if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
  846. table.insert(plrsforaim, obj)
  847. end
  848. end
  849. else
  850. local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  851. local r = Ray.new(cf, cf.LookVector * 10000)
  852. local ign = {}
  853. for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
  854. if v:IsA("BasePart") then
  855. table.insert(ign , v)
  856. end
  857. end
  858. local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
  859. if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
  860. table.insert(plrsforaim, obj)
  861. end
  862. end
  863.  
  864.  
  865. end
  866. end
  867. end
  868.  
  869. function aimat(part)
  870. cam.CFrame = CFrame.new(cam.CFrame.p, part.CFrame.p)
  871. end
  872. function checkfov (part)
  873. local fov = getfovxyz(game.Workspace.CurrentCamera.CFrame, part.CFrame)
  874. local angle = math.abs(fov.X) + math.abs(fov.Y)
  875. return angle
  876. end
  877.  
  878. game:GetService("RunService").RenderStepped:Connect(function()
  879. if aimatpart then
  880. aimat(aimatpart)
  881. if aimatpart.Parent == plrs.LocalPlayer.Character then
  882. aimatpart = nil
  883. end
  884. end
  885.  
  886.  
  887. -- if switch == true then
  888. -- local maxangle = 99999
  889. --
  890. -- --print("Loop")
  891. -- if true and raycast == false then
  892. -- for i, plr in pairs(plrs:GetChildren()) do
  893. -- if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  894. -- if TeamBased then
  895. -- if plr.Team.Name ~= lplr.Team.Name or plr.Team.TeamColor ~= lplr.Team.TeamColor then
  896. -- local an = checkfov(plr.Character.Head)
  897. -- if an < maxangle then
  898. -- maxangle = an
  899. -- aimatpart = plr.Character.Head
  900. -- if an < lockangle then
  901. -- break
  902. -- end
  903. -- end
  904. -- end
  905. -- else
  906. -- local an = checkfov(plr.Character.Head)
  907. -- if an < maxangle then
  908. -- maxangle = an
  909. -- aimatpart = plr.Character.Head
  910. -- if an < lockangle then
  911. -- break
  912. -- end
  913. -- end
  914. -- end
  915. --
  916. --
  917. --
  918. --
  919. -- end
  920. -- end
  921. -- elseif raycast == true then
  922. --
  923. -- end
  924.  
  925. if raycast == true and switch == false and not aimatpart then
  926. getaimbotplrs()
  927. aimatpart = nil
  928. local maxangle = 999
  929. for i, v in ipairs(plrsforaim) do
  930. if v.Parent ~= lplr.Character then
  931. local an = checkfov(v)
  932. if an < maxangle and v ~= lplr.Character.Head then
  933. maxangle = an
  934. aimatpart = v
  935. print(v:GetFullName())
  936. v.Parent.Humanoid.Died:connect(function()
  937. aimatpart = nil
  938. end)
  939. end
  940. end
  941. end
  942.  
  943. end
  944. end)
  945. delay(0, function()
  946. while wait(espupdatetime) do
  947. if autoesp == true then
  948. pcall(function()
  949. f.addesp()
  950. end)
  951. end
  952. end
  953. end)
  954. warn("loaded")
  955. end)
  956.  
  957. closegui.Name = "close gui"
  958. closegui.Parent = MainGUI
  959. closegui.BackgroundColor3 = Color3.new(1, 1, 1)
  960. closegui.Position = UDim2.new(0.892828405, 0, 0.0474808663, 0)
  961. closegui.Size = UDim2.new(0, 28, 0, 36)
  962. closegui.Font = Enum.Font.SourceSansBold
  963. closegui.Text = "X"
  964. closegui.TextColor3 = Color3.new(0, 0, 0)
  965. closegui.TextSize = 34
  966.  
  967. TextLabel.Parent = MainGUI
  968. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  969. TextLabel.BorderSizePixel = 3
  970. TextLabel.Position = UDim2.new(0.0389667451, 0, 0.0325634778, 0)
  971. TextLabel.Size = UDim2.new(0, 313, 0, 50)
  972. TextLabel.Font = Enum.Font.SciFi
  973. TextLabel.Text = "Anti ban strcuid aimbot and esp"
  974. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  975. TextLabel.TextSize = 20
  976.  
  977. opengui.Name = "open gui"
  978. opengui.Parent = strucidhack
  979. opengui.BackgroundColor3 = Color3.new(1, 1, 1)
  980. opengui.Position = UDim2.new(0.0198300499, 0, 0.925072074, 0)
  981. opengui.Size = UDim2.new(0, 19, 0, 22)
  982.  
  983. open.Name = "open"
  984. open.Parent = opengui
  985. closegui.MouseButton1Click:connect(function()
  986. MainGUI.Visible = false
  987. opengui.Visible = true
  988. end)
  989. open.BackgroundColor3 = Color3.new(1, 1, 1)
  990. open.Position = UDim2.new(-0.746906042, 0, -0.172385469, 0)
  991. open.Size = UDim2.new(0, 65, 0, 29)
  992. open.Font = Enum.Font.SourceSans
  993. open.Text = "Open gui"
  994. open.TextColor3 = Color3.new(0, 0, 0)
  995. open.TextSize = 14
  996. open.MouseButton1Click:connect(function()
  997. MainGUI.Visible = true
  998. opengui.Visible = false
  999. end)
Add Comment
Please, Sign In to add comment