Advertisement
Guest User

Untitled

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