Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 21.49 KB | None | 0 0
  1. -- Objects
  2. repeat wait() until game.Players.LocalPlayer.PlayerGui
  3. local screenGui = Instance.new('ScreenGui', game.Players.LocalPlayer.PlayerGui)
  4.  
  5. -- Objects
  6.  
  7. local main = Instance.new("Frame")
  8. local output = Instance.new("Frame")
  9. local Authentication = Instance.new("TextLabel")
  10. local Initiation = Instance.new("TextLabel")
  11. local Scanning = Instance.new("TextLabel")
  12. local Auth_Ok = Instance.new("TextLabel")
  13. local Auth_Time = Instance.new("TextLabel")
  14. local Scanning_Ok = Instance.new("TextLabel")
  15. local filteringEnabled = Instance.new("TextLabel")
  16. local welcome = Instance.new("TextLabel")
  17. local script_menu = Instance.new("Frame")
  18. local rocky2u = Instance.new("TextButton")
  19. local fegod = Instance.new("TextButton")
  20. local fegod_2 = Instance.new("TextButton")
  21. local Clear = Instance.new("TextButton")
  22. local elysian = Instance.new("TextButton")
  23. local view = Instance.new("TextButton")
  24. local Execute = Instance.new("TextButton")
  25. local TextButton = Instance.new("TextButton")
  26. local TextButton_2 = Instance.new("TextButton")
  27. local onTop = Instance.new("TextButton")
  28. local AlwaysOnTop = Instance.new("TextLabel")
  29. local title = Instance.new("Frame")
  30. local TextLabel = Instance.new("TextLabel")
  31. local ScrollingFrame = Instance.new("ScrollingFrame")
  32. local TextBox = Instance.new("TextBox")
  33.  
  34. -- Properties
  35.  
  36. main.Name = "main"
  37. main.Parent = screenGui
  38. main.Active = true
  39. main.BackgroundColor3 = Color3.new(1, 1, 1)
  40. main.Draggable = true
  41. main.Position = UDim2.new(0.245631069, 0, 0.257495582, 0)
  42. main.Size = UDim2.new(0, 597, 0, 308)
  43.  
  44. output.Name = "output"
  45. output.Parent = main
  46. output.BackgroundColor3 = Color3.new(1, 1, 1)
  47. output.BorderColor3 = Color3.new(0.603922, 0.603922, 0.603922)
  48. output.Position = UDim2.new(0.279731989, 0, 0.655844152, 0)
  49. output.Size = UDim2.new(0, 305, 0, 97)
  50.  
  51. Authentication.Name = "Authentication"
  52. Authentication.Parent = output
  53. Authentication.BackgroundColor3 = Color3.new(1, 1, 1)
  54. Authentication.BackgroundTransparency = 1
  55. Authentication.BorderSizePixel = 0
  56. Authentication.Position = UDim2.new(0.0196721312, 0, 0, 0)
  57. Authentication.Size = UDim2.new(0, 125, 0, 26)
  58. Authentication.Font = Enum.Font.Code
  59. Authentication.FontSize = Enum.FontSize.Size14
  60. Authentication.Text = "Authenticating..."
  61. Authentication.TextSize = 14
  62. Authentication.TextXAlignment = Enum.TextXAlignment.Left
  63.  
  64. Initiation.Name = "Initiation"
  65. Initiation.Parent = output
  66. Initiation.BackgroundColor3 = Color3.new(1, 1, 1)
  67. Initiation.BackgroundTransparency = 1
  68. Initiation.BorderSizePixel = 0
  69. Initiation.Position = UDim2.new(0.0193390381, 0, 0.175257713, 0)
  70. Initiation.Size = UDim2.new(0, 244, 0, 26)
  71. Initiation.Font = Enum.Font.Code
  72. Initiation.FontSize = Enum.FontSize.Size14
  73. Initiation.Text = ""
  74. Initiation.TextSize = 14
  75. Initiation.TextXAlignment = Enum.TextXAlignment.Left
  76.  
  77. Scanning.Name = "Scanning"
  78. Scanning.Parent = output
  79. Scanning.BackgroundColor3 = Color3.new(1, 1, 1)
  80. Scanning.BackgroundTransparency = 1
  81. Scanning.BorderSizePixel = 0
  82. Scanning.Position = UDim2.new(0.0196721312, 0, 0.360824704, 0)
  83. Scanning.Size = UDim2.new(0, 83, 0, 26)
  84. Scanning.Font = Enum.Font.Code
  85. Scanning.FontSize = Enum.FontSize.Size14
  86. Scanning.Text = ""
  87. Scanning.TextSize = 14
  88. Scanning.TextXAlignment = Enum.TextXAlignment.Left
  89.  
  90. Auth_Ok.Name = "Auth_Ok!"
  91. Auth_Ok.Parent = output
  92. Auth_Ok.BackgroundColor3 = Color3.new(1, 1, 1)
  93. Auth_Ok.BorderSizePixel = 0
  94. Auth_Ok.Position = UDim2.new(0.409836054, 0, 0.010309278, 0)
  95. Auth_Ok.Size = UDim2.new(0, 28, 0, 26)
  96. Auth_Ok.Font = Enum.Font.Code
  97. Auth_Ok.FontSize = Enum.FontSize.Size14
  98. Auth_Ok.Text = ""
  99. Auth_Ok.TextColor3 = Color3.new(0.101961, 0.654902, 0.141176)
  100. Auth_Ok.TextSize = 14
  101. Auth_Ok.TextXAlignment = Enum.TextXAlignment.Left
  102.  
  103. Auth_Time.Name = "Auth_Time"
  104. Auth_Time.Parent = output
  105. Auth_Time.BackgroundColor3 = Color3.new(1, 1, 1)
  106. Auth_Time.BorderSizePixel = 0
  107. Auth_Time.Position = UDim2.new(0.53114754, 0, 0, 0)
  108. Auth_Time.Size = UDim2.new(0, 125, 0, 26)
  109. Auth_Time.Font = Enum.Font.Code
  110. Auth_Time.FontSize = Enum.FontSize.Size14
  111. Auth_Time.Text = ""
  112. Auth_Time.TextColor3 = Color3.new(0, 0, 0)
  113. Auth_Time.TextSize = 14
  114. Auth_Time.TextXAlignment = Enum.TextXAlignment.Left
  115.  
  116. Scanning_Ok.Name = "Scanning_Ok!"
  117. Scanning_Ok.Parent = output
  118. Scanning_Ok.BackgroundColor3 = Color3.new(1, 1, 1)
  119. Scanning_Ok.BackgroundTransparency = 1
  120. Scanning_Ok.BorderSizePixel = 0
  121. Scanning_Ok.Position = UDim2.new(0.275, 0, 0.360824704, 0)
  122. Scanning_Ok.Size = UDim2.new(0, 83, 0, 26)
  123. Scanning_Ok.Font = Enum.Font.Code
  124. Scanning_Ok.FontSize = Enum.FontSize.Size14
  125. Scanning_Ok.Text = ""
  126. Scanning_Ok.TextColor3 = Color3.new(0.101961, 0.654902, 0.141176)
  127. Scanning_Ok.TextSize = 14
  128. Scanning_Ok.TextXAlignment = Enum.TextXAlignment.Left
  129.  
  130. filteringEnabled.Name = "filteringEnabled"
  131. filteringEnabled.Parent = output
  132. filteringEnabled.BackgroundColor3 = Color3.new(1, 1, 1)
  133. filteringEnabled.BackgroundTransparency = 1
  134. filteringEnabled.BorderSizePixel = 0
  135. filteringEnabled.Position = UDim2.new(0.0196721312, 0, 0.731958747, 0)
  136. filteringEnabled.Size = UDim2.new(0, 125, 0, 26)
  137. filteringEnabled.Font = Enum.Font.Code
  138. filteringEnabled.FontSize = Enum.FontSize.Size14
  139. filteringEnabled.Text = ""
  140. filteringEnabled.TextColor3 = Color3.new(0.117647, 0.278431, 1)
  141. filteringEnabled.TextSize = 14
  142. filteringEnabled.TextXAlignment = Enum.TextXAlignment.Left
  143.  
  144. welcome.Name = "welcome"
  145. welcome.Parent = output
  146. welcome.BackgroundColor3 = Color3.new(1, 1, 1)
  147. welcome.BackgroundTransparency = 1
  148. welcome.BorderSizePixel = 0
  149. welcome.Position = UDim2.new(0.0196721312, 0, 0.556701005, 0)
  150. welcome.Size = UDim2.new(0, 125, 0, 26)
  151. welcome.Font = Enum.Font.Code
  152. welcome.FontSize = Enum.FontSize.Size14
  153. welcome.Text = ""
  154. welcome.TextColor3 = Color3.new(1, 0.447059, 0.12549)
  155. welcome.TextSize = 14
  156. welcome.TextXAlignment = Enum.TextXAlignment.Left
  157.  
  158. script_menu.Name = "script_menu"
  159. script_menu.Parent = main
  160. script_menu.BackgroundColor3 = Color3.new(1, 1, 1)
  161. script_menu.BorderColor3 = Color3.new(0.603922, 0.603922, 0.603922)
  162. script_menu.Position = UDim2.new(0.804921329, 0, 0.148368254, 0)
  163. script_menu.Size = UDim2.new(0, 111, 0, 253)
  164.  
  165. rocky2u.Name = "rocky2u"
  166. rocky2u.Parent = script_menu
  167. rocky2u.BackgroundColor3 = Color3.new(1, 1, 1)
  168. rocky2u.BorderSizePixel = 0
  169. rocky2u.Size = UDim2.new(0, 111, 0, 15)
  170. rocky2u.Font = Enum.Font.Code
  171. rocky2u.FontSize = Enum.FontSize.Size14
  172. rocky2u.Text = "rocky2u.txt"
  173. rocky2u.TextSize = 14
  174.  
  175. fegod.Name = "fegod"
  176. fegod.Parent = script_menu
  177. fegod.BackgroundColor3 = Color3.new(1, 1, 1)
  178. fegod.BorderSizePixel = 0
  179. fegod.Position = UDim2.new(0, 0, 0.0830039531, 0)
  180. fegod.Size = UDim2.new(0, 111, 0, 15)
  181. fegod.Font = Enum.Font.Code
  182. fegod.FontSize = Enum.FontSize.Size14
  183. fegod.Text = "FE God.txt"
  184. fegod.TextSize = 14
  185.  
  186. fegod_2.Name = "fegod"
  187. fegod_2.Parent = script_menu
  188. fegod_2.BackgroundColor3 = Color3.new(1, 1, 1)
  189. fegod_2.BorderSizePixel = 0
  190. fegod_2.Position = UDim2.new(0, 0, 0.166007906, 0)
  191. fegod_2.Size = UDim2.new(0, 111, 0, 15)
  192. fegod_2.Font = Enum.Font.Code
  193. fegod_2.FontSize = Enum.FontSize.Size14
  194. fegod_2.Text = "aimbot.txt"
  195. fegod_2.TextSize = 14
  196.  
  197. Clear.Name = "Clear"
  198. Clear.Parent = main
  199. Clear.Active = false
  200. Clear.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  201. Clear.BorderColor3 = Color3.new(0.8, 0.8, 0.8)
  202. Clear.Position = UDim2.new(0.0224284381, 0, 0.775674582, 0)
  203. Clear.Size = UDim2.new(0, 127, 0, 24)
  204. Clear.AutoButtonColor = false
  205. Clear.Font = Enum.Font.Code
  206. Clear.FontSize = Enum.FontSize.Size14
  207. Clear.Text = "Clear"
  208. Clear.TextColor3 = Color3.new(0.623529, 0.65098, 0.686275)
  209. Clear.TextSize = 14
  210. Clear.TextStrokeColor3 = Color3.new(0.611765, 0.596078, 0.611765)
  211.  
  212. elysian.Name = "elysian"
  213. elysian.Parent = main
  214. elysian.BackgroundColor3 = Color3.new(1, 1, 1)
  215. elysian.BackgroundTransparency = 1
  216. elysian.Position = UDim2.new(0.000788122416, 0, 0.0626722127, 0)
  217. elysian.Size = UDim2.new(0, 59, 0, 19)
  218. elysian.Font = Enum.Font.SourceSans
  219. elysian.FontSize = Enum.FontSize.Size14
  220. elysian.Text = "Elysian"
  221. elysian.TextSize = 14
  222.  
  223. view.Name = "view"
  224. view.Parent = main
  225. view.BackgroundColor3 = Color3.new(1, 1, 1)
  226. view.BackgroundTransparency = 1
  227. view.Position = UDim2.new(0.109646991, 0, 0.0626722127, 0)
  228. view.Size = UDim2.new(0, 59, 0, 19)
  229. view.Font = Enum.Font.SourceSans
  230. view.FontSize = Enum.FontSize.Size14
  231. view.Text = "View"
  232. view.TextSize = 14
  233.  
  234. Execute.Name = "Execute"
  235. Execute.Parent = main
  236. Execute.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  237. Execute.BorderColor3 = Color3.new(0.8, 0.8, 0.8)
  238. Execute.Position = UDim2.new(0.0224284381, 0, 0.661457181, 0)
  239. Execute.Size = UDim2.new(0, 127, 0, 24)
  240. Execute.Font = Enum.Font.Code
  241. Execute.FontSize = Enum.FontSize.Size14
  242. Execute.Text = "Execute"
  243. Execute.TextColor3 = Color3.new(0.623529, 0.65098, 0.686275)
  244. Execute.TextSize = 14
  245. Execute.TextStrokeColor3 = Color3.new(0.611765, 0.596078, 0.611765)
  246.  
  247. TextButton.Parent = main
  248. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  249. TextButton.BackgroundTransparency = 1
  250. TextButton.Position = UDim2.new(0.916419268, 0, -0.00143767893, 0)
  251. TextButton.Size = UDim2.new(0, 45, 0, 19)
  252. TextButton.Font = Enum.Font.SourceSans
  253. TextButton.FontSize = Enum.FontSize.Size18
  254. TextButton.Text = "X"
  255. TextButton.TextSize = 18
  256.  
  257. TextButton_2.Parent = main
  258. TextButton_2.BackgroundColor3 = Color3.new(1, 1, 1)
  259. TextButton_2.BackgroundTransparency = 1
  260. TextButton_2.Position = UDim2.new(0.830964148, 0, -0.00468443334, 0)
  261. TextButton_2.Size = UDim2.new(0, 45, 0, 19)
  262. TextButton_2.Font = Enum.Font.SourceSans
  263. TextButton_2.FontSize = Enum.FontSize.Size28
  264. TextButton_2.Text = "-"
  265. TextButton_2.TextSize = 28
  266.  
  267. onTop.Name = "onTop"
  268. onTop.Parent = main
  269. onTop.BackgroundColor3 = Color3.new(1, 1, 1)
  270. onTop.BorderColor3 = Color3.new(0, 0, 0)
  271. onTop.Position = UDim2.new(0.0224299058, 0, 0.892857134, 0)
  272. onTop.Size = UDim2.new(0, 14, 0, 14)
  273. onTop.AutoButtonColor = false
  274. onTop.Font = Enum.Font.Code
  275. onTop.FontSize = Enum.FontSize.Size14
  276. onTop.Text = ""
  277. onTop.TextColor3 = Color3.new(0, 0, 0)
  278. onTop.TextSize = 14
  279. onTop.TextStrokeColor3 = Color3.new(0.611765, 0.596078, 0.611765)
  280.  
  281. AlwaysOnTop.Name = "AlwaysOnTop"
  282. AlwaysOnTop.Parent = main
  283. AlwaysOnTop.BackgroundColor3 = Color3.new(1, 1, 1)
  284. AlwaysOnTop.BorderSizePixel = 0
  285. AlwaysOnTop.Position = UDim2.new(0.0672897175, 0, 0.886363626, 0)
  286. AlwaysOnTop.Size = UDim2.new(0, 92, 0, 16)
  287. AlwaysOnTop.Font = Enum.Font.Code
  288. AlwaysOnTop.FontSize = Enum.FontSize.Size12
  289. AlwaysOnTop.Text = "Always On Top"
  290. AlwaysOnTop.TextSize = 12
  291. AlwaysOnTop.TextXAlignment = Enum.TextXAlignment.Left
  292.  
  293. title.Name = "title"
  294. title.Parent = main
  295. title.BackgroundColor3 = Color3.new(1, 1, 1)
  296. title.BackgroundTransparency = 0.5
  297. title.Position = UDim2.new(-0.000600099564, 0, 0.00100207329, 0)
  298. title.Size = UDim2.new(0, 597, 0, 38)
  299.  
  300. TextLabel.Parent = title
  301. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  302. TextLabel.BorderSizePixel = 0
  303. TextLabel.Size = UDim2.new(0, 92, 0, 17)
  304. TextLabel.Font = Enum.Font.SourceSans
  305. TextLabel.FontSize = Enum.FontSize.Size14
  306. TextLabel.Text = "elysian v2.9.0b"
  307. TextLabel.TextSize = 14
  308.  
  309. ScrollingFrame.Parent = main
  310. ScrollingFrame.Active = true
  311. ScrollingFrame.BackgroundColor3 = Color3.new(0.658824, 0.658824, 0.658824)
  312. ScrollingFrame.BorderColor3 = Color3.new(0.603922, 0.603922, 0.603922)
  313. ScrollingFrame.Position = UDim2.new(0.0217755437, 0, 0.149350643, 0)
  314. ScrollingFrame.SelectionImageObject = TextBox
  315. ScrollingFrame.Size = UDim2.new(0, 459, 0, 146)
  316. ScrollingFrame.SizeConstraint = Enum.SizeConstraint.RelativeYY
  317. ScrollingFrame.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  318. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 145)
  319. ScrollingFrame.ScrollBarThickness = 15
  320. ScrollingFrame.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  321.  
  322. TextBox.Parent = ScrollingFrame
  323. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  324. TextBox.BorderColor3 = Color3.new(0.603922, 0.603922, 0.603922)
  325. TextBox.BorderSizePixel = 0
  326. TextBox.Size = UDim2.new(0, 445, 0, 146)
  327. TextBox.ClearTextOnFocus = false
  328. TextBox.Font = Enum.Font.Code
  329. TextBox.FontSize = Enum.FontSize.Size14
  330. TextBox.MultiLine = true
  331. TextBox.Text = ""
  332. TextBox.TextSize = 14
  333. TextBox.TextXAlignment = Enum.TextXAlignment.Left
  334. TextBox.TextYAlignment = Enum.TextYAlignment.Top
  335.  
  336. local whitelisted = {'fuj'}
  337. local ts = os.time()
  338. topmains = false
  339.  
  340.  
  341. TextBox.Changed:connect(function(val)
  342.     if val == 'TextBounds' then
  343.         if TextBox.TextBounds.Y > 154 then
  344.             ScrollingFrame.CanvasSize = UDim2.new(0,0,0,TextBox.TextBounds.Y)
  345.             TextBox.Size = TextBox.Size + UDim2.new(0,0,0,TextBox.TextBounds.Y +1)
  346.         end
  347.     end
  348. end)
  349.  
  350. delay(.4, function()
  351.     for k,v in next, whitelisted do
  352.         if string.match(game.Players.LocalPlayer.Name, v)then
  353.             loadElysian()
  354.         else
  355.            
  356.         end
  357.     end
  358. end)
  359.  
  360. failedElysian = function()
  361.     Auth_Ok.Color = Color3.new(255/167,255/38,255/15)
  362.     Auth_Ok.Text = 'invalid whitelist.'
  363. end
  364.  
  365. loadElysian = function()
  366.     Auth_Time.Text = tostring('('..math.random(ts, os.time())):sub(1,2)..'s'..')'
  367.     Auth_Ok.Text = 'OK!'
  368.     wait(math.random(.5, 2))
  369.     Initiation.Text = 'Initiating...'
  370.     wait(math.random(.5, 2))
  371.     Scanning.Text = 'Scanning...'
  372.     wait(math.random(.3, 1.5))
  373.     Scanning_Ok.Text = 'OK!'
  374.     Execute.BackgroundColor3 = Color3.new(226/255,224/255,226/255)
  375.     Execute.TextColor3 = Color3.new(0,0,0)
  376.     Execute.BorderColor3 = Color3.new(154/255, 154/ 255, 154/ 255)
  377.     Clear.BackgroundColor3 = Color3.new(226/255,224/255,226/255)
  378.     Clear.TextColor3 = Color3.new(0,0,0)
  379.     Clear.BorderColor3 = Color3.new(154/255, 154/ 255, 154/ 255)
  380.     welcome.Text = 'Welcome, '..game.Players.LocalPlayer.Name..'.'
  381.     filteringEnabled.Text = 'FilteringEnabled : '..tostring(workspace.FilteringEnabled)
  382. end
  383.  
  384. Clear.MouseButton1Click:connect(function()
  385.     TextBox.Text = ''
  386. end)
  387.  
  388. Execute.MouseButton1Click:connect(function()
  389.     loadstring(TextBox.Text)()
  390. end)
  391.  
  392. onTop.MouseButton1Click:Connect(function()
  393.     if not topmains then
  394.         topmains = true
  395.         onTop.Text = 'X'
  396.     else
  397.         onTop.Text = ''
  398.         topmains = false
  399.     end
  400. end)
  401.  
  402. rocky2u.MouseButton1Click:connect(function()
  403.     loadstring(game:GetObjects('rbxassetid://1094031579')[1].Source)()
  404. end)
  405.  
  406. fegod.MouseButton1Click:connect(function()
  407.     local player=game.Players.LocalPlayer.Character
  408.     player.Humanoid:Remove()
  409.     Instance.new('Humanoid',player)
  410. end)
  411.  
  412. fegod_2.MouseButton1Click:connect(function()
  413.     PLAYER  = game.Players.LocalPlayer
  414. MOUSE   = PLAYER:GetMouse()
  415. CC      = game.Workspace.CurrentCamera
  416.  
  417. ENABLED      = false
  418. ESP_ENABLED  = false
  419.  
  420. _G.FREE_FOR_ALL = true
  421.  
  422. _G.BIND        = 50
  423. _G.ESP_BIND    = 52
  424. _G.CHANGE_AIM  = 'q'
  425.  
  426. _G.AIM_AT = 'Head'
  427.  
  428. wait(1)
  429.  
  430. function GetNearestPlayerToMouse()
  431.     local PLAYERS      = {}
  432.     local PLAYER_HOLD  = {}
  433.     local DISTANCES    = {}
  434.     for i, v in pairs(game.Players:GetPlayers()) do
  435.         if v ~= PLAYER then
  436.             table.insert(PLAYERS, v)
  437.         end
  438.     end
  439.     for i, v in pairs(PLAYERS) do
  440.         if _G.FREE_FOR_ALL == false then
  441.             if v and (v.Character) ~= nil and v.TeamColor ~= PLAYER.TeamColor then
  442.                 local AIM = v.Character:FindFirstChild(_G.AIM_AT)
  443.                 if AIM ~= nil then
  444.                     local DISTANCE                 = (AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
  445.                     local RAY                      = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p, (MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
  446.                     local HIT,POS                  = game.Workspace:FindPartOnRay(RAY, game.Workspace)
  447.                     local DIFF                     = math.floor((POS - AIM.Position).magnitude)
  448.                     PLAYER_HOLD[v.Name .. i]       = {}
  449.                     PLAYER_HOLD[v.Name .. i].dist  = DISTANCE
  450.                     PLAYER_HOLD[v.Name .. i].plr   = v
  451.                     PLAYER_HOLD[v.Name .. i].diff  = DIFF
  452.                     table.insert(DISTANCES, DIFF)
  453.                 end
  454.             end
  455.         elseif _G.FREE_FOR_ALL == true then
  456.             local AIM = v.Character:FindFirstChild(_G.AIM_AT)
  457.             if AIM ~= nil then
  458.                 local DISTANCE                 = (AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
  459.                 local RAY                      = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p, (MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
  460.                 local HIT,POS                  = game.Workspace:FindPartOnRay(RAY, game.Workspace)
  461.                 local DIFF                     = math.floor((POS - AIM.Position).magnitude)
  462.                 PLAYER_HOLD[v.Name .. i]       = {}
  463.                 PLAYER_HOLD[v.Name .. i].dist  = DISTANCE
  464.                 PLAYER_HOLD[v.Name .. i].plr   = v
  465.                 PLAYER_HOLD[v.Name .. i].diff  = DIFF
  466.                 table.insert(DISTANCES, DIFF)
  467.             end
  468.         end
  469.     end
  470.    
  471.     if unpack(DISTANCES) == nil then
  472.         return false
  473.     end
  474.    
  475.     local L_DISTANCE = math.floor(math.min(unpack(DISTANCES)))
  476.     if L_DISTANCE > 20 then
  477.         return false
  478.     end
  479.    
  480.     for i, v in pairs(PLAYER_HOLD) do
  481.         if v.diff == L_DISTANCE then
  482.             return v.plr
  483.         end
  484.     end
  485.     return false
  486. end
  487.  
  488. GUI_MAIN                           = Instance.new('ScreenGui', game.CoreGui)
  489. GUI_TARGET                         = Instance.new('TextLabel', GUI_MAIN)
  490. GUI_AIM_AT                         = Instance.new('TextLabel', GUI_MAIN)
  491.  
  492. GUI_MAIN.Name                      = 'AIMBOT'
  493.  
  494. GUI_TARGET.Size                    = UDim2.new(0,200,0,30)
  495. GUI_TARGET.BackgroundTransparency  = 0.5
  496. GUI_TARGET.BackgroundColor         = BrickColor.new('Fossil')
  497. GUI_TARGET.BorderSizePixel         = 0
  498. GUI_TARGET.Position                = UDim2.new(0.5,-100,0,0)
  499. GUI_TARGET.Text                    = 'AIMBOT : OFF'
  500. GUI_TARGET.TextColor3              = Color3.new(1,1,1)
  501. GUI_TARGET.TextStrokeTransparency  = 1
  502. GUI_TARGET.TextWrapped             = true
  503. GUI_TARGET.FontSize                = 'Size24'
  504. GUI_TARGET.Font                    = 'SourceSansBold'
  505.  
  506. GUI_AIM_AT.Size                    = UDim2.new(0,200,0,20)
  507. GUI_AIM_AT.BackgroundTransparency  = 0.5
  508. GUI_AIM_AT.BackgroundColor         = BrickColor.new('Fossil')
  509. GUI_AIM_AT.BorderSizePixel         = 0
  510. GUI_AIM_AT.Position                = UDim2.new(0.5,-100,0,30)
  511. GUI_AIM_AT.Text                    = 'AIMING : HEAD'
  512. GUI_AIM_AT.TextColor3              = Color3.new(1,1,1)
  513. GUI_AIM_AT.TextStrokeTransparency  = 1
  514. GUI_AIM_AT.TextWrapped             = true
  515. GUI_AIM_AT.FontSize                = 'Size18'
  516. GUI_AIM_AT.Font                    = 'SourceSansBold'
  517.  
  518. local TRACK = false
  519.  
  520. function CREATE(BASE, TEAM)
  521.     local ESP_MAIN                   = Instance.new('BillboardGui', PLAYER.PlayerGui)
  522.     local ESP_DOT                    = Instance.new('Frame', ESP_MAIN)
  523.     local ESP_NAME                   = Instance.new('TextLabel', ESP_MAIN)
  524.    
  525.     ESP_MAIN.Name                    = 'ESP'
  526.     ESP_MAIN.Adornee                 = BASE
  527.     ESP_MAIN.AlwaysOnTop             = true
  528.     ESP_MAIN.ExtentsOffset           = Vector3.new(0, 1, 0)
  529.     ESP_MAIN.Size                    = UDim2.new(0, 5, 0, 5)
  530.    
  531.     ESP_DOT.Name                     = 'DOT'
  532.     ESP_DOT.BackgroundColor          = BrickColor.new('Bright red')
  533.     ESP_DOT.BackgroundTransparency   = 0.3
  534.     ESP_DOT.BorderSizePixel          = 0
  535.     ESP_DOT.Position                 = UDim2.new(-0.5, 0, -0.5, 0)
  536.     ESP_DOT.Size                     = UDim2.new(2, 0, 2, 0)
  537.     ESP_DOT.Visible                  = true
  538.     ESP_DOT.ZIndex                   = 10
  539.    
  540.     ESP_NAME.Name                    = 'NAME'
  541.     ESP_NAME.BackgroundColor3        = Color3.new(255, 255, 255)
  542.     ESP_NAME.BackgroundTransparency  = 1
  543.     ESP_NAME.BorderSizePixel         = 0
  544.     ESP_NAME.Position                = UDim2.new(0, 0, 0, -40)
  545.     ESP_NAME.Size                    = UDim2.new(1, 0, 10, 0)
  546.     ESP_NAME.Visible                 = true
  547.     ESP_NAME.ZIndex                  = 10
  548.     ESP_NAME.Font                    = 'ArialBold'
  549.     ESP_NAME.FontSize                = 'Size14'
  550.     ESP_NAME.Text                    = BASE.Parent.Name:upper()
  551.     ESP_NAME.TextColor               = BrickColor.new('Bright red')
  552. end
  553.  
  554. function CLEAR()
  555.     for _,v in pairs(PLAYER.PlayerGui:children()) do
  556.         if v.Name == 'ESP' and v:IsA('BillboardGui') then
  557.             v:Destroy()
  558.         end
  559.     end
  560. end
  561.  
  562. function FIND()
  563.     CLEAR()
  564.     TRACK = true
  565.     spawn(function()
  566.         while wait() do
  567.             if TRACK then
  568.                 CLEAR()
  569.                 for i,v in pairs(game.Players:GetChildren()) do
  570.                     if v.Character and v.Character:FindFirstChild('Head') then
  571.                         if _G.FREE_FOR_ALL == false then
  572.                             if v.TeamColor ~= PLAYER.TeamColor then
  573.                                 if v.Character:FindFirstChild('Head') then
  574.                                     CREATE(v.Character.Head, true)
  575.                                 end
  576.                             end
  577.                         else
  578.                             if v.Character:FindFirstChild('Head') then
  579.                                 CREATE(v.Character.Head, true)
  580.                             end
  581.                         end
  582.                     end
  583.                 end
  584.             end
  585.         end
  586.         wait(1)
  587.     end)
  588. end
  589.  
  590. MOUSE.KeyDown:connect(function(KEY)
  591.     KEY = KEY:lower():byte()
  592.     if KEY == _G.BIND then
  593.         ENABLED = true
  594.     end
  595. end)
  596.  
  597. MOUSE.KeyUp:connect(function(KEY)
  598.     KEY = KEY:lower():byte()
  599.     if KEY == _G.BIND then
  600.         ENABLED = false
  601.     end
  602. end)
  603.  
  604. MOUSE.KeyDown:connect(function(KEY)
  605.     KEY = KEY:lower():byte()
  606.     if KEY == _G.ESP_BIND then
  607.         if ESP_ENABLED == false then
  608.             FIND()
  609.             ESP_ENABLED = true
  610.             print('ESP : ON')
  611.         elseif ESP_ENABLED == true then
  612.             wait()
  613.             CLEAR()
  614.             TRACK = false
  615.             ESP_ENABLED = true
  616.             print('ESP : OFF')
  617.         end
  618.     end
  619. end)
  620.  
  621. MOUSE.KeyDown:connect(function(KEY)
  622.     if KEY == _G.CHANGE_AIM then
  623.         if _G.AIM_AT == 'Head' then
  624.             _G.AIM_AT = 'Torso'
  625.             GUI_AIM_AT.Text = 'AIMING : TORSO'
  626.         elseif _G.AIM_AT == 'Torso' then
  627.             _G.AIM_AT = 'Head'
  628.             GUI_AIM_AT.Text = 'AIMING : HEAD'
  629.         end
  630.     end
  631. end)
  632.  
  633. game:GetService('RunService').RenderStepped:connect(function()
  634.     if ENABLED then
  635.         local TARGET = GetNearestPlayerToMouse()
  636.         if (TARGET ~= false) then
  637.             local AIM = TARGET.Character:FindFirstChild(_G.AIM_AT)
  638.             if AIM then
  639.                 CC.CoordinateFrame = CFrame.new(CC.CoordinateFrame.p, AIM.CFrame.p)
  640.             end
  641.             GUI_TARGET.Text = 'AIMBOT : '.. TARGET.Name:sub(1, 5)
  642.         else
  643.             GUI_TARGET.Text = 'AIMBOT : OFF'
  644.         end
  645.     end
  646. end)
  647.  
  648. repeat
  649.     wait()
  650.     if ESP_ENABLED == true then
  651.         FIND()
  652.     end
  653. until ESP_ENABLED == false
  654. wait()
  655. _G.FREE_FOR_ALL = true
  656. _G.BIND = 50 -- LEFT CTRL
  657. _G.ESP_BIND = 52 -- LEFT ALT
  658. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement