Advertisement
WeDoScripts

Strucid Aimbot And Esp *Working*

Feb 16th, 2019
507
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.76 KB | None | 0 0
  1. -- /$$$$$$ /$$$$$$ /$$ /$$ /$$ /$$ /$$$$$$ /$$$$$$$ /$$ /$$ /$$$$$$ /$$$$$$ /$$
  2. -- /$$__ $$|_ $$_/| $$$ /$$$| $$ /$ | $$ /$$__ $$| $$__ $$| $$ /$$/ /$$__ $$ /$$__ $$ /$$$$
  3. -- | $$ \ $$ | $$ | $$$$ /$$$$| $$ /$$$| $$| $$ \ $$| $$ \ $$| $$ /$$/ | $$ \__/ |__/ \ $$ |_ $$
  4. -- | $$$$$$$$ | $$ | $$ $$/$$ $$| $$/$$ $$ $$| $$ | $$| $$$$$$$/| $$$$$/ | $$$$$$ /$$$$$/ | $$
  5. -- | $$__ $$ | $$ | $$ $$$| $$| $$$$_ $$$$| $$ | $$| $$__ $$| $$ $$ \____ $$ |___ $$ | $$
  6. -- | $$ | $$ | $$ | $$\ $ | $$| $$$/ \ $$$| $$ | $$| $$ \ $$| $$\ $$ /$$ \ $$ /$$ \ $$ | $$
  7. -- | $$ | $$ /$$$$$$| $$ \/ | $$| $$/ \ $$| $$$$$$/| $$ | $$| $$ \ $$| $$$$$$/ | $$$$$$//$$ /$$$$$$
  8. -- |__/ |__/|______/|__/ |__/|__/ \__/ \______/ |__/ |__/|__/ \__/ \______/ \______/|__/|______/
  9.  
  10. --hit or miss I guess they never miss huh
  11. --got a boyfriend bet he never kiss ya
  12. --he gonna find a new girl yeah miss ya
  13. --he gonna spin in hit the dab like west Califia
  14.  
  15.  
  16. PLAYER = game.Players.LocalPlayer
  17. MOUSE = PLAYER:GetMouse()
  18. CC = game.Workspace.CurrentCamera
  19.  
  20. ENABLED = false
  21. ESP_ENABLED = false
  22.  
  23. _G.FREE_FOR_ALL = true
  24.  
  25. _G.BIND = 50
  26. _G.ESP_BIND = 52
  27. _G.CHANGE_AIM = 'q'
  28.  
  29. _G.AIM_AT = 'Torso'
  30.  
  31. wait(1)
  32.  
  33. function GetNearestPlayerToMouse()
  34. local PLAYERS = {}
  35. local PLAYER_HOLD = {}
  36. local DISTANCES = {}
  37. for i, v in pairs(game.Players:GetPlayers()) do
  38. if v ~= PLAYER then
  39. table.insert(PLAYERS, v)
  40. end
  41. end
  42. for i, v in pairs(PLAYERS) do
  43. if _G.FREE_FOR_ALL == false then
  44. if v and (v.Character) ~= nil and v.TeamColor ~= PLAYER.TeamColor then
  45. local AIM = v.Character:FindFirstChild(_G.AIM_AT)
  46. if AIM ~= nil then
  47. local DISTANCE = (AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
  48. local RAY = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p, (MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
  49. local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
  50. local DIFF = math.floor((POS - AIM.Position).magnitude)
  51. PLAYER_HOLD[v.Name .. i] = {}
  52. PLAYER_HOLD[v.Name .. i].dist = DISTANCE
  53. PLAYER_HOLD[v.Name .. i].plr = v
  54. PLAYER_HOLD[v.Name .. i].diff = DIFF
  55. table.insert(DISTANCES, DIFF)
  56. end
  57. end
  58. elseif _G.FREE_FOR_ALL == true then
  59. local AIM = v.Character:FindFirstChild(_G.AIM_AT)
  60. if AIM ~= nil then
  61. local DISTANCE = (AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
  62. local RAY = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p, (MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
  63. local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
  64. local DIFF = math.floor((POS - AIM.Position).magnitude)
  65. PLAYER_HOLD[v.Name .. i] = {}
  66. PLAYER_HOLD[v.Name .. i].dist = DISTANCE
  67. PLAYER_HOLD[v.Name .. i].plr = v
  68. PLAYER_HOLD[v.Name .. i].diff = DIFF
  69. table.insert(DISTANCES, DIFF)
  70. end
  71. end
  72. end
  73.  
  74. if unpack(DISTANCES) == nil then
  75. return false
  76. end
  77.  
  78. local L_DISTANCE = math.floor(math.min(unpack(DISTANCES)))
  79. if L_DISTANCE > 20 then
  80. return false
  81. end
  82.  
  83. for i, v in pairs(PLAYER_HOLD) do
  84. if v.diff == L_DISTANCE then
  85. return v.plr
  86. end
  87. end
  88. return false
  89. end
  90.  
  91. GUI_MAIN = Instance.new('ScreenGui', game.CoreGui)
  92. GUI_TARGET = Instance.new('TextLabel', GUI_MAIN)
  93. GUI_AIM_AT = Instance.new('TextLabel', GUI_MAIN)
  94.  
  95. GUI_MAIN.Name = 'Sub To Reese Crawford'
  96.  
  97. GUI_TARGET.Size = UDim2.new(0,200,0,30)
  98. GUI_TARGET.BackgroundTransparency = 0.5
  99. GUI_TARGET.BackgroundColor = BrickColor.new('Fossil')
  100. GUI_TARGET.BorderSizePixel = 0
  101. GUI_TARGET.Position = UDim2.new(0.5,-100,0,0)
  102. GUI_TARGET.Text = 'AIMBOT : OFF'
  103. GUI_TARGET.TextColor3 = Color3.new(1,1,1)
  104. GUI_TARGET.TextStrokeTransparency = 1
  105. GUI_TARGET.TextWrapped = true
  106. GUI_TARGET.FontSize = 'Size24'
  107. GUI_TARGET.Font = 'SourceSansBold'
  108.  
  109. GUI_AIM_AT.Size = UDim2.new(0,200,0,20)
  110. GUI_AIM_AT.BackgroundTransparency = 0.5
  111. GUI_AIM_AT.BackgroundColor = BrickColor.new('Fossil')
  112. GUI_AIM_AT.BorderSizePixel = 0
  113. GUI_AIM_AT.Position = UDim2.new(0.5,-100,0,30)
  114. GUI_AIM_AT.Text = 'AIMING : HEAD'
  115. GUI_AIM_AT.TextColor3 = Color3.new(1,1,1)
  116. GUI_AIM_AT.TextStrokeTransparency = 1
  117. GUI_AIM_AT.TextWrapped = true
  118. GUI_AIM_AT.FontSize = 'Size18'
  119. GUI_AIM_AT.Font = 'SourceSansBold'
  120.  
  121. local TRACK = false
  122.  
  123. function CREATE(BASE, TEAM)
  124. local ESP_MAIN = Instance.new('BillboardGui', PLAYER.PlayerGui)
  125. local ESP_DOT = Instance.new('Frame', ESP_MAIN)
  126. local ESP_NAME = Instance.new('TextLabel', ESP_MAIN)
  127.  
  128. ESP_MAIN.Name = 'Esp'
  129. ESP_MAIN.Adornee = BASE
  130. ESP_MAIN.AlwaysOnTop = true
  131. ESP_MAIN.ExtentsOffset = Vector3.new(0, 1, 0)
  132. ESP_MAIN.Size = UDim2.new(0, 5, 0, 5)
  133.  
  134. ESP_DOT.Name = 'DOT'
  135. ESP_DOT.BackgroundColor = BrickColor.new('Bright red')
  136. ESP_DOT.BackgroundTransparency = 0.3
  137. ESP_DOT.BorderSizePixel = 0
  138. ESP_DOT.Position = UDim2.new(-0.5, 0, -0.5, 0)
  139. ESP_DOT.Size = UDim2.new(2, 0, 2, 0)
  140. ESP_DOT.Visible = true
  141. ESP_DOT.ZIndex = 10
  142.  
  143. ESP_NAME.Name = 'NAME'
  144. ESP_NAME.BackgroundColor3 = Color3.new(255, 255, 255)
  145. ESP_NAME.BackgroundTransparency = 1
  146. ESP_NAME.BorderSizePixel = 0
  147. ESP_NAME.Position = UDim2.new(0, 0, 0, -40)
  148. ESP_NAME.Size = UDim2.new(1, 0, 10, 0)
  149. ESP_NAME.Visible = true
  150. ESP_NAME.ZIndex = 10
  151. ESP_NAME.Font = 'ArialBold'
  152. ESP_NAME.FontSize = 'Size14'
  153. ESP_NAME.Text = BASE.Parent.Name:upper()
  154. ESP_NAME.TextColor = BrickColor.new('Bright red')
  155. end
  156.  
  157. function CLEAR()
  158. for _,v in pairs(PLAYER.PlayerGui:children()) do
  159. if v.Name == 'Esp' and v:IsA('BillboardGui') then
  160. v:Destroy()
  161. end
  162. end
  163. end
  164.  
  165. function FIND()
  166. CLEAR()
  167. TRACK = true
  168. spawn(function()
  169. while wait() do
  170. if TRACK then
  171. CLEAR()
  172. for i,v in pairs(game.Players:GetChildren()) do
  173. if v.Character and v.Character:FindFirstChild('Head') then
  174. if _G.FREE_FOR_ALL == false then
  175. if v.TeamColor ~= PLAYER.TeamColor then
  176. if v.Character:FindFirstChild('Head') then
  177. CREATE(v.Character.Head, true)
  178. end
  179. end
  180. else
  181. if v.Character:FindFirstChild('Head') then
  182. CREATE(v.Character.Head, true)
  183. end
  184. end
  185. end
  186. end
  187. end
  188. end
  189. wait(1)
  190. end)
  191. end
  192.  
  193. MOUSE.KeyDown:connect(function(KEY)
  194. KEY = KEY:lower():byte()
  195. if KEY == _G.BIND then
  196. ENABLED = true
  197. end
  198. end)
  199.  
  200. MOUSE.KeyUp:connect(function(KEY)
  201. KEY = KEY:lower():byte()
  202. if KEY == _G.BIND then
  203. ENABLED = false
  204. end
  205. end)
  206.  
  207. MOUSE.KeyDown:connect(function(KEY)
  208. KEY = KEY:lower():byte()
  209. if KEY == _G.ESP_BIND then
  210. if ESP_ENABLED == false then
  211. FIND()
  212. ESP_ENABLED = true
  213. print('ESP : Yes')
  214. elseif ESP_ENABLED == true then
  215. wait()
  216. CLEAR()
  217. TRACK = false
  218. ESP_ENABLED = true
  219. print('ESP : No')
  220. end
  221. end
  222. end)
  223.  
  224. MOUSE.KeyDown:connect(function(KEY)
  225. if KEY == _G.CHANGE_AIM then
  226. if _G.AIM_AT == 'Torso' then
  227. _G.AIM_AT = 'Head'
  228. GUI_AIM_AT.Text = 'AIMING : Head'
  229. elseif _G.AIM_AT == 'Torso' then
  230. _G.AIM_AT = 'TORSO'
  231. GUI_AIM_AT.Text = 'AIMING : FEET'
  232. end
  233. end
  234. end)
  235.  
  236. game:GetService('RunService').RenderStepped:connect(function()
  237. if ENABLED then
  238. local TARGET = GetNearestPlayerToMouse()
  239. if (TARGET ~= false) then
  240. local AIM = TARGET.Character:FindFirstChild(_G.AIM_AT)
  241. if AIM then
  242. CC.CoordinateFrame = CFrame.new(CC.CoordinateFrame.p, AIM.CFrame.p)
  243. end
  244. GUI_TARGET.Text = 'AIMBOT : '.. TARGET.Name:sub(1, 5)
  245. else
  246. GUI_TARGET.Text = 'AIMBOT : No'
  247. end
  248. end
  249. end)
  250.  
  251. repeat
  252. wait()
  253. if ESP_ENABLED == true then
  254. FIND()
  255. end
  256. until ESP_ENABLED == false
  257. wait()
  258. _G.FREE_FOR_ALL = true
  259. _G.BIND = 50-- SHIFT FOR AIMBOT
  260. _G.ESP_BIND = 52-- 4 FOR ESP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement