Advertisement
Sebastian885

Strucid AimBot

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