Advertisement
SirAtom331

Fps gui

Jan 30th, 2019
8,309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.86 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local Frame = Instance.new("Frame")
  6. local TextButton = Instance.new("TextButton")
  7. local TextLabel = Instance.new("TextLabel")
  8. local TextButton_2 = Instance.new("TextButton")
  9. local TextButton_3 = Instance.new("TextButton")
  10. --Properties:
  11. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  12.  
  13. Frame.Parent = ScreenGui
  14. Frame.BackgroundColor3 = Color3.new(1, 1, 0)
  15. Frame.BorderColor3 = Color3.new(0, 0, 0)
  16. Frame.BorderSizePixel = 5
  17. Frame.Position = UDim2.new(0.839999974, 0, 0.0724815726, 0)
  18. Frame.Size = UDim2.new(0, 102, 0, 237)
  19.  
  20. TextButton.Parent = Frame
  21. TextButton.BackgroundColor3 = Color3.new(1, 1, 0)
  22. TextButton.Position = UDim2.new(0, 0, 0.578059077, 0)
  23. TextButton.Size = UDim2.new(0, 102, 0, 100)
  24. TextButton.Font = Enum.Font.Highway
  25. TextButton.Text = "Aimbot // ESP (Both ALT)"
  26. TextButton.TextColor3 = Color3.new(0, 0, 0)
  27. TextButton.TextScaled = true
  28. TextButton.TextSize = 12
  29. TextButton.TextWrapped = true
  30.  
  31. TextLabel.Parent = Frame
  32. TextLabel.BackgroundColor3 = Color3.new(1, 1, 0)
  33. TextLabel.Size = UDim2.new(0, 102, 0, 47)
  34. TextLabel.Font = Enum.Font.SciFi
  35. TextLabel.Text = "Fps"
  36. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  37. TextLabel.TextSize = 34
  38.  
  39. TextButton_2.Parent = Frame
  40. TextButton_2.BackgroundColor3 = Color3.new(1, 0, 0)
  41. TextButton_2.BorderColor3 = Color3.new(1, 0, 0)
  42. TextButton_2.Position = UDim2.new(0, 0, -0.0337553062, 0)
  43. TextButton_2.Size = UDim2.new(0, 102, 0, 8)
  44. TextButton_2.Font = Enum.Font.SourceSans
  45. TextButton_2.Text = ""
  46. TextButton_2.TextColor3 = Color3.new(0, 0, 0)
  47. TextButton_2.TextSize = 14
  48.  
  49. TextButton_3.Parent = Frame
  50. TextButton_3.BackgroundColor3 = Color3.new(1, 1, 0)
  51. TextButton_3.Position = UDim2.new(0, 0, 0.367088616, 0)
  52. TextButton_3.Size = UDim2.new(0, 102, 0, 50)
  53. TextButton_3.Font = Enum.Font.Highway
  54. TextButton_3.Text = "Speed (Shift)"
  55. TextButton_3.TextColor3 = Color3.new(0, 0, 0)
  56. TextButton_3.TextSize = 20
  57. -- Scripts:
  58. function SCRIPT_PQSR70_FAKESCRIPT() -- TextButton.LocalScript
  59. local script = Instance.new('LocalScript')
  60. script.Parent = TextButton
  61. script.Parent.MouseButton1Click:Connect(function()
  62. -- @Lilith.lua
  63. -- author: lenny
  64. local f_print, printing = print, true
  65. local function print ( ... )
  66. if printing then
  67. f_print("[Lilith] - ", ...)
  68. end
  69. end
  70. print "Version 1.4b, official release;"
  71. print "Aimbot will not work in every game, such as Phantom Forces."
  72.  
  73. -- configuration:
  74. local settings = {
  75. -- hotkeys:
  76. commandbar_Hotkey = "Minus",
  77. esp_Hotkey = "RightAlt",
  78. aimbot_Hotkey = "LeftAlt";
  79.  
  80. -- defaults:
  81. esp_boxColor = "Bright red",
  82. esp_boxTransparent = true,
  83. esp_useTeamColorIfApplicable = true,
  84. esp_showDistance = true,
  85. esp_holdHotkey = false,
  86. esp_showCharacterEspd = true,
  87. aimbot_clickToLock = true,
  88. aimbot_clickToLockDistanceOverride = true,
  89. aimbot_maxDistance = 250,
  90. aimbot_aimFor = "Head";
  91.  
  92. -- ignores:
  93. esp_ignoreTeam = true,
  94. esp_dont_ignoreSelf = false,
  95. aimbot_ignoreWalls = false,
  96. aimbot_ignoreTeam = false;
  97. }
  98.  
  99. -- mainscript:
  100. local Players = game:GetService("Players")
  101. local Teams = game:GetService("Teams")
  102. local RunService = game:GetService("RunService")
  103. local UserInputService = game:GetService("UserInputService")
  104.  
  105. local localPlayer = Players.LocalPlayer
  106. local Mouse = localPlayer:GetMouse()
  107. local CoreGui = game:GetService("CoreGui")
  108.  
  109. local function findFirstChild (obj, name, sensitive)
  110. local children = obj:GetChildren()
  111. for i = 1, #children do
  112. local objN = children[i].Name
  113. if not sensitive then
  114. objN, name = objN:lower(), name:lower()
  115. end
  116. if objN:sub(1, name:len()) == name then
  117. return children[i]
  118. end
  119. end
  120. end
  121. local function setHotkey (section, keyName)
  122. if Enum.KeyCode[keyName] then
  123. settings[section .. '_Hotkey'] = Enum.KeyCode[keyName]
  124. print ("Sucessfully set " .. section .. "'s hotkey to " .. keyName)
  125. end
  126. end setHotkey("esp", settings.esp_Hotkey); setHotkey("aimbot", settings.aimbot_Hotkey); setHotkey("commandbar", settings.commandbar_Hotkey)
  127. local function splitString (str, delimeter)
  128. local strParts = {}
  129. local pattern = ("([^%s]+)"):format(delimeter)
  130.  
  131. str:gsub(pattern, function(section)
  132. strParts[#strParts + 1] = section
  133. end)
  134. return strParts
  135. end
  136. local function isHumanoidAlive (character)
  137. if character then
  138. local humanoid = character:FindFirstChildOfClass("Humanoid")
  139. if humanoid and humanoid.Health > 0 then
  140. return character, humanoid
  141. end
  142. end
  143. end
  144. local function getCharacterFromPart (obj) -- made this in haste, so its unorganized!
  145. while (obj ~= game and obj ~= workspace) and (obj.Parent and not Players:GetPlayerFromCharacter(obj.Parent)) do
  146. obj = obj.Parent
  147. end
  148. return obj
  149. end
  150. local function viewNotObstructed (lookingAt, parent)
  151. local character, _ = isHumanoidAlive(localPlayer.Character)
  152. if character then
  153. local headPos = character.Head.CFrame.p
  154. local viewRay = Ray.new(headPos, (lookingAt.CFrame.p - headPos).unit *
  155. settings.aimbot_maxDistance)
  156. local object = workspace:FindPartOnRay(viewRay, character, true, true)
  157. if object then
  158. return object:IsDescendantOf(parent)
  159. end
  160. end
  161. end
  162. local function setColor (color)
  163. return select(2, pcall(function()
  164. if typeof(color) == "BrickColor" then
  165. color = color.Color
  166. elseif typeof(color) == "string" then
  167. color = BrickColor.new(color).Color
  168. end
  169. return color
  170. end))
  171. end
  172.  
  173. -- @create objects
  174. local ESPOBJF do
  175. ESPOBJF = findFirstChild(CoreGui, "ESPOBJF")
  176. if not ESPOBJF then
  177. ESPOBJF = Instance.new("Folder", CoreGui)
  178. ESPOBJF.Name = "ESPOBJF"
  179. end
  180. end
  181. local Box, espText, aimbotText
  182. local commandBar do
  183. commandBar = Instance.new("ScreenGui")
  184. commandBar.Name = "%$#@$!&"
  185.  
  186. local frame = Instance.new("Frame", commandBar)
  187. frame.BackgroundTransparency = 1; frame.Size, frame.Position = UDim2.new(0.221, 0,0.111, 0), UDim2.new(0.407, 0,0.644, 0); frame.Draggable = true; frame.Active = true
  188.  
  189. local textlabel = Instance.new("TextLabel", frame)
  190. textlabel.BackgroundTransparency = 1; textlabel.TextSize = 16; textlabel.TextColor3 = Color3.fromRGB(255, 255, 255); textlabel.Font = Enum.Font.SourceSansLight; textlabel.Position, textlabel.Size = UDim2.new(0.132, 0,0.1, 0), UDim2.new(0.75, 0, 0.201, 0); textlabel.ZIndex = 1; textlabel.Text = "[Lilith]"
  191.  
  192. Box = Instance.new("TextBox", frame)
  193. Box.BackgroundColor3 = Color3.fromRGB(58, 58, 58); Box.BackgroundTransparency = 0.5; Box.BorderSizePixel = 0; Box.TextSize = 16; Box.TextColor3 = Color3.fromRGB(255, 255, 255); Box.Font = Enum.Font.SourceSansItalic; Box.ClipsDescendants = true; Box.ZIndex = 1; Box.Text = "press to `-` to type"; Box.Size, Box.Position = UDim2.new(0.922, 0,0.402, 0), UDim2.new(0.026, 0,0.402, 0) ; Box.TextTransparency = 0.5
  194.  
  195. aimbotText = textlabel:Clone()
  196. aimbotText.Size, aimbotText.Position =UDim2.new(0.079, 0,0.201, 0), UDim2.new(0.74, 0,0.1, 0); aimbotText.TextColor3, aimbotText.Font = Color3.fromRGB(48, 48, 48), Enum.Font.SourceSansBold; aimbotText.Text = "bot"; aimbotText.Parent = frame
  197.  
  198. espText = textlabel:Clone()
  199. espText.Size, espText.Position =UDim2.new(0.079, 0,0.201, 0), UDim2.new(0.184, 0,0.1, 0); espText.TextColor3, espText.Font = Color3.fromRGB(48, 48, 48), Enum.Font.SourceSansBold; espText.Text = "esp"; espText.Parent = frame
  200. end
  201. local active_espObjects = {}
  202. local function clear_active_espObjects (ofParent)
  203. if not ofParent then
  204. ESPOBJF:ClearAllChildren()
  205. local a = 1
  206. while active_espObjects[a] do
  207. if active_espObjects[a] then
  208. active_espObjects[a]:Destroy()
  209. end
  210. active_espObjects[a] = nil
  211. a = a + 1
  212. end
  213. else
  214. local j = 1
  215. while active_espObjects[j] do
  216. local espObj = active_espObjects[j]
  217. if espObj and espObj:IsDescendantOf(ofParent) or ((espObj:IsA("BoxHandleAdornment") or espObj:IsA("BillboardGui")) and espObj.Adornee and espObj.Adornee:IsDescendantOf(ofParent)) then
  218. espObj:Destroy()
  219. espObj = nil
  220. end
  221. j = j + 1
  222. end
  223. end
  224. end
  225. local function createEspBoxOnObj (obj, color)
  226. local espBox do
  227. espBox = Instance.new("BoxHandleAdornment")
  228. espBox.AlwaysOnTop = true
  229. espBox.ZIndex = 10
  230. espBox.Color3 = BrickColor.new(settings.esp_boxColor).Color
  231. end
  232.  
  233. local color = setColor(color)
  234. if color then
  235. espBox.Color3 = color
  236. end
  237.  
  238. if settings.esp_boxTransparent then
  239. espBox.Transparency = 0.8
  240. end
  241.  
  242. espBox.Size = obj.Size
  243. espBox.Adornee = obj
  244. espBox.Parent = ESPOBJF
  245. active_espObjects[#active_espObjects + 1] = espBox
  246.  
  247. return espBox
  248. end
  249. local function getDistanceFrom (object)
  250. if localPlayer.Character and localPlayer.Character.Head then
  251. return math.floor((object.Position - localPlayer.Character.Head.Position).magnitude)
  252. else
  253. return "err"
  254. end
  255. end
  256. local function createDistTagOnCharacter (character, removeTag, color)
  257. local _, humanoid = isHumanoidAlive(character)
  258. if humanoid then
  259. humanoid.Died:Connect(function()
  260. clear_active_espObjects(character)
  261. end)
  262. local head = character:FindFirstChild("Head")
  263. if head then
  264. if ESPOBJF:findFirstChild(character.Name) then
  265. ESPOBJF[character.Name]:Destroy()
  266. if removeTag then
  267. return
  268. end
  269. end
  270.  
  271. local textLabel
  272. local distTag do
  273. distTag = Instance.new("BillboardGui")
  274. distTag.AlwaysOnTop = true
  275. distTag.Enabled = true
  276. distTag.Size = UDim2.new(0, 10,0, 50)
  277.  
  278. textLabel = Instance.new("TextLabel", distTag)
  279. textLabel.Size = UDim2.new(0, 75,0, 25)
  280. textLabel.BackgroundColor3 = (color ~= nil and color) or Color3.fromRGB(48, 48, 48)
  281. textLabel.BackgroundTransparency = 0.5
  282. textLabel.Font = Enum.Font.SourceSansBold
  283. textLabel.TextSize = 18
  284. textLabel.TextColor3 = Color3.fromRGB(255, 255 ,255)
  285. textLabel.ClipsDescendants = true
  286. textLabel.BorderSizePixel = 0
  287. end
  288. distTag.Adornee = head
  289. distTag.Parent = ESPOBJF
  290. distTag.Name = character.Name
  291. textLabel.Text = character.Name
  292. active_espObjects[#active_espObjects + 1] = distTag
  293.  
  294. coroutine.resume(coroutine.create(function()
  295. local now = tick()
  296. while isHumanoidAlive(character) and distTag do
  297. local t = tick() - now
  298. if t < 5 then
  299. if textLabel.Text ~= character.Name then
  300. textLabel.Text = character.Name
  301. end
  302. elseif t < 10 and t > 5 then
  303. textLabel.Text = getDistanceFrom(head)
  304. elseif t > 10 then
  305. now = tick()
  306. end
  307. wait()
  308. end
  309. end))
  310. return distTag
  311. end
  312. end
  313. end
  314.  
  315. -- @esp component
  316. local function esp_getPlayers ()
  317. local players = {}
  318. for _, player in next, Players:GetPlayers() do
  319. if (not settings.esp_ignoreTeam and player.Team ~= localPlayer.Team) or settings.esp_ignoreTeam then
  320. if settings.esp_dont_ignoreSelf or player ~= localPlayer then
  321. players[#players + 1] = player
  322. end
  323. end
  324. end
  325. return players
  326. end
  327. function espCharacter (character, color, override)
  328. local alreadyESPdTag = character:FindFirstChild("AESPT")
  329. if alreadyESPdTag then
  330. if override then
  331. clear_active_espObjects(character)
  332. else
  333. return
  334. end
  335. end
  336.  
  337. local _, humanoid = isHumanoidAlive(character)
  338. if humanoid then
  339.  
  340. humanoid.Died:Connect(function()
  341. clear_active_espObjects(character)
  342. end)
  343. for _, part in next, character:GetChildren() do
  344. if part:IsA("BasePart") then
  345. createEspBoxOnObj(part, color)
  346. end
  347. end
  348.  
  349. alreadyESPdTag = Instance.new("BoolValue", character)
  350. alreadyESPdTag.Name = "AESPT"
  351. active_espObjects[#active_espObjects + 1] = alreadyESPdTag
  352. end
  353. end
  354. local espEnabled = false
  355. local esp_Cache = {}
  356. function clear_esp_Cache ()
  357. local a = 1
  358. while esp_Cache[a] do
  359. esp_Cache[a]:Disconnect()
  360. esp_Cache[a] = nil
  361. a = a + 1
  362. end
  363. esp_Cache = {}
  364. end
  365. local function handle_Esp (character)
  366.  
  367. local timeout = tick()
  368. if not isHumanoidAlive(character) then
  369. repeat wait() until isHumanoidAlive(character) or (tick() - timeout) >= 2
  370. if not isHumanoidAlive(character) then return end
  371. end
  372.  
  373. local teamColor = Players:GetPlayerFromCharacter(character).TeamColor
  374. local color = (settings.esp_useTeamColorIfApplicable and teamColor) or settings.esp_boxColor
  375. color = setColor(color)
  376. if settings.esp_showCharacterEspd then
  377. espCharacter(character, color)
  378. end
  379. if settings.esp_showDistance then
  380. createDistTagOnCharacter(character, false, color)
  381. end
  382.  
  383. local humanoid = character:FindFirstChildOfClass("Humanoid")
  384. humanoid.Died:Connect(function()
  385. clear_active_espObjects(character)
  386. end)
  387.  
  388. end
  389. local function toggle_Esp (turnOff)
  390. if turnOff then
  391. clear_esp_Cache()
  392. clear_active_espObjects()
  393. espEnabled = false
  394. espText.TextColor3 = Color3.fromRGB(48, 48, 48)
  395. print "ESP successfully disabled"
  396. return
  397. elseif not turnOff and not espEnabled then
  398. print "Attempting to enabled ESP .."
  399. clear_esp_Cache()
  400. clear_active_espObjects()
  401. local players = esp_getPlayers()
  402. for _, player in next, players do
  403. local rbxScriptSignal = player.CharacterAdded:Connect(function(character)
  404. if (not espEnabled and rbxScriptSignal) then rbxScriptSignal:Disconnect(); rbxScriptSignal = nil return end
  405. handle_Esp(character)
  406. end); esp_Cache[#esp_Cache + 1] = rbxScriptSignal
  407. if player.Character and isHumanoidAlive(player.Character) then
  408. handle_Esp(player.Character)
  409. end
  410. end
  411. espText.TextColor3 = Color3.fromRGB(0, 255, 0)
  412. print "ESP successfully enabled"
  413. end
  414. end
  415.  
  416. -- @aimbot component
  417. local targetPlayer, targetTeam, currentLock
  418. local function clickToTarget (target, override_maxDistance)
  419. if target and (override_maxDistance or (not override_maxDistance and getDistanceFrom(target) <= settings.aimbot_maxDistance)) then
  420. if target.Parent and isHumanoidAlive(target.Parent) then
  421. targetPlayer = game.Players:GetPlayerFromCharacter(target.Parent)
  422. return true
  423. end
  424. end
  425. end
  426. local function getClosestCharacter ()
  427. if isHumanoidAlive(localPlayer.Character) then
  428. local closestDist, chrctr
  429. if targetPlayer then
  430. chrctr, _ = isHumanoidAlive(targetPlayer.Character)
  431. if not chrctr then
  432. chrctr = targetPlayer.CharacterAdded:wait()
  433. end
  434. else
  435. local players = (targetTeam and targetTeam:GetPlayers()) or Players:GetPlayers()
  436. for i = 1, #players do
  437. if players[i] ~= localPlayer and (targetTeam or settings.aimbot_ignoreTeam or (not settings.aimbot_ignoreTeam and players[i].Team ~= localPlayer.Team)) then
  438. local player = players[i]
  439. if isHumanoidAlive(player.Character) then
  440. local bodyPart = player.Character:FindFirstChild(settings.aimbot_aimFor)
  441. if bodyPart then
  442. local distanceBetween = getDistanceFrom(bodyPart)
  443. if distanceBetween <= settings.aimbot_maxDistance and (not closestDist or distanceBetween < closestDist) then
  444. if (settings.aimbot_ignoreWalls or (not settings.aimbot_ignoreWalls and viewNotObstructed(bodyPart, player.Character))) then
  445. closestDist = distanceBetween
  446. chrctr = player.character
  447. end
  448. end
  449. end
  450. end
  451. end
  452. end
  453. end
  454. return chrctr
  455. end
  456. end
  457. local function targetCamera ()
  458. if isHumanoidAlive(localPlayer.Character) then
  459. local head = localPlayer.Character.Head
  460. local camera = workspace.CurrentCamera
  461. local character = (targetPlayer and isHumanoidAlive(targetPlayer.Character) and targetPlayer.Character) or getClosestCharacter()
  462. if character and character:FindFirstChild(settings.aimbot_aimFor) then
  463. currentLock = Players:GetPlayerFromCharacter(character)
  464. camera.CFrame = CFrame.new(camera.CFrame.p, character[settings.aimbot_aimFor].CFrame.p)
  465. end
  466. end
  467. end
  468. aimbotEnabled = false
  469. local function toggle_Aimbot ()
  470. aimbotEnabled = not aimbotEnabled
  471. print ("Aimbot successfully " .. ((aimbotEnabled and "enabled") or "disabled"))
  472. aimbotText.TextColor3 = (aimbotEnabled and Color3.fromRGB(0, 255, 0)) or Color3.fromRGB(48, 48, 48)
  473. end
  474.  
  475. -- @commandbar component
  476. local function isSetting (settingName)
  477. for k in next, settings do
  478. if k:lower() == settingName:lower() then
  479. return k
  480. end
  481. end
  482. return nil
  483. end
  484. local function changeSetting (settingName, newValue, notBoolean)
  485. if typeof(newValue) == "string" and not notBoolean then
  486. if (newValue:lower() == "enable" or newValue:lower() == "true") then newValue = true
  487. elseif (newValue:lower() == "disable" or newValue:lower() == "false") then newValue = false end
  488. end
  489. local k = isSetting(settingName)
  490. if k then
  491. settings[k] = newValue
  492. print("changed", k, newValue)
  493. end
  494. end
  495. function execute_Command (contents)
  496. local section = contents[1]:lower()
  497. local command = contents[2] and contents[2]:lower()
  498.  
  499. if (section == "enable" or section == "on") or (section == "disable" or section == "off") then
  500. if command == "aimbot" then
  501. aimbotEnabled = (section == "enable" or section == "on")
  502. print ("Aimbot successfully " .. ((aimbotEnabled and "enabled") or "disabled"))
  503. aimbotText.TextColor3 = (aimbotEnabled and Color3.fromRGB(0, 255, 0)) or Color3.fromRGB(48, 48, 48)
  504. elseif command == "esp" then
  505. toggle_Esp((section == "disable" or section == "off") and true)
  506. espEnabled = (section == "enable" or section == "on")
  507. end
  508.  
  509. --
  510.  
  511. elseif section == "esp" then
  512. if (command == "enable" or command == "on") or (command == "disable" or command == "off") then
  513. toggle_Esp((command == "disable" or command == "off") and true)
  514. espEnabled = (command == "enable" or command == "on")
  515. elseif command == "find" or command == "hide" or command:find("dist") then
  516. local plyr = findFirstChild(Players, contents[3]:lower())
  517. local color = (#contents > 4 and table.concat(contents, " ", 4)) or contents[4]
  518. if color == "" or color == " " then
  519. color = nil
  520. end
  521. if plyr then
  522. if command == "showdist" or command == "hidedist" then
  523. createDistTagOnCharacter(plyr.Character, command == "hidedist", color)
  524. return
  525. else
  526. if command == "find" then
  527. espCharacter(plyr.Character, color, true)
  528. espEnabled = true
  529. espText.TextColor3 = Color3.fromRGB(0, 255, 0)
  530. elseif command == "hide" then
  531. clear_active_espObjects(plyr.Character)
  532. end
  533. end
  534. end
  535. elseif command == "boxcolor" then
  536. local color = (#contents > 3 and table.concat(contents, " ", 3)) or contents[3]
  537. if color ~= " " and color ~= "" then
  538. changeSetting("esp_boxColor", color)
  539. toggle_Esp(true); toggle_Esp()
  540. print "Esp reset due to setting change."
  541. end
  542. elseif command == "ignoreteam" or command == "dontignoreself" or command == "showdistance" or command == "showcharacterespd" or command == "holdhotkey" or command == "useteamcolorifapplicable" or command == "boxtransparent" then
  543.  
  544. local value = contents[3]:lower()
  545. if command ~= "holdhotkey" then
  546. if command == "ignoreteam" then
  547. changeSetting("esp_ignoreTeam", value)
  548. elseif command == "dontignoreself" then
  549. changeSetting("esp_dont_ignoreSelf", value)
  550. elseif command == "showdistance" then
  551. changeSetting("esp_showDistance", value)
  552. elseif command == "boxtransparent" then
  553. changeSetting("esp_boxTransparent", value)
  554. elseif command == "showcharacterespd" then
  555. changeSetting("esp_showCharacterEspd", value)
  556. elseif command == "useteamcolorifapplicable" then
  557. changeSetting("esp_useTeamColorIfApplicable", value)
  558. end
  559. toggle_Esp(true); toggle_Esp()
  560. print "Esp reset due to setting change."
  561. else
  562. changeSetting("esp_holdHotkey", value)
  563. if settings.esp_holdHotkey then
  564. print "Esp must now be activated by holding the hotkey."
  565. else
  566. print "Esp must now be toggled by pressing the hotkey."
  567. end
  568. toggle_Esp(true)
  569. print "Esp turned off due to activation change."
  570. end
  571. elseif command == "hotkey" or command == "sethotkey" then
  572. setHotkey("esp", contents[3])
  573. toggle_Esp(true)
  574. print "Esp turned off due to activation change."
  575. end
  576.  
  577. --
  578.  
  579. elseif section == "aimbot" then
  580. if (command == "enable" or command == "on") or (command == "disable" or command == "off") then
  581. aimbotEnabled = (command == "enable" or command == "on")
  582. aimbotText.TextColor3 = (aimbotEnabled and Color3.fromRGB(0, 255, 0)) or Color3.fromRGB(48, 48, 48)
  583. print ("Aimbot successfully " .. ((aimbotEnabled and "enabled") or "disabled"))
  584. elseif command == "target" then
  585. local content3 = contents[3]:lower()
  586. local plyr = findFirstChild(Players, content3)
  587. if not plyr then
  588. if content3 == "team" then
  589. local content4 = (#contents > 4 and table.concat(contents, " ", 4)) or contents[4]
  590. local team = findFirstChild(Teams, content4)
  591. if not team and (content4 == "disable" or content4 == "__disable") then
  592. targetTeam = nil
  593. aimbotEnabled = false
  594. aimbotText.TextColor3 = Color3.fromRGB(48, 48, 48)
  595. print "Aimbot disabled; target team removed."
  596. else
  597. targetTeam = team
  598. if aimbotEnabled then
  599. aimbotEnabled = false
  600. end
  601. aimbotEnabled = true
  602. aimbotText.TextColor3 = Color3.fromRGB(0, 255, 0)
  603. print "Aimbot enabled; target team set."
  604. end
  605. elseif content3 == "disable" or content3 == "__disable" then
  606. targetPlayer = nil
  607. aimbotEnabled = false
  608. aimbotText.TextColor3 = Color3.fromRGB(48, 48, 48)
  609. print "Aimbot disabled; target player removed."
  610. end
  611. else
  612. targetPlayer = plyr
  613. if aimbotEnabled then
  614. aimbotEnabled = false
  615. end
  616. aimbotEnabled = true
  617. aimbotText.TextColor3 = Color3.fromRGB(0, 255, 0)
  618. print "Aimbot target enabled; player set."
  619. end
  620. else
  621. if command == "maxdistance" then
  622. local number = tonumber(contents[3])
  623. if number then
  624. changeSetting("aimbot_maxDistance", number)
  625. end
  626.  
  627. elseif (command == "ignorewalls" or command == "ignoreteam" or command == "aimfor" or command == "clicktolock" or command == "clicktolockdistanceoverride") then
  628. local value = contents[3]
  629. if command == "ignorewalls" then
  630. changeSetting("aimbot_ignoreWalls", value)
  631. elseif command == "ignoreteam" then
  632. changeSetting("aimbot_ignoreTeam", value)
  633. elseif command == "clicktolock" then
  634. changeSetting("aimbot_clickToLock", value)
  635. elseif command == "clicktolockdistanceoverride" then
  636. changeSetting("aimbot_clickToLockDistanceOverride", value)
  637. elseif command == "aimfor" then
  638. changeSetting("aimbot_aimFor", (#contents > 3 and table.concat(contents, " ", 3) or contents[3]), true)
  639. end
  640. aimbotEnabled = false; aimbotEnabled = "true"
  641. aimbotText.TextColor3 = Color3.fromRGB(0, 255, 0)
  642. print "Aimbot reset due to setting change."
  643.  
  644. elseif command == "hotkey" or command == "sethotkey" then
  645. setHotkey("aimbot", contents[3])
  646. aimbotEnabled = false
  647. aimbotText.TextColor3 = Color3.fromRGB(48, 48, 48)
  648. print "Aimbot turned off due to activation change."
  649. end
  650. end
  651.  
  652.  
  653. -- @some flexiblity
  654. elseif section == "target" then
  655. execute_Command({"aimbot", "target", contents[2], contents[3]})
  656. elseif (section == "find" or section == "hide" or section:find("dist")) then
  657. execute_Command({"esp", section, contents[2], (#contents > 3 and table.concat(contents, " ", 3) or contents[3])})
  658.  
  659.  
  660. -- @basic fix
  661. elseif section == "resetcache" then
  662. clear_active_espObjects()
  663. elseif section == "terminate" then
  664. ESP_RBXScriptSignal:Disconnect()
  665. ESP_RBXScriptSignal = nil
  666. AIMBOT_RbxScriptSignal:Disconnect()
  667. AIMBOT_RbxScriptSignal = nil
  668. KEYS_RbxScriptSignal:Disconnect()
  669. KEYS_RbxScriptSignal = nil
  670.  
  671. clear_esp_Cache()
  672. clear_active_espObjects()
  673. ESPOBJF:Destroy()
  674. commandBar:Destroy()
  675.  
  676. end
  677. end
  678. local function on_FocusLost (enterPressed)
  679. local content = Box.Text
  680. Box.Text = "press `-` to type"
  681. Box.Font = Enum.Font.SourceSansItalic
  682. Box.TextTransparency = 0.5
  683. if enterPressed then
  684. if content ~= " " or content ~= "" then
  685. execute_Command(splitString(content, " "))
  686. end
  687. end
  688. end
  689.  
  690. -- @endscript
  691. ESP_RBXScriptSignal = RunService.RenderStepped:Connect(function()
  692. if not script then
  693. return
  694. end
  695. if not settings.esp_holdHotkey then
  696. return
  697. end
  698. if not espEnabled and UserInputService:IsKeyDown(settings.esp_Hotkey) then
  699. toggle_Esp()
  700. espEnabled = true
  701. elseif espEnabled and not UserInputService:IsKeyDown(settings.esp_Hotkey) then
  702. toggle_Esp(true)
  703. end
  704. end)
  705. AIMBOT_RbxScriptSignal = RunService.RenderStepped:Connect(function()
  706. if aimbotEnabled then
  707. targetCamera()
  708. end
  709. end)
  710. KEYS_RbxScriptSignal = UserInputService.InputBegan:Connect(function(inputObj, gpe)
  711. local key = inputObj.KeyCode
  712. if (key == settings.esp_Hotkey) or (key == settings.aimbot_Hotkey) or (key == settings.commandbar_Hotkey) then
  713. if key == settings.commandbar_Hotkey and not gpe then
  714. Box:CaptureFocus()
  715. end
  716. if key == settings.aimbot_Hotkey then
  717. toggle_Aimbot()
  718. end
  719. if key == settings.esp_Hotkey then
  720. if espEnabled then
  721. toggle_Esp(true)
  722. else
  723. toggle_Esp()
  724. espEnabled = true
  725. end
  726. end
  727. end
  728. end)
  729. AIMBOTLOCK_RbxScriptSignal = Mouse.Button2Down:Connect(function()
  730.  
  731. local t = Mouse.Target
  732. if not t then
  733. return
  734. end
  735. if not Players:GetPlayerFromCharacter(t.Parent) then
  736. local character = getCharacterFromPart(t)
  737. if not character then
  738. return
  739. else
  740. t = character:FindFirstChild("HumanoidRootPart")
  741. if not t then
  742. return
  743. end
  744. end
  745. end
  746.  
  747. if not aimbotEnabled and settings.aimbot_clickToLock then
  748. local success = clickToTarget(t, settings.aimbot_clickToLockDistanceOverride)
  749. if success then
  750. currentLock = targetPlayer
  751. aimbotEnabled = true
  752. aimbotText.TextColor3 = Color3.fromRGB(0, 255, 0)
  753. print "Aimbot Enabled; target player set. [click to lock method]"
  754. end
  755. elseif aimbotEnabled then
  756. if currentLock and currentLock.Character and t:IsDescendantOf(currentLock.Character) then
  757. if targetPlayer ~= currentLock then
  758. targetPlayer = currentLock
  759. elseif targetPlayer == currentLock then
  760. targetPlayer, currentLock = nil, nil
  761. aimbotEnabled = false
  762. aimbotText.TextColor3 = Color3.fromRGB(48, 48, 48)
  763. print "Aimbot disabled; target player removed. [click to lock method]"
  764. end
  765. end
  766. end
  767.  
  768. end)
  769. Box.FocusLost:Connect(on_FocusLost)
  770. Box.Focused:Connect(function()
  771. Box.Font = Enum.Font.SourceSans
  772. Box.TextTransparency = 0
  773. end)
  774.  
  775. ESPOBJF.Parent = CoreGui
  776. commandBar.Parent = CoreGui
  777. end)
  778.  
  779. end
  780. coroutine.resume(coroutine.create(SCRIPT_PQSR70_FAKESCRIPT))
  781. function SCRIPT_TKHN86_FAKESCRIPT() -- TextButton_2.LocalScript
  782. local script = Instance.new('LocalScript')
  783. script.Parent = TextButton_2
  784. print("Hello world!")
  785.  
  786.  
  787. end
  788. coroutine.resume(coroutine.create(SCRIPT_TKHN86_FAKESCRIPT))
  789. function SCRIPT_YYIT73_FAKESCRIPT() -- TextButton_2.LocalScript
  790. local script = Instance.new('LocalScript')
  791. script.Parent = TextButton_2
  792. function click()
  793. if script.Parent.Parent.Visible == true then
  794. script.Parent.Parent.Visible = false
  795. else script.Parent.Parent.Visible = true
  796. end
  797. end
  798.  
  799. script.Parent.MouseButton1Click:connect(click)
  800.  
  801. end
  802. coroutine.resume(coroutine.create(SCRIPT_YYIT73_FAKESCRIPT))
  803. function SCRIPT_RIRP87_FAKESCRIPT() -- TextButton_3.LocalScript
  804. local script = Instance.new('LocalScript')
  805. script.Parent = TextButton_3
  806. script.Parent.MouseButton1Click:Connect(function()
  807. repeat wait() until game.Players.LocalPlayer
  808. local Mouse = game.Players.LocalPlayer:GetMouse()
  809. local Plr = game.Players.LocalPlayer
  810.  
  811. Mouse.KeyDown:connect(function(KeyDown)
  812. if KeyDown == "0" then
  813. Plr.Character.Humanoid.WalkSpeed = 190
  814. end
  815. end)
  816.  
  817. Mouse.KeyUp:connect(function(KeyUp)
  818. if KeyUp == "0" then
  819. Plr.Character.Humanoid.WalkSpeed = 190
  820. end
  821. end)
  822. end)
  823.  
  824. end
  825. coroutine.resume(coroutine.create(SCRIPT_RIRP87_FAKESCRIPT))
  826. function SCRIPT_JZVQ87_FAKESCRIPT() -- ScreenGui.LocalScript
  827. local script = Instance.new('LocalScript')
  828. script.Parent = ScreenGui
  829. frame = script.Parent.Frame
  830. frame.Draggable = true
  831. frame.Active = true
  832. frame.Selectable = true
  833.  
  834. end
  835. coroutine.resume(coroutine.create(SCRIPT_JZVQ87_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement