Advertisement
SuicidaLOL

Strucid gui

Jan 23rd, 2019
11,667
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.68 KB | None | 0 0
  1. local Strucid = Instance.new("ScreenGui")
  2. local MainGUI = Instance.new("Frame")
  3. local AIMBOT = Instance.new("TextButton")
  4. local ESP = Instance.new("TextButton")
  5. local NOSPREAD = Instance.new("TextButton")
  6. local HEADING = Instance.new("TextLabel")
  7. --Properties:
  8. Strucid.Name = "Strucid"
  9. Strucid.Parent = game.CoreGui
  10.  
  11. MainGUI.Active = true
  12. MainGUI.Draggable = true
  13.  
  14. MainGUI.Name = "MainGUI"
  15. MainGUI.Parent = Strucid
  16. MainGUI.BackgroundColor3 = Color3.new(0.760784, 0.760784, 0.760784)
  17. MainGUI.BackgroundTransparency = 0.25
  18. MainGUI.BorderColor3 = Color3.new(0.666667, 0.666667, 1)
  19. MainGUI.BorderSizePixel = 2
  20. MainGUI.Position = UDim2.new(0.383633614, 0, 0.327118635, 0)
  21. MainGUI.Size = UDim2.new(0, 177, 0, 228)
  22.  
  23. AIMBOT.Name = "AIMBOT"
  24. AIMBOT.Parent = MainGUI
  25. AIMBOT.BackgroundColor3 = Color3.new(1, 0.666667, 1)
  26. AIMBOT.Position = UDim2.new(0.0790960416, 0, 0.162280694, 0)
  27. AIMBOT.Size = UDim2.new(0, 149, 0, 50)
  28. AIMBOT.Font = Enum.Font.SciFi
  29. AIMBOT.Text = "AIMBOT"
  30. AIMBOT.TextColor3 = Color3.new(0, 0, 0)
  31. AIMBOT.TextScaled = true
  32. AIMBOT.TextSize = 14
  33. AIMBOT.TextWrapped = true
  34. AIMBOT.MouseButton1Click:connect (function()--thanks Cyrus#6117 for help with the aimbot :)
  35. local gsCoreGui = game:GetService'CoreGui'
  36. local gsPlayers = game:GetService'Players'
  37. local gsRunService = game:GetService'RunService'
  38. local LP = gsPlayers.LocalPlayer
  39. local Mouse = LP:GetMouse()
  40. local FREE_FOR_ALL = false
  41. local AIM_AT = 'Head'
  42. local enabled = false
  43. local CC = workspace.CurrentCamera
  44.  
  45. local function GetNearestPlayerToMouse()
  46. local PLAYERS = {}
  47. local PLAYER_HOLD = {}
  48. local DISTANCES = {}
  49. for i, v in pairs(gsPlayers:GetPlayers()) do
  50. if v ~= LP then
  51. table.insert(PLAYERS, v)
  52. end
  53. end
  54. for i, v in pairs(PLAYERS) do
  55. if FREE_FOR_ALL == false then
  56. if v and (v.Character) and v.TeamColor ~= LP.TeamColor then
  57. local AIM = v.Character:FindFirstChild(AIM_AT)
  58. if AIM then
  59. local DISTANCE = (AIM.Position - workspace.CurrentCamera.CoordinateFrame.p).magnitude
  60. local RAY = Ray.new(workspace.CurrentCamera.CoordinateFrame.p, (Mouse.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
  61. local HIT,POS = workspace:FindPartOnRay(RAY, workspace)
  62. local DIFF = math.floor((POS - AIM.Position).magnitude)
  63. PLAYER_HOLD[v.Name .. i] = {}
  64. PLAYER_HOLD[v.Name .. i].dist = DISTANCE
  65. PLAYER_HOLD[v.Name .. i].LP = v
  66. PLAYER_HOLD[v.Name .. i].diff = DIFF
  67. table.insert(DISTANCES, DIFF)
  68. end
  69. end
  70. elseif FREE_FOR_ALL then
  71. local AIM = v.Character:FindFirstChild(AIM_AT)
  72. if AIM then
  73. local DISTANCE = (AIM.Position - workspace.CurrentCamera.CoordinateFrame.p).magnitude
  74. local RAY = Ray.new(workspace.CurrentCamera.CoordinateFrame.p, (Mouse.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
  75. local HIT,POS = workspace:FindPartOnRay(RAY, workspace)
  76. local DIFF = math.floor((POS - AIM.Position).magnitude)
  77. PLAYER_HOLD[v.Name .. i] = {}
  78. PLAYER_HOLD[v.Name .. i].dist = DISTANCE
  79. PLAYER_HOLD[v.Name .. i].LP = v
  80. PLAYER_HOLD[v.Name .. i].diff = DIFF
  81. table.insert(DISTANCES, DIFF)
  82. end
  83. end
  84. end
  85.  
  86. if unpack(DISTANCES) == nil then
  87. return false
  88. end
  89.  
  90. local L_DISTANCE = math.floor(math.min(unpack(DISTANCES)))
  91. if L_DISTANCE > 20 then
  92. return false
  93. end
  94.  
  95. for i, v in pairs(PLAYER_HOLD) do
  96. if v.diff == L_DISTANCE then
  97. return v.LP
  98. end
  99. end
  100. return false
  101. end
  102.  
  103. Mouse.Button2Down:Connect(function(KEY)
  104. enabled = true
  105. end)
  106.  
  107. Mouse.Button2Up:Connect(function(KEY)
  108. enabled = false
  109. end)
  110.  
  111. gsRunService.RenderStepped:Connect(function()
  112. pcall(function()
  113. if enabled then
  114. local TARGET = GetNearestPlayerToMouse()
  115. if TARGET:IsFriendsWith(LP.UserId) then
  116. elseif (TARGET ~= false) then
  117. local AIM = TARGET.Character:FindFirstChild(AIM_AT)
  118. if AIM then
  119. CC.CoordinateFrame = CFrame.new(CC.CoordinateFrame.p, AIM.CFrame.p)
  120. end
  121. end
  122. end
  123. end)
  124. end)
  125. end)
  126.  
  127. ESP.Name = "ESP"
  128. ESP.Parent = MainGUI
  129. ESP.BackgroundColor3 = Color3.new(1, 0.666667, 1)
  130. ESP.Position = UDim2.new(0.0790960416, 0, 0.421052635, 0)
  131. ESP.Size = UDim2.new(0, 149, 0, 50)
  132. ESP.Font = Enum.Font.SciFi
  133. ESP.Text = "ESP"
  134. ESP.TextColor3 = Color3.new(0, 0, 0)
  135. ESP.TextScaled = true
  136. ESP.TextSize = 14
  137. ESP.TextWrapped = true
  138. ESP.MouseButton1Click:connect (function()
  139. local plrs = game:service'Players';
  140.  
  141. local function epic_esp(model)
  142. local human = model:WaitForChild('Humanoid',5);
  143. if human then
  144. human.HealthDisplayDistance = math.huge;
  145. human.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOn;
  146. human.NameDisplayDistance = math.huge;
  147. human.NameOcclusion = Enum.NameOcclusion.NoOcclusion;
  148. end;
  149. end;
  150.  
  151. for _,p in next,plrs:GetPlayers() do
  152. if p.Character~=nil then epic_esp(p.Character) end;
  153. p.CharacterAdded:Connect(function(c) epic_esp(c) end);
  154. end;
  155.  
  156. plrs.PlayerAdded:Connect(function(p)
  157. p.CharacterAdded:Connect(function(c) epic_esp(c) end) ;
  158. end);
  159. end)
  160.  
  161. NOSPREAD.Name = "NOSPREAD"
  162. NOSPREAD.Parent = MainGUI
  163. NOSPREAD.BackgroundColor3 = Color3.new(1, 0.666667, 1)
  164. NOSPREAD.Position = UDim2.new(0.0790960416, 0, 0.688596487, 0)
  165. NOSPREAD.Size = UDim2.new(0, 149, 0, 50)
  166. NOSPREAD.Font = Enum.Font.SciFi
  167. NOSPREAD.Text = "NOSPREAD (coming soon?)"
  168. NOSPREAD.TextColor3 = Color3.new(0, 0, 0)
  169. NOSPREAD.TextScaled = true
  170. NOSPREAD.TextSize = 14
  171. NOSPREAD.TextWrapped = true
  172. NOSPREAD.MouseButton1Click:connect (function()
  173.  
  174. end)
  175.  
  176. HEADING.Name = "HEADING"
  177. HEADING.Parent = MainGUI
  178. HEADING.BackgroundColor3 = Color3.new(1, 1, 1)
  179. HEADING.BackgroundTransparency = 1
  180. HEADING.BorderSizePixel = 0
  181. HEADING.Position = UDim2.new(0.0790960789, 0, 0.0263157897, 0)
  182. HEADING.Size = UDim2.new(0, 149, 0, 23)
  183. HEADING.Font = Enum.Font.Arcade
  184. HEADING.Text = "SuicidaL GUI"
  185. HEADING.TextColor3 = Color3.new(1, 0, 1)
  186. HEADING.TextScaled = true
  187. HEADING.TextSize = 16
  188. HEADING.TextWrapped = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement