Advertisement
Guest User

Untitled

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