Legend_Dev

amnsgflkjsagd

Aug 20th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.25 KB | None | 0 0
  1. spawn(function()
  2. messagebox("Checking HWID...","Atorify's Hub Whitelister!",64)
  3. wait(1)
  4. messagebox("Printing HWID (You can check your console)...","Atorify's Hub Whitelister!",64)
  5. wait(0.1)
  6. local HWID = game:GetService("RbxAnalyticsService"):GetClientId();
  7. print(HWID)
  8. wait(1)
  9. messagebox("Sending HWID to discord for safety...","Atorify's Hub Whitelister!",64)
  10. wait(0.5)
  11. local hwid = game:GetService("RbxAnalyticsService"):GetClientId();
  12.  
  13. local HttpService = game:GetService("HttpService");
  14.  
  15. function SendMessage(Webhook, Message, Botname)
  16. if not string.find(Webhook, "https://discordapp.com/api/webhooks/") then
  17. return error("Send a valid URL");
  18. end
  19. local Name;
  20. local WakeUp = game:HttpGet("http://buritoman69.glitch.me");
  21. local API = "http://buritoman69.glitch.me/webhook";
  22. if (not Message or Message == "" or not Botname) then
  23. Name = "GameBot"
  24. return error("nil or empty message!")
  25. else
  26. Name = Botname;
  27. end
  28. local Body = {
  29. ['Key'] = tostring("applesaregood"),
  30. ['Message'] = tostring(Message),
  31. ['Name'] = Name,
  32. ['Webhook'] = Webhook
  33. }
  34. Body = HttpService:JSONEncode(Body);
  35. local Data = game:HttpPost(API, Body, false, "application/json")
  36. return Data or nil;
  37. end
  38.  
  39. SendMessage("https://discordapp.com/api/webhooks/666041608751284242/6PQKxAHX-JiIoNE6IUDoz7BplIpnzJfephrdlcsVTrsPceEKyepnk04RgDBvYrh54s6J", ">>> HWID: ||"..hwid.."||".." UserId: `"..game.Players.LocalPlayer.UserId.."`".." Username: `" ..game.Players.LocalPlayer.Name.."`", "New execution!")
  40.  
  41. wait(2)
  42. messagebox("Loading Atorify's Hub!","LOADING...",64)
  43. wait(1)
  44. local is_synapse_function = is_synapse_function or issentinelclosure
  45. local Library
  46. local uESP
  47. local Utils = {}
  48. local Library
  49. local TweenService = game:GetService("TweenService")
  50. local window
  51. local universal
  52. local loopAPI = {}
  53. local LoopThreads = {}
  54. local Games = {
  55. [155615604] = "Prison Life",
  56. [2677609345] = "Sound Space",
  57. [2607077439] = "Operation Scorpion",
  58. [621129760] = "KAT",
  59. [2262441883] = "Electric State DarkRP",
  60. -- [2377868063] = "Strucid", -- bans
  61. -- [3956818381] = "Ninja Legends", -- soon
  62. [3214306383] = "Adventure Up",
  63. [286090429] = "Arsenal",
  64. [3527629287] = "Big Paintball"
  65. }
  66. local GameName = Games[game.PlaceId] or (function() -- solution for multiple places in a game
  67. local Game = "None."
  68. return Game
  69. end)()
  70. local function Resize (part,new,_delay)
  71. _delay = _delay or 0.5
  72. local tweenInfo = TweenInfo.new(_delay, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
  73. local tween = TweenService:Create(part, tweenInfo, new)
  74. tween:Play()
  75. end
  76. do -- Loop API (since jailtapper)
  77. local function CreateThread(func)
  78. local thread = coroutine.create(func)
  79. coroutine.resume(thread)
  80. end
  81. function loopAPI:CreateLoop(name, WaitMethod, func, runLoop)
  82. LoopThreads[name] = {}
  83. LoopThreads[name]["running"] = false
  84. LoopThreads[name]["destroy"] = false
  85. CreateThread(function()
  86. while true do
  87. if typeof(WaitMethod) == "userdata" then WaitMethod:Wait() else WaitMethod() end
  88. if LoopThreads[name]["running"] then
  89. func()
  90. end
  91. if LoopThreads[name]["destroy"] then
  92. LoopThreads[name] = nil
  93. break
  94. end
  95. end
  96. end)
  97. if runLoop then
  98. self:RunLoop(name)
  99. end
  100. end
  101. function loopAPI:RunLoop(name, WaitMethod, func)
  102. if LoopThreads[name] then
  103. LoopThreads[name]["running"] = true
  104. end
  105. end
  106. function loopAPI:StopLoop(name)
  107. if LoopThreads[name] then
  108. LoopThreads[name]["running"] = false
  109. end
  110. end
  111. function loopAPI:DestroyLoop(name)
  112. if LoopThreads[name] then
  113. LoopThreads[name]["destroy"] = true
  114. end
  115. end
  116. end
  117. local function CreateDrag(gui)
  118. local UserInputService = game:GetService("UserInputService")
  119. local dragging
  120. local dragInput
  121. local dragStart
  122. local startPos
  123.  
  124. local function update(input)
  125. local delta = input.Position - dragStart
  126. Resize(gui, {Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)}, 0.16)
  127. end
  128.  
  129. gui.InputBegan:Connect(function(input)
  130. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  131. dragging = true
  132. dragStart = input.Position
  133. startPos = gui.Position
  134.  
  135. input.Changed:Connect(function()
  136. if input.UserInputState == Enum.UserInputState.End then
  137. dragging = false
  138. end
  139. end)
  140. end
  141. end)
  142.  
  143. gui.InputChanged:Connect(function(input)
  144. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  145. dragInput = input
  146. end
  147. end)
  148.  
  149. UserInputService.InputChanged:Connect(function(input)
  150. if input == dragInput and dragging then
  151. update(input)
  152. end
  153. end)
  154. end
  155. do -- UI Library
  156.  
  157. --// Services \\--
  158. local TweenService = game:GetService("TweenService")
  159. local RunService = game:GetService("RunService")
  160. local UserInputService = game:GetService("UserInputService")
  161. local CoreGui = RunService:IsStudio() and game:GetService("Players").LocalPlayer.PlayerGui or game:GetService("CoreGui")
  162.  
  163. --// Functions \\--
  164. local BlacklistedKeys = { --add or remove keys if you find the need to
  165. Enum.KeyCode.Unknown,Enum.KeyCode.W,Enum.KeyCode.A,Enum.KeyCode.S,Enum.KeyCode.D,Enum.KeyCode.Slash,Enum.KeyCode.Tab,Enum.KeyCode.Backspace,Enum.KeyCode.One,Enum.KeyCode.Two,Enum.KeyCode.Three,Enum.KeyCode.Four,Enum.KeyCode.Five,Enum.KeyCode.Six,Enum.KeyCode.Seven,Enum.KeyCode.Eight,Enum.KeyCode.Nine,Enum.KeyCode.Zero,Enum.KeyCode.Escape,Enum.KeyCode.F1,Enum.KeyCode.F2,Enum.KeyCode.F3,Enum.KeyCode.F4,Enum.KeyCode.F5,Enum.KeyCode.F6,Enum.KeyCode.F7,Enum.KeyCode.F8,Enum.KeyCode.F9,Enum.KeyCode.F10,Enum.KeyCode.F11,Enum.KeyCode.F12
  166. }
  167.  
  168. local WhitelistedMouseInputs = { --add or remove mouse inputs if you find the need to
  169. Enum.UserInputType.MouseButton1,Enum.UserInputType.MouseButton2,Enum.UserInputType.MouseButton3
  170. }
  171.  
  172. local function keyCheck(x,x1)
  173. for _,v in next, x1 do
  174. if v == x then
  175. return true
  176. end
  177. end
  178. end
  179.  
  180. local function Round(num, bracket)
  181. bracket = bracket or 1
  182. local a = math.floor(num/bracket + (math.sign(num) * 0.5)) * bracket
  183. if a < 0 then
  184. a = a + bracket
  185. end
  186. return a
  187. end
  188.  
  189. local function AddHighlight(obj)
  190. local InContact
  191. obj.InputBegan:connect(function(input)
  192. if input.UserInputType == Enum.UserInputType.MouseMovement then
  193. InContact = true
  194. TweenService:Create(obj, TweenInfo.new(0.2), {BackgroundTransparency = 0.9}):Play()
  195. end
  196. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  197. TweenService:Create(obj, TweenInfo.new(0.4), {BackgroundTransparency = 0.8}):Play()
  198. end
  199. end)
  200. obj.InputEnded:connect(function(input)
  201. if input.UserInputType == Enum.UserInputType.MouseMovement then
  202. InContact = false
  203. TweenService:Create(obj, TweenInfo.new(0.4), {BackgroundTransparency = 1}):Play()
  204. end
  205. if input.UserInputType == Enum.UserInputType.MouseButton1 and InContact then
  206. TweenService:Create(obj, TweenInfo.new(0.2), {BackgroundTransparency = 0.9}):Play()
  207. end
  208. end)
  209. end
  210.  
  211. local DDCheck
  212. local ExtFrames = {}
  213. local function CloseExt()
  214. if not DDCheck then return end
  215. DDCheck.Closed = true
  216. DDCheck.Container.Size = UDim2.new(DDCheck.Container.Size.X.Scale, DDCheck.Container.Size.X.Offset, 0, 0)
  217. if DDCheck.Closed then DDCheck.Main.Parent.Parent.ClipsDescendants = true end
  218. if DDCheck.Arrow then
  219. DDCheck.Arrow.Text = ">"
  220. end
  221. for _,v in next, ExtFrames do
  222. v.Parent = nil
  223. end
  224. DDCheck = nil
  225. end
  226. for i=1,4 do
  227. local Frame = Instance.new("Frame")
  228. Frame.ZIndex = 50
  229. Frame.BackgroundTransparency = 1
  230. Frame.Visible = true
  231. if i == 1 then
  232. Frame.Size = UDim2.new(0,1000,0,-1000)
  233. elseif i == 2 then
  234. Frame.Size = UDim2.new(0,1000,0,1000)
  235. Frame.Position = UDim2.new(1,0,0,0)
  236. elseif i == 3 then
  237. Frame.Size = UDim2.new(0,-1000,0,1000)
  238. Frame.Position = UDim2.new(1,0,1,0)
  239. elseif i == 4 then
  240. Frame.Size = UDim2.new(0,-1000,0,-1000)
  241. Frame.Position = UDim2.new(0,0,1,0)
  242. end
  243. table.insert(ExtFrames, Frame)
  244. Frame.InputBegan:connect(function(input)
  245. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  246. CloseExt()
  247. end
  248. end)
  249. end
  250.  
  251. local function CloseWindow(Obj)
  252. for _,v in next, ExtFrames do
  253. DDCheck = Obj
  254. v.Parent = Obj.Container
  255. end
  256. end
  257.  
  258. local ChromaColor
  259. spawn(function()
  260. local a = 0
  261. while wait() do
  262. ChromaColor = Color3.fromHSV(a,1,1)
  263. a = a >= 1 and 0 or a + 0.01
  264. end
  265. end)
  266.  
  267. --LIBRARY
  268. Library = {Tabs = {}, FocusedTab = nil, Open = true}
  269.  
  270. Library.settings = {
  271. UiToggle = Enum.KeyCode.RightShift,
  272. Theme = Color3.fromRGB(255,65,65)
  273. }
  274.  
  275. UserInputService.InputBegan:connect(function(input)
  276. if input.KeyCode == Library.settings.UiToggle and Library.Base then
  277. Library.Open = not Library.Open
  278. if Library.FocusedTab then
  279. if Library.Open then
  280. Library.Base.Enabled = true
  281. for _,Tab in next, Library.Tabs do
  282. Tab.ButtonHolder.Visible = Tab.Visible
  283. end
  284. else
  285. CloseExt()
  286. for _,Tab in next, Library.Tabs do
  287. Tab.ButtonHolder.Visible = false
  288. end
  289. Library.Base.Enabled = false
  290. end
  291. end
  292. end
  293. end)
  294.  
  295. UserInputService.InputChanged:connect(function(input)
  296. if input.UserInputType == Enum.UserInputType.MouseMovement and Library.Pointer then
  297. local Mouse = UserInputService:GetMouseLocation() + Vector2.new(0,-36)
  298. Library.Pointer.Position = UDim2.new(0,Mouse.X,0,Mouse.Y)
  299. end
  300. end)
  301.  
  302. function Library:Create(class, properties)
  303. local inst = Instance.new(class)
  304. for property, value in pairs(properties) do
  305. inst[property] = value
  306. end
  307. return inst
  308. end
  309.  
  310. function Library:CreateTab(TabName)
  311. local Tab = {Sections = {}, Visible = true}
  312.  
  313. self.Base = self.Base or self:Create("ScreenGui", {
  314. ZIndexBehavior = Enum.ZIndexBehavior.Global,
  315. Parent = CoreGui
  316. })
  317.  
  318. self.Line = self.Line or self:Create("Frame", {
  319. AnchorPoint = Vector2.new(0.5,0),
  320. Position = UDim2.new(0.5,0,1,0),
  321. Size = UDim2.new(0,0,0,-2),
  322. BackgroundColor3 = Library.settings.Theme,
  323. BorderSizePixel = 0
  324. })
  325.  
  326. self.Pointer = self.Pointer or self:Create("Frame", {
  327. ZIndex = 100,
  328. AnchorPoint = Vector2.new(0,0),
  329. Size = UDim2.new(0,4,0,4),
  330. BackgroundColor3 = Color3.fromRGB(255,255,255),
  331. Parent = self.Base
  332. })
  333.  
  334. self.PointerDot = self.PointerDot or self:Create("Frame", {
  335. ZIndex = 100,
  336. Size = UDim2.new(0,2,0,2),
  337. BackgroundColor3 = Library.settings.Theme,
  338. BorderSizePixel = 0,
  339. Parent = self.Pointer
  340. })
  341.  
  342. Tab.XPos = 5 + (#self.Tabs * 205)
  343.  
  344. Tab.ButtonHolder = self:Create("Frame", {
  345. Position = UDim2.new(0,Tab.XPos,0,5),
  346. Size = UDim2.new(0,200,0,28),
  347. BackgroundColor3 = Color3.fromRGB(40,40,40),
  348. BorderSizePixel = 0,
  349. Parent = self.Base
  350. })
  351.  
  352. Tab.Button = self:Create("TextButton", {
  353. Size = UDim2.new(1,0,1,0),
  354. BackgroundTransparency = 1,
  355. BackgroundColor3 = Color3.fromRGB(255,255,255),
  356. BorderSizePixel = 0,
  357. Text = TabName,
  358. TextSize = 18,
  359. TextColor3 = Color3.fromRGB(255,255,255),
  360. Font = Enum.Font.SourceSans,
  361. AutoButtonColor = false,
  362. Modal = true,
  363. Parent = Tab.ButtonHolder
  364. })
  365.  
  366. Tab.Main = self:Create("Frame", {
  367. ZIndex = -10,
  368. Position = UDim2.new(0,0,0,-36),
  369. Size = UDim2.new(1,0,1,36),
  370. BackgroundTransparency = 1,
  371. BackgroundColor3 = Color3.new(),
  372. Visible = false,
  373. Parent = self.Base
  374. })
  375.  
  376. AddHighlight(Tab.Button)
  377.  
  378. self.FocusOnTab = self.FocusOnTab or function(t)
  379. if self.FocusedTab then
  380. self.FocusedTab.Main.Visible = false
  381. end
  382. self.FocusedTab = t
  383. self.FocusedTab.Main.Visible = true
  384. end
  385.  
  386. Tab.Button.MouseButton1Click:connect(function()
  387. if self.FocusedTab ~= Tab then
  388. if DDCheck then
  389. DDCheck.Main.Parent.Parent.ClipsDescendants = true
  390. end
  391. self.FocusOnTab(Tab)
  392. end
  393. end)
  394.  
  395. if not self.FocusedTab then
  396. self.FocusOnTab(Tab)
  397. end
  398.  
  399. function Tab:AddSection(SectionName)
  400. local Section = {Options = {}}
  401. Section.YSize = 24
  402.  
  403. Section.Main = Library:Create("Frame", {
  404. Position = UDim2.new(0,5 + (#self.Sections * 205),0,74),
  405. Size = UDim2.new(0,200,0,24),
  406. BackgroundColor3 = Color3.fromRGB(20,20,20),
  407. BorderSizePixel = 0,
  408. ClipsDescendants = true,
  409. Parent = self.Main
  410. })
  411.  
  412. Section.Label = Library:Create("TextLabel", {
  413. Size = UDim2.new(1,0,0,24),
  414. BackgroundColor3 = Color3.fromRGB(30,30,30),
  415. BorderSizePixel = 0,
  416. Text = SectionName,
  417. TextSize = 16,
  418. TextColor3 = Color3.fromRGB(255,255,255),
  419. Font = Enum.Font.SourceSans,
  420. Parent = Section.Main
  421. })
  422.  
  423. Section.Content = Library:Create("Frame", {
  424. Position = UDim2.new(0,0,0,24),
  425. Size = UDim2.new(1,0,1,-24),
  426. BackgroundTransparency = 1,
  427. BorderSizePixel = 0,
  428. Parent = Section.Main
  429. })
  430.  
  431. Section.Layout = Library:Create("UIListLayout", {
  432. SortOrder = Enum.SortOrder.LayoutOrder,
  433. Parent = Section.Content
  434. })
  435.  
  436. function Section:AddLabel(LabelText)
  437. local Label = {}
  438.  
  439. Label.Main = Library:Create("TextLabel", {
  440. LayoutOrder = #self.Options + 1,
  441. Size = UDim2.new(1,0,0,22),
  442. BackgroundTransparency = 1,
  443. Text = " "..LabelText,
  444. TextSize = 16,
  445. TextColor3 = Color3.fromRGB(255,255,255),
  446. Font = Enum.Font.SourceSans,
  447. TextXAlignment = Enum.TextXAlignment.Left,
  448. Parent = self.Content
  449. })
  450.  
  451. Section.YSize = Section.YSize + 22
  452. Section.Main.Size = UDim2.new(0,200,0,Section.YSize)
  453. table.insert(self.Options, Label)
  454. return Label
  455. end
  456.  
  457. function Section:AddButton(ButtonText, Callback)
  458. local Button = {}
  459. Callback = Callback or function() end
  460.  
  461. Button.Main = Library:Create("TextButton", {
  462. LayoutOrder = #self.Options + 1,
  463. Size = UDim2.new(1,0,0,22),
  464. BackgroundTransparency = 1,
  465. BackgroundColor3 = Color3.fromRGB(220,220,220),
  466. BorderSizePixel = 0,
  467. Text = " "..ButtonText,
  468. TextSize = 16,
  469. TextColor3 = Color3.fromRGB(255,255,255),
  470. Font = Enum.Font.SourceSans,
  471. TextXAlignment = Enum.TextXAlignment.Left,
  472. AutoButtonColor = false,
  473. Parent = self.Content
  474. })
  475.  
  476. AddHighlight(Button.Main)
  477.  
  478. Button.Main.MouseButton1Click:connect(function()
  479. Callback()
  480. end)
  481.  
  482. Section.YSize = Section.YSize + 22
  483. Section.Main.Size = UDim2.new(0,200,0,Section.YSize)
  484. table.insert(self.Options, Button)
  485. return Button
  486. end
  487.  
  488. function Section:AddToggle(ToggleText, Callback)
  489. local Toggle = {State = false, Callback = Callback}
  490. Toggle.Callback = Callback or function() end
  491.  
  492. Toggle.Main = Library:Create("TextButton", {
  493. LayoutOrder = #self.Options + 1,
  494. Size = UDim2.new(1,0,0,22),
  495. BackgroundTransparency = 1,
  496. BackgroundColor3 = Color3.fromRGB(220,220,220),
  497. BorderSizePixel = 0,
  498. Text = " "..ToggleText,
  499. TextSize = 16,
  500. TextColor3 = Color3.fromRGB(255,255,255),
  501. Font = Enum.Font.SourceSans,
  502. TextXAlignment = Enum.TextXAlignment.Left,
  503. AutoButtonColor = false,
  504. Parent = self.Content
  505. })
  506.  
  507. Toggle.Visualize = Library:Create("Frame", {
  508. Position = UDim2.new(1,-2,0,2),
  509. Size = UDim2.new(0,-18,0,18),
  510. BackgroundColor3 = Color3.fromRGB(35,35,35),
  511. BorderSizePixel = 0,
  512. Parent = Toggle.Main
  513. })
  514.  
  515. AddHighlight(Toggle.Main)
  516.  
  517. local on = TweenService:Create(Toggle.Visualize, TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Library.settings.Theme})
  518. local off = TweenService:Create(Toggle.Visualize, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(35,35,35)})
  519.  
  520. function Toggle:SetToggle(State)
  521. Toggle.State = State
  522. if Toggle.State then
  523. on:Play()
  524. else
  525. off:Play()
  526. end
  527. Toggle.Callback(Toggle.State)
  528. end
  529.  
  530. Toggle.Main.MouseButton1Click:connect(function()
  531. Toggle:SetToggle(not Toggle.State)
  532. end)
  533.  
  534. Section.YSize = Section.YSize + 22
  535. Section.Main.Size = UDim2.new(0,200,0,Section.YSize)
  536. table.insert(self.Options, Toggle)
  537. return Toggle
  538. end
  539.  
  540. function Section:AddBox(BoxText, Callback)
  541. local Box = {Callback = Callback}
  542. Box.Callback = Callback or function() end
  543.  
  544. Box.Main = Library:Create("TextButton", {
  545. LayoutOrder = #self.Options + 1,
  546. Size = UDim2.new(1,0,0,42),
  547. BackgroundTransparency = 1,
  548. BackgroundColor3 = Color3.fromRGB(220,220,220),
  549. BorderSizePixel = 0,
  550. Text = " "..BoxText,
  551. TextSize = 16,
  552. TextColor3 = Color3.fromRGB(255,255,255),
  553. Font = Enum.Font.SourceSans,
  554. TextXAlignment = Enum.TextXAlignment.Left,
  555. TextYAlignment = Enum.TextYAlignment.Top,
  556. AutoButtonColor = false,
  557. Parent = self.Content
  558. })
  559.  
  560. Box.Box = Library:Create("TextBox", {
  561. Position = UDim2.new(0,2,0,20),
  562. Size = UDim2.new(1,-4,0,20),
  563. BackgroundColor3 = Color3.fromRGB(35,35,35),
  564. BorderSizePixel = 0,
  565. Text = "",
  566. TextColor3 = Color3.fromRGB(240,240,240),
  567. ClipsDescendants = true,
  568. Parent = Box.Main
  569. })
  570.  
  571. AddHighlight(Box.Main)
  572.  
  573. Box.Main.MouseButton1Click:connect(function()
  574. Box.Box:CaptureFocus()
  575. end)
  576.  
  577. Box.Box.FocusLost:connect(function(EnterPressed)
  578. TweenService:Create(Box.Main, TweenInfo.new(0.4), {BackgroundTransparency = 1}):Play()
  579. Box.Callback(Box.Box.Text, EnterPressed)
  580. end)
  581.  
  582. Section.YSize = Section.YSize + 42
  583. Section.Main.Size = UDim2.new(0,200,0,Section.YSize)
  584. table.insert(self.Options, Box)
  585. return Box
  586. end
  587.  
  588. function Section:AddDropdown(DropdownText, Options, Callback, Groupbox)
  589. if Options then
  590. if typeof(Options) == "function" then
  591. Callback = Options
  592. Options = {}
  593. end
  594. if typeof(Options) == "boolean" then
  595. Groupbox = Options
  596. Callback = typeof(Options) == "function" and Options or function() end
  597. Options = {}
  598. end
  599. end
  600. if Callback and typeof(Callback) == "boolean" then
  601. Groupbox = Callback
  602. Callback = function() end
  603. end
  604. local Dropdown = {Order = 0, Closed = true, Value = Groupbox and nil or Options[1], Callback = Callback, Selected = {}}
  605. Dropdown.Callback = Callback or function() end
  606.  
  607. Dropdown.Main = Library:Create("TextButton", {
  608. LayoutOrder = #self.Options + 1,
  609. Size = UDim2.new(1,0,0,42),
  610. BackgroundTransparency = 1,
  611. BackgroundColor3 = Color3.fromRGB(220,220,220),
  612. BorderSizePixel = 0,
  613. Text = " "..DropdownText,
  614. TextSize = 16,
  615. TextColor3 = Color3.fromRGB(255,255,255),
  616. Font = Enum.Font.SourceSans,
  617. TextXAlignment = Enum.TextXAlignment.Left,
  618. TextYAlignment = Enum.TextYAlignment.Top,
  619. AutoButtonColor = false,
  620. Parent = self.Content
  621. })
  622.  
  623. Dropdown.Label = Library:Create("TextLabel", {
  624. Position = UDim2.new(0,2,0,20),
  625. Size = UDim2.new(1,-4,0,20),
  626. BackgroundColor3 = Color3.fromRGB(35,35,35),
  627. BorderSizePixel = 0,
  628. Text = Groupbox and "" or Dropdown.Value,
  629. TextSize = 16,
  630. TextColor3 = Color3.fromRGB(255,255,255),
  631. TextTruncate = Enum.TextTruncate.AtEnd,
  632. Font = Enum.Font.SourceSans,
  633. Parent = Dropdown.Main
  634. })
  635.  
  636. Dropdown.Arrow = Library:Create("TextLabel", {
  637. Position = UDim2.new(1,0,0,2),
  638. Size = UDim2.new(0,-16,0,16),
  639. Rotation = 90,
  640. BackgroundTransparency = 1,
  641. Text = ">",
  642. TextColor3 = Color3.fromRGB(80,80,80),
  643. Font = Enum.Font.Arcade,
  644. TextSize = 18,
  645. Parent = Dropdown.Label
  646. })
  647.  
  648. Dropdown.Container = Library:Create("Frame", {
  649. ZIndex = 2,
  650. Position = UDim2.new(0,0,1,2),
  651. Size = UDim2.new(1,0,0,0),
  652. BackgroundTransparency = 1,
  653. Parent = Dropdown.Label
  654. })
  655.  
  656. Dropdown.SubContainer = Library:Create("Frame", {
  657. Size = UDim2.new(1,0,1,0),
  658. BackgroundTransparency = 1,
  659. ClipsDescendants = true,
  660. Parent = Dropdown.Container
  661. })
  662.  
  663. Dropdown.Contentholder = Library:Create("ScrollingFrame", {
  664. ZIndex = 2,
  665. Size = UDim2.new(1,0,1,0),
  666. BackgroundColor3 = Color3.fromRGB(40,40,40),
  667. BorderColor3 = Color3.fromRGB(30,30,30),
  668. ScrollBarThickness = 6,
  669. ScrollBarImageColor3 = Color3.fromRGB(80,80,80),
  670. BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png",
  671. TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png",
  672. Parent = Dropdown.SubContainer
  673. })
  674.  
  675. Dropdown.Layout = Library:Create("UIListLayout", {
  676. Padding = UDim.new(0,0),
  677. SortOrder = Enum.SortOrder.LayoutOrder,
  678. Parent = Dropdown.Contentholder
  679. })
  680.  
  681. AddHighlight(Dropdown.Main)
  682.  
  683. Dropdown.Main.InputBegan:connect(function(input)
  684. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  685. Dropdown.Closed = not Dropdown.Closed
  686. if Dropdown.Closed then
  687. Dropdown.Arrow.Text = ">"
  688. Dropdown.Container:TweenSize(UDim2.new(1,0,0,0), "Out", "Quad", 0.2, true, function() if Dropdown.Closed then self.Main.ClipsDescendants = true end end)
  689. else
  690. CloseWindow(Dropdown)
  691. self.Main.ClipsDescendants = false
  692. Dropdown.Arrow.Text = "<"
  693. if Dropdown.Order > 5 then
  694. Dropdown.Container:TweenSize(UDim2.new(1,0,0,5*20), "Out", "Quad", 0.3, true)
  695. else
  696. Dropdown.Container:TweenSize(UDim2.new(1,0,0,Dropdown.Order*20), "Out", "Quad", 0.3, true)
  697. end
  698. end
  699. end
  700. end)
  701.  
  702. local SelectedCount = 0
  703. local function AddOptions(Options)
  704. for _,value in pairs(Options) do
  705. Dropdown.Order = Dropdown.Order + 1
  706. local State
  707. local Pos = Dropdown.Order
  708.  
  709. local Option = Library:Create("TextButton", {
  710. ZIndex = 3,
  711. LayoutOrder = Dropdown.Order,
  712. Size = UDim2.new(1,0,0,20),
  713. BackgroundTransparency = 1,
  714. BackgroundColor3 = Color3.fromRGB(255,255,255),
  715. Text = value,
  716. TextSize = 16,
  717. TextColor3 = Color3.fromRGB(240,240,240),
  718. Font = Enum.Font.SourceSans,
  719. AutoButtonColor = false,
  720. Parent = Dropdown.Contentholder
  721. })
  722.  
  723. AddHighlight(Option)
  724.  
  725. Option.MouseButton1Click:connect(function()
  726. Dropdown.Value = value
  727. if Groupbox then
  728. State = not State
  729. SelectedCount = SelectedCount + (State and 1 or -1)
  730. if State then
  731. Option.BackgroundColor3 = Library.settings.Theme
  732. Dropdown.Selected[value] = value
  733. else
  734. Option.BackgroundColor3 = Color3.fromRGB(255,255,255)
  735. Dropdown.Selected[value] = nil
  736. end
  737. local Text = ""
  738. for _,v in next, Dropdown.Selected do
  739. Text = SelectedCount > 1 and Text .. v .. ", " or Text .. v
  740. end
  741. Dropdown.Label.Text = SelectedCount > 1 and string.sub(Text, 1, string.len(Text) - 2) or Text
  742. if not State then return end
  743. else
  744. self.Main.ClipsDescendants = true
  745. Dropdown.Label.Text = Dropdown.Value
  746. Dropdown.Closed = true
  747. Dropdown.Arrow.Text = ">"
  748. Dropdown.Container:TweenSize(UDim2.new(1,0,0,0), "Out", "Quad", 0.2, true)
  749. end
  750. Dropdown.Callback(Dropdown.Value)
  751. end)
  752. Dropdown.Contentholder.CanvasSize = UDim2.new(0,0,0,Dropdown.Order*20)
  753. end
  754. end
  755.  
  756. AddOptions(Options)
  757.  
  758. if Groupbox then
  759. function Dropdown:IsSelected(Value)
  760. for _, v in next, self.Selected do
  761. if v == Value then
  762. return true
  763. end
  764. end
  765. return false
  766. end
  767. end
  768.  
  769. function Dropdown:Refresh(options, keep)
  770. if not keep then
  771. Dropdown.Selected = {}
  772. Dropdown.Label.Text = Groupbox and "" or options[1]
  773. for _,v in pairs(Dropdown.Contentholder:GetChildren()) do
  774. if v:IsA"TextButton" then
  775. v:Destroy()
  776. Dropdown.Order = Dropdown.Order - 1
  777. Dropdown.Contentholder.CanvasSize = UDim2.new(0,0,0,Dropdown.Layout.AbsoluteContentSize.Y)
  778. end
  779. end
  780. end
  781. AddOptions(options)
  782. end
  783.  
  784. if not Groupbox then
  785. function Dropdown:SetValue(value)
  786. Dropdown.Value = value
  787. Dropdown.Label.Text = Dropdown.Value
  788. Dropdown.Callback(Dropdown.Value)
  789. end
  790. end
  791.  
  792. Section.YSize = Section.YSize + 42
  793. Section.Main.Size = UDim2.new(0,200,0,Section.YSize)
  794. table.insert(self.Options, Dropdown)
  795. return Dropdown
  796. end
  797.  
  798. function Section:AddKeybind(BindText, BindKey, Callback, Hold)
  799. if BindKey then
  800. if typeof(BindKey) == "function" then
  801. Hold = Callback or false
  802. Callback = BindKey
  803. BindKey = Enum.KeyCode.F
  804. end
  805. if typeof(BindKey) == "string" then
  806. if not keyCheck(Enum.KeyCode[BindKey:upper()], BlacklistedKeys) then
  807. BindKey = Enum.KeyCode[BindKey:upper()]
  808. end
  809. if keyCheck(BindKey, WhitelistedMouseInputs) then
  810. BindKey = Enum.UserInputType[BindKey:upper()]
  811. end
  812. end
  813. if typeof(BindKey) == "boolean" then
  814. Hold = BindKey
  815. BindKey = Enum.KeyCode.F
  816. end
  817. end
  818. local Bind = {Binding = false, Holding = false, Key = BindKey, Hold = Hold, Callback = Callback}
  819. Bind.Callback = Callback or function() end
  820.  
  821. local Bounds = game:GetService('TextService'):GetTextSize(Bind.Key.Name, 16, Enum.Font.SourceSans, Vector2.new(math.huge, math.huge))
  822. Bind.Main = Library:Create("TextButton", {
  823. LayoutOrder = #self.Options + 1,
  824. Size = UDim2.new(1,0,0,22),
  825. BackgroundTransparency = 1,
  826. BackgroundColor3 = Color3.fromRGB(220,220,220),
  827. Text = " "..BindText,
  828. TextSize = 16,
  829. TextColor3 = Color3.fromRGB(255,255,255),
  830. Font = Enum.Font.SourceSans,
  831. TextXAlignment = Enum.TextXAlignment.Left,
  832. AutoButtonColor = false,
  833. Parent = self.Content
  834. })
  835.  
  836. Bind.Label = Library:Create("TextLabel", {
  837. Position = UDim2.new(1,-2,0,2),
  838. Size = UDim2.new(0,-Bounds.X-8,0,18),
  839. BackgroundColor3 = Color3.fromRGB(35,35,35),
  840. BorderSizePixel = 0,
  841. Text = Bind.Key.Name,
  842. TextSize = 16,
  843. TextColor3 = Color3.fromRGB(255,255,255),
  844. Font = Enum.Font.SourceSans,
  845. Parent = Bind.Main
  846. })
  847.  
  848. AddHighlight(Bind.Main)
  849.  
  850. Bind.Main.InputBegan:connect(function(input)
  851. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  852. Bind.Label.Text = "..."
  853. Bind.Label.Size = UDim2.new(0,-Bind.Label.TextBounds.X-8,1,-4)
  854. end
  855. end)
  856.  
  857. Bind.Main.InputEnded:connect(function(input)
  858. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  859. Bind.Binding = true
  860. end
  861. end)
  862.  
  863. local function SetKey(key)
  864. Bind.Key = key
  865. Bind.Label.Text = Bind.Key.Name
  866. if string.match(tostring(key), "Mouse") then
  867. Bind.Label.Text = string.sub(tostring(key), 20, 24)..string.sub(tostring(key), 31, 32)
  868. end
  869. Bind.Label.Size = UDim2.new(0,-Bind.Label.TextBounds.X-8,1,-4)
  870. Bind.Callback(Bind.Key)
  871. end
  872.  
  873. local Loop
  874. local function DisconnectLoop()
  875. if Loop then
  876. Loop:Disconnect()
  877. Bind.Callback(true)
  878. end
  879. end
  880.  
  881. UserInputService.InputBegan:connect(function(input)
  882. if Bind.Binding then
  883. if input.KeyCode == Enum.KeyCode.Backspace then
  884. SetKey(Bind.Key)
  885. Bind.Binding = false
  886. else
  887. if not keyCheck(input.KeyCode, BlacklistedKeys) then
  888. SetKey(input.KeyCode)
  889. Bind.Binding = false
  890. end
  891. if keyCheck(input.UserInputType, WhitelistedMouseInputs) then
  892. SetKey(input.UserInputType)
  893. Bind.Binding = false
  894. end
  895. end
  896. DisconnectLoop()
  897. else
  898. if not Library.Open then
  899. if input.KeyCode.Name == Bind.Key.Name or input.UserInputType.Name == Bind.Key.Name then
  900. Bind.Holding = true
  901. if Bind.Hold then
  902. Loop = RunService.RenderStepped:connect(function()
  903. Bind.Callback()
  904. if Library.Open or Bind.Holding == false or not Bind.Hold then
  905. DisconnectLoop()
  906. end
  907. end)
  908. else
  909. Bind.Callback()
  910. end
  911. end
  912. end
  913. end
  914. end)
  915.  
  916. UserInputService.InputEnded:connect(function(input)
  917. if input.KeyCode.Name == Bind.Key.Name or input.UserInputType.Name == Bind.Key.Name then
  918. Bind.Holding = false
  919. DisconnectLoop()
  920. end
  921. end)
  922.  
  923. function Bind:SetKeybind(Key)
  924. if typeof(Key) == "string" then
  925. if not keyCheck(Enum.KeyCode[Key:upper()], BlacklistedKeys) then
  926. Key = Enum.KeyCode[Key:upper()]
  927. end
  928. if keyCheck(Enum.KeyCode[Key:upper()], WhitelistedMouseInputs) then
  929. Key = Enum.UserInputType[Key:upper()]
  930. end
  931. end
  932. DisconnectLoop()
  933. SetKey(Key)
  934. end
  935.  
  936. Section.YSize = Section.YSize + 22
  937. Section.Main.Size = UDim2.new(0,200,0,Section.YSize)
  938. table.insert(self.Options, Bind)
  939. return Bind
  940. end
  941.  
  942. function Section:AddSlider(SliderText, MinVal, MaxVal, SetVal, Callback, Float)
  943. if SetVal and typeof(SetVal) == "function" then
  944. Float = Callback
  945. Callback = SetVal
  946. SetVal = 0
  947. end
  948. if Callback and typeof(Callback) == "number" then
  949. Float = Callback
  950. Callback = function() end
  951. end
  952. SetVal = SetVal or 0
  953. if SetVal > MaxVal then
  954. SetVal = MaxVal
  955. end
  956. if SetVal < MinVal then
  957. SetVal = MinVal
  958. end
  959. local Slider = {Value = SetVal, Callback = Callback}
  960. Slider.Callback = Callback or function() end
  961. Float = Float or 1
  962.  
  963. Slider.Main = Library:Create("TextButton", {
  964. LayoutOrder = #self.Options + 1,
  965. Size = UDim2.new(1,0,0,42),
  966. BackgroundTransparency = 1,
  967. BackgroundColor3 = Color3.fromRGB(220,220,220),
  968. Text = " "..SliderText,
  969. TextSize = 16,
  970. TextColor3 = Color3.fromRGB(255,255,255),
  971. Font = Enum.Font.SourceSans,
  972. TextXAlignment = Enum.TextXAlignment.Left,
  973. TextYAlignment = Enum.TextYAlignment.Top,
  974. AutoButtonColor = false,
  975. Parent = self.Content
  976. })
  977.  
  978. Slider.Holder = Library:Create("Frame", {
  979. Position = UDim2.new(0,0,0,18),
  980. Size = UDim2.new(1,0,0,17),
  981. BackgroundTransparency = 1,
  982. Parent = Slider.Main
  983. })
  984.  
  985. Slider.Visualize = Library:Create("TextBox", {
  986. Position = UDim2.new(0,0,0.6,0),
  987. Size = UDim2.new(1,0,0.4,0),
  988. BackgroundTransparency = 1,
  989. Text = Slider.Value,
  990. TextSize = 16,
  991. TextColor3 = Color3.fromRGB(255,255,255),
  992. Font = Enum.Font.SourceSans,
  993. TextWrapped = true,
  994. Parent = Slider.Holder
  995. })
  996.  
  997. Slider.Bar = Library:Create("Frame", {
  998. AnchorPoint = Vector2.new(0.5,0.5),
  999. Position = UDim2.new(0.5,0,0.2,0),
  1000. Size = UDim2.new(1,-6,0,2),
  1001. BackgroundColor3 = Color3.fromRGB(35,35,35),
  1002. BorderSizePixel = 0,
  1003. Parent = Slider.Holder
  1004. })
  1005.  
  1006. Slider.Fill = Library:Create("Frame", {
  1007. BackgroundColor3 = Library.settings.Theme,
  1008. BorderSizePixel = 0,
  1009. Parent = Slider.Bar
  1010. })
  1011. if MinVal >= 0 then
  1012. Slider.Fill.Size = UDim2.new((SetVal - MinVal) / (MaxVal - MinVal),0,1,0)
  1013. else
  1014. Slider.Fill.Position = UDim2.new((0 - MinVal) / (MaxVal - MinVal),0,0,0)
  1015. Slider.Fill.Size = UDim2.new(SetVal / (MaxVal - MinVal),0,1,0)
  1016. end
  1017.  
  1018. Slider.Box = Library:Create("Frame", {
  1019. AnchorPoint = Vector2.new(0.5,0.5),
  1020. Position = UDim2.new((SetVal - MinVal) / (MaxVal - MinVal),0,0.5,0),
  1021. Size = UDim2.new(0,4,0,12),
  1022. BackgroundColor3 = Color3.fromRGB(5,5,5),
  1023. BorderSizePixel = 0,
  1024. Parent = Slider.Bar
  1025. })
  1026.  
  1027. AddHighlight(Slider.Main)
  1028.  
  1029. function Slider:SetValue(Value)
  1030. Value = Round(Value, Float)
  1031. if Value >= MaxVal then
  1032. Value = MaxVal
  1033. end
  1034. if Value <= MinVal then
  1035. Value = MinVal
  1036. end
  1037. Slider.Box.Position = UDim2.new((Value - MinVal) / (MaxVal - MinVal),0,0.5,0)
  1038. if MinVal >= 0 then
  1039. Slider.Fill.Size = UDim2.new((Value - MinVal) / (MaxVal - MinVal),0,1,0)
  1040. else
  1041. Slider.Fill.Size = UDim2.new(Value / (MaxVal - MinVal),0,1,0)
  1042. end
  1043. Slider.Value = Value
  1044. Slider.Visualize.Text = Value
  1045. Slider.Callback(Value)
  1046. end
  1047.  
  1048. local Sliding
  1049. local Modifying
  1050. Slider.Main.InputBegan:connect(function(input)
  1051. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1052. if UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) then
  1053. Modifying = true
  1054. Slider.Visualize:CaptureFocus()
  1055. else
  1056. Sliding = true
  1057. Slider:SetValue(MinVal + ((input.Position.X - Slider.Bar.AbsolutePosition.X) / Slider.Bar.AbsoluteSize.X) * (MaxVal - MinVal))
  1058. input.Changed:connect(function()
  1059. if input.UserInputState == Enum.UserInputState.End then
  1060. Sliding = false
  1061. end
  1062. end)
  1063. end
  1064. end
  1065. end)
  1066.  
  1067. Slider.Visualize.Focused:connect(function()
  1068. if not Modifying then
  1069. Slider.Visualize:ReleaseFocus()
  1070. end
  1071. end)
  1072.  
  1073. Slider.Visualize.FocusLost:connect(function()
  1074. if Modifying then
  1075. if tonumber(Slider.Visualize.Text) then
  1076. Slider:SetValue(tonumber(Slider.Visualize.Text))
  1077. else
  1078. Slider.Visualize.Text = Slider.Value
  1079. end
  1080. end
  1081. Modifying = false
  1082. end)
  1083.  
  1084. UserInputService.InputChanged:connect(function(input)
  1085. if Modifying then
  1086. if input.KeyCode == Enum.KeyCode.Escape or input.KeyCode == Enum.KeyCode.Space then
  1087. Slider.Visualize:ReleaseFocus()
  1088. end
  1089. end
  1090. if input.UserInputType == Enum.UserInputType.MouseMovement and Sliding then
  1091. Slider:SetValue(MinVal + ((input.Position.X - Slider.Bar.AbsolutePosition.X) / Slider.Bar.AbsoluteSize.X) * (MaxVal - MinVal))
  1092. end
  1093. end)
  1094.  
  1095. Section.YSize = Section.YSize + 42
  1096. Section.Main.Size = UDim2.new(0,200,0,Section.YSize)
  1097. table.insert(self.Options, Slider)
  1098. return Slider
  1099. end
  1100.  
  1101. function Section:AddCP(ColorText, NewColor, Alpha, Callback)
  1102. if Alpha then
  1103. if typeof(Alpha) == "function" then
  1104. Callback = Alpha
  1105. Alpha = 1
  1106. end
  1107. end
  1108. if NewColor then
  1109. if typeof(NewColor) == "function" then
  1110. Callback = NewColor
  1111. NewColor = Color3.fromRGB(255,255,255)
  1112. Alpha = 1
  1113. end
  1114. if typeof(NewColor) == "number" then
  1115. Callback = Alpha
  1116. Alpha = NewColor
  1117. NewColor = Color3.fromRGB(255,255,255)
  1118. end
  1119. end
  1120. Alpha = Alpha or 1
  1121. local Color = {Color = NewColor, Alpha = Alpha, Closed = true, Callback = Callback}
  1122. Color.Callback = Callback or function() end
  1123. local Rain
  1124. local Hue, Sat, Val = Color3.toHSV(Color3.fromRGB(NewColor.r*255,NewColor.g*255,NewColor.b*255))
  1125. if Hue == 0 then
  1126. Hue = 1
  1127. end
  1128.  
  1129. Color.Main = Library:Create("TextButton", {
  1130. LayoutOrder = #self.Options + 1,
  1131. Size = UDim2.new(1,0,0,22),
  1132. BackgroundTransparency = 1,
  1133. BackgroundColor3 = Color3.fromRGB(220,220,220),
  1134. Text = " "..tostring(ColorText),
  1135. TextColor3 = Color3.fromRGB(255,255,255),
  1136. Font = Enum.Font.SourceSans,
  1137. TextSize = 16,
  1138. TextXAlignment = Enum.TextXAlignment.Left,
  1139. AutoButtonColor = false,
  1140. Parent = self.Content,
  1141. })
  1142.  
  1143. Color.Visualizebg = Library:Create("ImageLabel", {
  1144. Position = UDim2.new(1,-2,0,2),
  1145. Size = UDim2.new(0,-18,0,18),
  1146. BorderSizePixel = 0,
  1147. Image = "rbxassetid://3887014957",
  1148. ScaleType = Enum.ScaleType.Tile,
  1149. TileSize = UDim2.new(0,9,0,9),
  1150. Parent = Color.Main
  1151. })
  1152.  
  1153. Color.Visualize = Library:Create("Frame", {
  1154. Size = UDim2.new(1,0,1,0),
  1155. BackgroundTransparency = 1 - Color.Alpha,
  1156. BackgroundColor3 = Color.Color,
  1157. BorderSizePixel = 0,
  1158. Parent = Color.Visualizebg,
  1159. })
  1160.  
  1161. Color.Container = Library:Create("Frame", {
  1162. Position = UDim2.new(1,4,0,0),
  1163. Size = UDim2.new(0,200,0,0),
  1164. BackgroundColor3 = Color3.fromRGB(40,40,40),
  1165. BorderSizePixel = 0,
  1166. Parent = Color.Visualize
  1167. })
  1168.  
  1169. Color.SubContainer = Library:Create("Frame", {
  1170. Size = UDim2.new(1,0,1,0),
  1171. BackgroundTransparency = 1,
  1172. ClipsDescendants = true,
  1173. Parent = Color.Container
  1174. })
  1175.  
  1176. Color.SatVal = Library:Create("ImageLabel", {
  1177. ZIndex = 2,
  1178. Position = UDim2.new(0,5,0,5),
  1179. Size = UDim2.new(1,-30,1,-30),
  1180. BackgroundColor3 = Color3.fromHSV(Hue,1,1),
  1181. BorderSizePixel = 0,
  1182. Image = "rbxassetid://4155801252",
  1183. Parent = Color.SubContainer
  1184. })
  1185.  
  1186. Color.Pointer = Library:Create("Frame", {
  1187. ZIndex = 2,
  1188. AnchorPoint = Vector2.new(0.5,0.5),
  1189. Position = UDim2.new(Sat,0,1-Val,0),
  1190. Size = UDim2.new(0,4,0,4),
  1191. BackgroundTransparency = 0.4,
  1192. BackgroundColor3 = Color3.fromRGB(255,255,255),
  1193. BorderColor3 = Color3.fromRGB(0,0,0),
  1194. Parent = Color.SatVal
  1195. })
  1196.  
  1197. Color.Hue = Library:Create("ImageLabel", {
  1198. ZIndex = 2,
  1199. AnchorPoint = Vector2.new(1,0),
  1200. Position = UDim2.new(1,-5,0,5),
  1201. Size = UDim2.new(0,15,1,-30),
  1202. BackgroundTransparency = 0,
  1203. Image = "rbxassetid://4174584406",
  1204. Parent = Color.SubContainer
  1205. })
  1206.  
  1207. Color.Pointer1 = Library:Create("TextLabel", {
  1208. ZIndex = 2,
  1209. AnchorPoint = Vector2.new(0,0.5),
  1210. Position = UDim2.new(1,-10,1-Hue,0),
  1211. Size = UDim2.new(0,16,0,16),
  1212. BackgroundTransparency = 1,
  1213. Text = utf8.char(9668),
  1214. TextColor3 = Color3.fromRGB(0,0,0),
  1215. TextStrokeTransparency = 0,
  1216. TextStrokeColor3 = Color3.fromRGB(130,130,130),
  1217. TextSize = 6,
  1218. Parent = Color.Hue
  1219. })
  1220.  
  1221. Color.Alphabg = Library:Create("ImageLabel", {
  1222. ZIndex = 2,
  1223. Position = UDim2.new(0,5,1,-20),
  1224. Size = UDim2.new(1,-30,0,15),
  1225. BorderSizePixel = 0,
  1226. Image = "rbxassetid://3887014957",
  1227. ScaleType = Enum.ScaleType.Tile,
  1228. TileSize = UDim2.new(0,10,0,10),
  1229. Parent = Color.SubContainer
  1230. })
  1231.  
  1232. Color.Alphaimg = Library:Create("ImageLabel", {
  1233. ZIndex = 2,
  1234. Size = UDim2.new(1,0,1,0),
  1235. BackgroundTransparency = 1,
  1236. Image = "rbxassetid://3887017050",
  1237. ImageColor3 = NewColor,
  1238. Parent = Color.Alphabg
  1239. })
  1240.  
  1241. Color.Pointer2 = Library:Create("TextLabel", {
  1242. ZIndex = 2,
  1243. AnchorPoint = Vector2.new(0.5,0),
  1244. Position = UDim2.new(1 - Color.Alpha,0,1,-10),
  1245. Size = UDim2.new(0,16,0,16),
  1246. BackgroundTransparency = 1,
  1247. Text = utf8.char(9650),
  1248. TextColor3 = Color3.fromRGB(0,0,0),
  1249. TextStrokeTransparency = 0,
  1250. TextStrokeColor3 = Color3.fromRGB(130,130,130),
  1251. TextSize = 6,
  1252. Parent = Color.Alphabg
  1253. })
  1254.  
  1255. Color.Rainbow = Library:Create("Frame", {
  1256. ZIndex = 2,
  1257. AnchorPoint = Vector2.new(1,1),
  1258. Position = UDim2.new(1,-5,1,-5),
  1259. Size = UDim2.new(0,15,0,15),
  1260. BackgroundTransparency = 0.4,
  1261. BackgroundColor3 = Color3.fromRGB(20,20,20),
  1262. BorderSizePixel = 0,
  1263. Parent = Color.SubContainer
  1264. })
  1265.  
  1266. spawn(function()
  1267. while wait() do
  1268. Color.Rainbow.BackgroundColor3 = ChromaColor
  1269. end
  1270. end)
  1271.  
  1272. AddHighlight(Color.Main)
  1273.  
  1274. Color.Main.InputBegan:connect(function(input)
  1275. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1276. Color.Closed = not Color.Closed
  1277. if Color.Closed then
  1278. Color.Container:TweenSize(UDim2.new(0,200,0,0), "Out", "Quad", 0.2, true, function() if Color.Closed then self.Main.ClipsDescendants = true end end)
  1279. else
  1280. CloseWindow(Color)
  1281. self.Main.ClipsDescendants = false
  1282. Color.Container:TweenSize(UDim2.new(0,200,0,200), "Out", "Quad", 0.3, true)
  1283. end
  1284. end
  1285. end)
  1286.  
  1287. local Modifying
  1288. local Modifying1
  1289. local Modifying2
  1290.  
  1291. function Color:UpdateSatVal(InputPos)
  1292. local x = (InputPos.X - Color.SatVal.AbsolutePosition.X) / Color.SatVal.AbsoluteSize.X
  1293. local y = (InputPos.Y - Color.SatVal.AbsolutePosition.Y) / Color.SatVal.AbsoluteSize.Y
  1294. x = tonumber(string.format("%.2f", x))
  1295. y = tonumber(string.format("%.2f", y))
  1296. y = y > 1 and 1 or y < 0 and 0 or y
  1297. x = x > 1 and 1 or x < 0 and 0 or x
  1298. Color.Pointer.Position = UDim2.new(x,0,y,0)
  1299. Sat = x
  1300. Val = 1-y
  1301. Color.Color = Color3.fromHSV(Hue, Sat, Val)
  1302. Color.Visualize.BackgroundColor3 = Color.Color
  1303. Color.Alphaimg.ImageColor3 = Color.Color
  1304. Color.Callback(Color.Color, Color.Alpha)
  1305. end
  1306.  
  1307. function Color:UpdateHue(InputPos)
  1308. local y = (InputPos.Y - Color.Hue.AbsolutePosition.Y) / Color.Hue.AbsoluteSize.Y
  1309. y = tonumber(string.format("%.2f", y))
  1310. y = y > 1 and 1 or y < 0 and 0 or y
  1311. Hue = 1-y
  1312. Color.Color = Color3.fromHSV(Hue, Sat, Val)
  1313. Color.Pointer1.Position = UDim2.new(1,-10,1-Hue,0)
  1314. Color.Visualize.BackgroundColor3 = Color.Color
  1315. Color.SatVal.BackgroundColor3 = Color3.fromHSV(Hue,1,1)
  1316. Color.Alphaimg.ImageColor3 = Color.Color
  1317. Color.Callback(Color.Color, Color.Alpha)
  1318. end
  1319.  
  1320. function Color:SetAlpha(Alpha)
  1321. local x = (Alpha - Color.Alphabg.AbsolutePosition.X) / Color.Alphabg.AbsoluteSize.X
  1322. x = tonumber(string.format("%.2f", x))
  1323. x = x > 1 and 1 or x < 0 and 0 or x
  1324. Color.Alpha = 1 - x
  1325. Color.Pointer2.Position = UDim2.new(1 - Color.Alpha,0,1,-10)
  1326. Color.Visualize.BackgroundTransparency = 1 - Color.Alpha
  1327. Color.Callback(Color.Color, Color.Alpha)
  1328. end
  1329.  
  1330. UserInputService.InputChanged:connect(function(input)
  1331. if not Rain and input.UserInputType == Enum.UserInputType.MouseMovement and Modifying or Modifying1 or Modifying2 then
  1332. local Mouse = UserInputService:GetMouseLocation() + Vector2.new(0, -36)
  1333. if Modifying then
  1334. Color:UpdateSatVal(Mouse)
  1335. end
  1336. if Modifying1 then
  1337. Color:UpdateHue(Mouse)
  1338. end
  1339. if Modifying2 then
  1340. Color:SetAlpha(Mouse.X)
  1341. end
  1342. end
  1343. end)
  1344.  
  1345. Color.SatVal.InputBegan:connect(function(input)
  1346. if not Rain and input.UserInputType == Enum.UserInputType.MouseButton1 then
  1347. Modifying = true
  1348. Color:UpdateSatVal(input.Position)
  1349. input.Changed:connect(function()
  1350. if input.UserInputState == Enum.UserInputState.End then
  1351. Modifying = false
  1352. end
  1353. end)
  1354. end
  1355. end)
  1356.  
  1357. Color.SatVal.InputChanged:connect(function(input)
  1358. if not Rain and input.UserInputType == Enum.UserInputType.MouseMovement and Modifying then
  1359. Color:UpdateSatVal(input.Position)
  1360. end
  1361. end)
  1362.  
  1363. Color.Hue.InputBegan:connect(function(input)
  1364. if not Rain and input.UserInputType == Enum.UserInputType.MouseButton1 then
  1365. Modifying1 = true
  1366. Color:UpdateHue(input.Position)
  1367. input.Changed:connect(function()
  1368. if input.UserInputState == Enum.UserInputState.End then
  1369. Modifying1 = false
  1370. end
  1371. end)
  1372. end
  1373. end)
  1374.  
  1375. Color.Hue.InputChanged:connect(function(input)
  1376. if not Rain and input.UserInputType == Enum.UserInputType.MouseMovement and Modifying1 then
  1377. Color:UpdateHue(input.Position)
  1378. end
  1379. end)
  1380.  
  1381. Color.Alphabg.InputBegan:connect(function(input)
  1382. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1383. Modifying2 = true
  1384. Color:SetAlpha(input.Position.X)
  1385. input.Changed:connect(function()
  1386. if input.UserInputState == Enum.UserInputState.End then
  1387. Modifying2 = false
  1388. end
  1389. end)
  1390. end
  1391. end)
  1392.  
  1393. Color.Alphabg.InputChanged:connect(function(input)
  1394. if input.UserInputType == Enum.UserInputType.MouseMovement and Modifying2 then
  1395. Color:SetAlpha(input.Position.X)
  1396. end
  1397. end)
  1398.  
  1399. local OldColor
  1400. local RainbowLoop
  1401. Color.Rainbow.InputBegan:connect(function(input)
  1402. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1403. Rain = not Rain
  1404. Color.Rainbow.BackgroundTransparency = Rain and 1 or 0.4
  1405. if Rain then
  1406. OldColor = Color.Color
  1407. RainbowLoop = RunService.RenderStepped:connect(function()
  1408. Color.Color = ChromaColor
  1409. Color.Callback(Color.Color, Color.Alpha)
  1410. end)
  1411. else
  1412. RainbowLoop:Disconnect()
  1413. Color.Color = OldColor
  1414. Color.Callback(Color.Color, Color.Alpha)
  1415. end
  1416. end
  1417. end)
  1418.  
  1419. Section.YSize = Section.YSize + 22
  1420. Section.Main.Size = UDim2.new(0,200,0,Section.YSize)
  1421. table.insert(self.Options, Color)
  1422. return Color
  1423. end
  1424.  
  1425. table.insert(self.Sections, Section)
  1426. return Section
  1427. end
  1428.  
  1429. table.insert(self.Tabs, Tab)
  1430. return Tab
  1431. end
  1432. end
  1433. do -- ESP Library
  1434. local Players = game:GetService'Players';
  1435. local RunService = game:GetService'RunService';
  1436. local HttpService = game:GetService'HttpService';
  1437. local LocalPlayer = Players.LocalPlayer;
  1438. local Camera = workspace.CurrentCamera;
  1439.  
  1440. uESP = {
  1441. Enabled = false;
  1442. Settings = {
  1443. Box3D = false;
  1444. DrawBox = true;
  1445. DrawDistance = true;
  1446. DrawNames = true;
  1447. DrawTracers = false;
  1448. MaxDistance = 10000;
  1449. RefreshRate = 100;
  1450. TextSize = 18;
  1451. TextOutline = true;
  1452. VisibilityCheck = false;
  1453. TeamCheck = false;
  1454. HeadDots = false;
  1455. TeamColor = Color3.new(0, 1, 0);
  1456. EnemyColor = Color3.new(1, 0, 0);
  1457. };
  1458. RenderList = {};
  1459. RenderingCache = {};
  1460. LastTick = 0;
  1461. };
  1462.  
  1463. local Active = {};
  1464. local function Set(t, i, v)
  1465. t[i] = v;
  1466. end
  1467.  
  1468. local function Combine(...)
  1469. local Output = {};
  1470. for i, v in pairs{...} do
  1471. if typeof(v) == 'table' then
  1472. table.foreach(v, function(i, v)
  1473. Output[i] = v;
  1474. end)
  1475. end
  1476. end
  1477. return Output
  1478. end
  1479.  
  1480. function NewDrawing(InstanceName)
  1481. local Instance = Drawing.new(InstanceName);
  1482. return (function(Properties)
  1483. for i, v in pairs(Properties) do
  1484. pcall(Set, Instance, i, v);
  1485. end
  1486. return Instance;
  1487. end)
  1488. end
  1489.  
  1490. function IsTeam(Player)
  1491. if Player == LocalPlayer then return true; end
  1492. if Player.Neutral and LocalPlayer.Neutral then
  1493. return true;
  1494. end
  1495. if Player.TeamColor == LocalPlayer.TeamColor then
  1496. return true;
  1497. end
  1498. return false;
  1499. end
  1500.  
  1501. local DrawingTypes = {
  1502. Text = true;
  1503. Line = true;
  1504. Square = true;
  1505. Circle = true;
  1506. Rectangle = true;
  1507. Triangle = true;
  1508. Image = true;
  1509. }
  1510.  
  1511. function CleanDrawings(Table, Cache)
  1512. Cache = Cache or {};
  1513. if Cache[Table] or typeof(Table) ~= 'table' then return end
  1514. Cache[Table] = true;
  1515. for i, v in pairs(Table) do
  1516. if DrawingTypes[typeof(v)] then
  1517. v:Remove();
  1518. end
  1519. CleanDrawings(v, Cache);
  1520. end
  1521. end
  1522.  
  1523. local Box = {};
  1524.  
  1525. local Colors = {
  1526. Color3.new(1, 0, 0);
  1527. Color3.new(0, 1, 0);
  1528. Color3.new(0, 0, 1);
  1529. Color3.new(1, 0, 1);
  1530. Color3.new(1, 1, 0);
  1531. Color3.new(0, 1, 1);
  1532. }
  1533.  
  1534. function Box.new(Instance)
  1535. local Box = {
  1536. Instance = Instance;
  1537. Cache = {};
  1538. Lines = {};
  1539. Was3D = uESP.Settings.Box3D;
  1540. };
  1541.  
  1542. function Box:Update(Properties) -- a lot of shorthand code im sorry
  1543. local Properties = Properties or {};
  1544.  
  1545. local Lines = self.Lines or {};
  1546. local Instance = (self.Instance.ClassName == 'Model') and self.Instance or ((self.Instance.Parent.ClassName == 'Model') and self.Instance.Parent or self.Instance);
  1547.  
  1548. if Instance == nil then
  1549. self:Remove();
  1550. end
  1551.  
  1552. local Color = Properties.Color or Color3.new(1, 1, 1);
  1553.  
  1554. local Properties = Combine({
  1555. Transparency = 1;
  1556. Thickness = 3;
  1557. Color = Color;
  1558. Visible = true;
  1559. }, Properties);
  1560.  
  1561. local Position, Size;
  1562.  
  1563. if Instance.ClassName == 'Model' then
  1564. Position, Size = Instance:GetBoundingBox();
  1565. elseif Instance:IsA'BasePart' then
  1566. Position, Size = Instance.CFrame, Instance.Size;
  1567. else
  1568. return;
  1569. end
  1570.  
  1571. if not uESP.Settings.Box3D and self.Was3D then
  1572. self.Was3D = false;
  1573. CleanDrawings(Lines);
  1574. Lines = {};
  1575. elseif uESP.Settings.Box3D and not self.Was3D then
  1576. self.Was3D = true;
  1577. CleanDrawings(Lines);
  1578. Lines = {};
  1579. end
  1580.  
  1581. if Size.X < 16 and Size.Y < 16 and Size.Z < 16 then
  1582. if uESP.Settings.Box3D then
  1583. local Positions = {};
  1584.  
  1585. Size = Size / 2;
  1586. local Minimum, Maximum = -Size, Size
  1587.  
  1588. local Corners = { -- https://www.unknownUtilss.me/forum/counterstrike-global-offensive/175021-3d-box-esp.html
  1589. [0] = CFrame.new(Minimum.x, Minimum.y, Minimum.z);
  1590. [1] = CFrame.new(Minimum.x, Maximum.y, Minimum.z);
  1591. [2] = CFrame.new(Maximum.x, Maximum.y, Minimum.z);
  1592. [3] = CFrame.new(Maximum.x, Minimum.y, Minimum.z);
  1593. [4] = CFrame.new(Minimum.x, Minimum.y, Maximum.z);
  1594. [5] = CFrame.new(Minimum.x, Maximum.y, Maximum.z);
  1595. [6] = CFrame.new(Maximum.x, Maximum.y, Maximum.z);
  1596. [7] = CFrame.new(Maximum.x, Minimum.y, Maximum.z);
  1597. }
  1598.  
  1599. for i, v in pairs(Corners) do
  1600. local SP = Camera:WorldToViewportPoint((Position * v).p);
  1601. Positions[i] = Vector2.new(SP.X, SP.Y);
  1602. end
  1603.  
  1604. for i = 1, 4 do
  1605. Lines[i] = Lines[i] or {};
  1606.  
  1607. Lines[i][1] = Lines[i][1] or NewDrawing'Line'(Properties);
  1608. Lines[i][2] = Lines[i][2] or NewDrawing'Line'(Properties);
  1609. Lines[i][3] = Lines[i][3] or NewDrawing'Line'(Properties);
  1610.  
  1611. Lines[i][1].Color = Color;
  1612. Lines[i][2].Color = Color;
  1613. Lines[i][3].Color = Color;
  1614.  
  1615. Lines[i][1].From = Positions[i - 1];
  1616. Lines[i][1].To = Positions[i % 4];
  1617.  
  1618. Lines[i][2].From = Positions[i - 1];
  1619. Lines[i][2].To = Positions[i + 3];
  1620.  
  1621. Lines[i][3].From = Positions[i + 3];
  1622. Lines[i][3].To = Positions[i % 4 + 4];
  1623. end
  1624. else
  1625. local Positions = {};
  1626.  
  1627. Size = Size / 2;
  1628. local Minimum, Maximum = -Size, Size
  1629.  
  1630. local Corners = {
  1631. CFrame.new(Maximum.x, Maximum.y, 0);
  1632. CFrame.new(-Maximum.x, Maximum.y, 0);
  1633. CFrame.new(Minimum.x, Minimum.y, 0);
  1634. CFrame.new(-Minimum.x, Minimum.y, 0);
  1635. }
  1636.  
  1637. for i, v in pairs(Corners) do
  1638. local SP = Camera:WorldToViewportPoint((Position * v).p);
  1639. Positions[i] = Vector2.new(SP.X, SP.Y);
  1640. end
  1641.  
  1642. Lines[1] = Lines[1] or {};
  1643. -- these stupid [1]'s are there because i'm too lazy to make a check if box is 2d or 3d even tho its easy/shrug
  1644. Lines[1][1] = Lines[1][1] or NewDrawing'Line'(Properties);
  1645. Lines[1][2] = Lines[1][2] or NewDrawing'Line'(Properties);
  1646. Lines[1][3] = Lines[1][3] or NewDrawing'Line'(Properties);
  1647. Lines[1][4] = Lines[1][4] or NewDrawing'Line'(Properties);
  1648.  
  1649. Lines[1][1].Color = Color;
  1650. Lines[1][2].Color = Color;
  1651. Lines[1][3].Color = Color;
  1652. Lines[1][4].Color = Color;
  1653.  
  1654. Lines[1][1].From = Positions[1];
  1655. Lines[1][1].To = Positions[2];
  1656.  
  1657. Lines[1][2].From = Positions[2];
  1658. Lines[1][2].To = Positions[3];
  1659.  
  1660. Lines[1][3].From = Positions[3];
  1661. Lines[1][3].To = Positions[4];
  1662.  
  1663. Lines[1][4].From = Positions[4];
  1664. Lines[1][4].To = Positions[1];
  1665. end
  1666.  
  1667. self.Lines = Lines;
  1668. end
  1669. end
  1670.  
  1671. function Box:SetVisible(boolean)
  1672. for i, v in pairs(self.Lines) do
  1673. for _, Line in pairs(v) do
  1674. Line.Visible = boolean;
  1675. end
  1676. end
  1677. end
  1678.  
  1679. function Box:Remove()
  1680. for i, v in pairs(self.Lines) do
  1681. for _, Line in pairs(v) do
  1682. Line.Visible = false;
  1683. Line:Remove();
  1684. end
  1685. end
  1686.  
  1687. self.Update = function () end;
  1688. end
  1689.  
  1690. return setmetatable(Box, {
  1691. __tostring = function()
  1692. return 'Box';
  1693. end;
  1694. });
  1695. end
  1696.  
  1697. function uESP:Toggle()
  1698. self.Enabled = not self.Enabled;
  1699. end
  1700.  
  1701. function uESP:UpdateSetting(Key, Value)
  1702. if Settings[Key] ~= nil and typeof(Settings[Key]) == typeof(Value) then -- prevent setting shit like boolean to integer
  1703. Settings[Key] = Value;
  1704. end
  1705. end
  1706.  
  1707. function uESP:AddToRenderList(Instance, ...)
  1708. if typeof(Instance) ~= 'Instance' then return end
  1709. if not Instance:IsA'BasePart' then return end
  1710.  
  1711. rawset(self.RenderList, Instance, {...});
  1712. end
  1713.  
  1714. function uESP:DrawInstance(Instance, Properties)
  1715. Properties = Properties or {};
  1716.  
  1717. --
  1718. end
  1719.  
  1720. function uESP:DrawPlayer(Player)
  1721.  
  1722. Active[Player] = true;
  1723.  
  1724. local Character = Player.Character;
  1725.  
  1726. if not Character or not Character:IsDescendantOf(workspace) then return end
  1727. if Player == LocalPlayer then return end;
  1728.  
  1729. local Cache = uESP.RenderingCache[Character] or {};
  1730.  
  1731. Cache.Box = Cache.Box or Box.new(Character);
  1732. Cache.NameTag = Cache.NameTag or NewDrawing'Text'{
  1733. Center = true;
  1734. Outline = uESP.Settings.TextOutline;
  1735. Size = uESP.Settings.TextSize;
  1736. Visible = true;
  1737. };
  1738. Cache.DistanceTag = Cache.DistanceTag or NewDrawing'Text'{
  1739. Center = true;
  1740. Outline = uESP.Settings.TextOutline;
  1741. Size = uESP.Settings.TextSize;
  1742. Visible = true;
  1743. };
  1744. Cache.Tracer = Cache.Tracer or NewDrawing'Line'{
  1745. Transparency = 1;
  1746. Thickness = 2;
  1747. };
  1748. Cache.HeadDots = Cache.HeadDots or NewDrawing'Circle'{
  1749. Filled = true;
  1750. NumSides = 30;
  1751. }
  1752.  
  1753. uESP.RenderingCache[Character] = Cache;
  1754.  
  1755. if uESP.Enabled and Player.Character:FindFirstChild'Head' then
  1756. local Head = Character.Head;
  1757. local Humanoid = Character:FindFirstChildOfClass'Humanoid';
  1758. if Head then
  1759. local ScreenPosition, Visible = Camera:WorldToViewportPoint(Head.Position + Vector3.new(0, Head.Size.Y / 2, 0));
  1760. local ScreenPositionOnly = Camera:WorldToViewportPoint(Head.Position);
  1761. local Scale = Head.Size.Y / 2;
  1762. local Color = uESP.Settings.TeamCheck and not Player.Neutral and Player.TeamColor.Color or IsTeam(Player) and uESP.Settings.TeamColor or uESP.Settings.EnemyColor
  1763.  
  1764. if Humanoid and Humanoid.Health < 1 then
  1765. Visible = false;
  1766. end
  1767.  
  1768. if Visible then
  1769. if uESP.Settings.DrawNames then
  1770. LocalPlayer.NameDisplayDistance = 0;
  1771. Cache.NameTag.Color = Color;
  1772. Cache.NameTag.Position = Vector2.new(ScreenPosition.X, ScreenPosition.Y);
  1773. Cache.NameTag.Text = Player.Name;
  1774. Cache.NameTag.Visible = true;
  1775. else
  1776. LocalPlayer.NameDisplayDistance = 100;
  1777. Cache.NameTag.Visible = false;
  1778. end
  1779. if uESP.Settings.HeadDots then
  1780. local Top = Camera:WorldToViewportPoint((Head.CFrame * CFrame.new(0, Scale, 0)).p);
  1781. local Bottom = Camera:WorldToViewportPoint((Head.CFrame * CFrame.new(0, -Scale, 0)).p);
  1782. local Radius = (Top - Bottom).y;
  1783. Cache.HeadDots.Visible = true
  1784. Cache.HeadDots.Position = Vector2.new(ScreenPositionOnly.X, ScreenPositionOnly.Y)
  1785. Cache.HeadDots.Color = Color
  1786. Cache.HeadDots.Radius = Radius
  1787. else
  1788. Cache.HeadDots.Visible = false
  1789. end
  1790. if uESP.Settings.DrawDistance then
  1791. Cache.DistanceTag.Color = Color3.new(1, 1, 1);
  1792. Cache.DistanceTag.Position = Vector2.new(ScreenPosition.X, ScreenPosition.Y + (Cache.NameTag.TextBounds.Y));
  1793. Cache.DistanceTag.Text = '[' .. math.floor(ScreenPosition.Z) .. ' Studs]';
  1794. Cache.DistanceTag.Visible = true;
  1795. else
  1796. Cache.DistanceTag.Visible = false;
  1797. end
  1798. if uESP.Settings.DrawTracers then
  1799. Cache.Tracer.From = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y);
  1800. Cache.Tracer.To = Vector2.new(ScreenPosition.X, ScreenPosition.Y);
  1801. Cache.Tracer.Color = Color;
  1802. Cache.Tracer.Visible = true;
  1803. else
  1804. Cache.Tracer.Visible = false;
  1805. end
  1806. if ScreenPosition.Z >= 1.5 then
  1807. Cache.Box:SetVisible(true);
  1808. else
  1809. Cache.Box:SetVisible(false);
  1810. end
  1811. Cache.Box:Update({Color = Color});
  1812. else
  1813. Cache.NameTag.Visible = false;
  1814. Cache.DistanceTag.Visible = false;
  1815. Cache.Tracer.Visible = false;
  1816. Cache.HeadDots.Visible = false;
  1817. Cache.Box:SetVisible(false);
  1818. end
  1819. end
  1820. else
  1821. Cache.NameTag.Visible = false;
  1822. Cache.DistanceTag.Visible = false;
  1823. Cache.Tracer.Visible = false;
  1824. Cache.HeadDots.Visible = false;
  1825. Cache.Box:SetVisible(false);
  1826. end
  1827.  
  1828. uESP.RenderingCache[Character] = Cache;
  1829. Active[Player] = false;
  1830. end
  1831. function uESP:Draw()
  1832. if uESP.Settings.RefreshRate > 1 and (tick() - uESP.LastTick) <= (uESP.Settings.RefreshRate / 1000) then
  1833. return;
  1834. end
  1835.  
  1836. for i, v in pairs(Players:GetPlayers()) do
  1837. uESP:DrawPlayer(v);
  1838. end
  1839. for i, v in pairs(self.RenderList) do
  1840. uESP:DrawInstance(i, v);
  1841. end
  1842.  
  1843. for i, v in pairs(self.RenderingCache) do -- Remove trash
  1844. if not i:IsDescendantOf(game) then
  1845. CleanDrawings(self.RenderingCache[i]);
  1846. self.RenderingCache[i] = nil;
  1847. end
  1848. end
  1849. end
  1850.  
  1851. function uESP:Unload()
  1852. RunService:UnbindFromRenderStep(shared.ESPAPIName);
  1853. CleanDrawings(uESP.RenderingCache);
  1854. uESP = {};
  1855. end
  1856.  
  1857. function uESP:Init()
  1858. pcall(function() uESP:Unload() end);
  1859. wait(1/4);
  1860.  
  1861. RunService:BindToRenderStep("esp", 1, function()
  1862. uESP:Draw();
  1863. end);
  1864. end
  1865. end
  1866. do -- Utils API
  1867. Utils.AddLaunch = function(LaunchName, func)
  1868. getfenv(1)[LaunchName] = {}
  1869. getfenv(1)[LaunchName].launch = function()
  1870. func()
  1871. end
  1872. end
  1873. Utils.FindValue = function(Table, Value)
  1874. local Found = false
  1875. for i, v in next, Table do
  1876. if Value == v then
  1877. Found = true
  1878. end
  1879. end
  1880. return Found
  1881. end
  1882. Utils.FindConstant = function(func, ...)
  1883. local args = {...}
  1884. local ConstantsFound = 0
  1885. local Found = false
  1886. pcall(function()
  1887. for i, v in next, debug.getconstants(func) do
  1888. if Utils.FindValue(args, v) then
  1889. ConstantsFound = ConstantsFound + 1
  1890. end
  1891. end
  1892. end)
  1893. if #args == ConstantsFound then
  1894. Found = true
  1895. end
  1896. return Found
  1897. end
  1898. Utils.SetConstant = function(func, Constant, NewConstant)
  1899. pcall(function()
  1900. for i, v in next, debug.getconstants(func) do
  1901. if v == Constant then
  1902. debug.setconstant(func, i, NewConstant)
  1903. end
  1904. end
  1905. end)
  1906. end
  1907. Utils.getClosestPlayer = function()
  1908. local joe = game:GetService("Workspace").CurrentCamera
  1909. local closestPlayer = nil
  1910. local shortestDistance = math.huge
  1911. local lp = game:GetService("Players").LocalPlayer
  1912. for i, v in pairs(game:GetService("Players"):GetPlayers()) do
  1913. if v ~= lp and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Head") then
  1914. local magnitude = (v.Character.HumanoidRootPart.Position - lp.Character.HumanoidRootPart.Position).magnitude
  1915.  
  1916. if magnitude < shortestDistance then
  1917. closestPlayer = v
  1918. shortestDistance = magnitude
  1919. end
  1920. end
  1921. end
  1922.  
  1923. return closestPlayer
  1924. end
  1925. end
  1926. Utils.AddLaunch("ESP", function()
  1927. local ESP = universal:AddSection("ESP")
  1928. uESP:Init()
  1929. local Enable = ESP:AddToggle("Enable", function(toggle)
  1930. uESP.Enabled = toggle
  1931. end)
  1932. ESP:AddToggle("Tracers", function(toggle)
  1933. uESP.Settings.DrawTracers = toggle
  1934. end)
  1935. ESP:AddToggle("Team Check", function(toggle)
  1936. uESP.Settings.TeamCheck = toggle
  1937. end)
  1938. ESP:AddToggle("Head Dots", function(toggle) uESP.Settings.HeadDots = toggle end)
  1939. ESP:AddCP("Team Color", uESP.Settings.TeamColor, function(Color, Alpha)
  1940. uESP.Settings.TeamColor = Color
  1941. end)
  1942. ESP:AddCP("Enemy Color", uESP.Settings.EnemyColor, function(Color, Alpha)
  1943. uESP.Settings.EnemyColor = Color
  1944. end)
  1945. end)
  1946. Utils.AddLaunch("Universal", function()
  1947. universal = Library:CreateTab("Universal")
  1948. ESP.launch()
  1949. end)
  1950. Utils.AddLaunch("PrisonLife", function()
  1951. local Game = window:AddSection("Main")
  1952. local TeleportsWindow = window:AddSection("Teleports")
  1953. local CharactersCheat = window:AddSection("Character Cheats")
  1954. local NoClipToggle = CharactersCheat:AddToggle("NoClip")
  1955. --local TeamsWindow = window:AddSection("Teams")
  1956. local ToolTip = require(game.ReplicatedStorage.Modules_client.TooltipModule)
  1957. local WalkSpeedEnabled = false
  1958. local GameMT, MTBackups = getrawmetatable(game), {}
  1959. for i, v in next, GameMT do MTBackups[i] = v end
  1960. local Teleports = {
  1961. ["Guard Base"] = CFrame.new(802, 99, 2270),
  1962. ["Criminal Base"] = CFrame.new(-943, 96, 2055),
  1963. ["Police Room"] = CFrame.new(834.972, 99.989, 2275.318),
  1964. ["Yard"] = CFrame.new(779.092, 96.001, 2451.114),
  1965. ["Cafeteria"] = CFrame.new(930, 97.54, 2291),
  1966. ["Prison Cells"] = CFrame.new(918, 97.73, 2447),
  1967. ["Sewer Enterance"] = CFrame.new(917.174, 76.406, 2426.199),
  1968. ["Sewer Exit"] = CFrame.new(916.506, 96.285, 2111.396)
  1969. }
  1970. Utils.GunMod = function()
  1971. for i, v in next, getgc(true) do
  1972. if type(v) == "table" and rawget(v, "MaxAmmo") then
  1973. v.AutoFire = true
  1974. v.MaxAmmo = math.huge
  1975. v.CurrentAmmo = math.huge
  1976. v.FireRate = 0
  1977. v.Bullets = 10
  1978. end
  1979. end
  1980. end
  1981. Utils.Teleport = function(pos)
  1982. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = pos
  1983. end
  1984. Utils.SetWalkSpeed = function(Speed)
  1985. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = Speed
  1986. end
  1987. Utils.GetWalkSpeed = function()
  1988. return game.Players.LocalPlayer.Character.Humanoid.WalkSpeed
  1989. end
  1990. Utils.GetJumpPower = function()
  1991. return game.Players.LocalPlayer.Character.Humanoid.JumpPower
  1992. end
  1993. Utils.SetJumpPower = function(Speed)
  1994. game.Players.LocalPlayer.Character.Humanoid.JumpPower = Speed
  1995. end
  1996. Utils.GetTeam = function(TeamName)
  1997. return game.Teams[TeamName].TeamColor.Name
  1998. end
  1999. local DefaultWalkSpeed = Utils.GetWalkSpeed()
  2000. local DefaultJumpPower = Utils.GetJumpPower()
  2001. Utils.GetCharacter = function()
  2002. return game.Players.LocalPlayer.Character
  2003. end
  2004. Utils.SuperPunch = function()
  2005. end
  2006. Utils.GiveGuns = function()
  2007. for i, v in next, Workspace.Prison_ITEMS.giver:GetChildren() do
  2008. workspace.Remote.ItemHandler:InvokeServer(v.ITEMPICKUP)
  2009. end
  2010. end
  2011. Utils.KillAura = function()
  2012. while wait(0.1) do
  2013. for i, plr in pairs(game.Players:GetChildren()) do
  2014. if plr.Name ~= game.Players.LocalPlayer.Name then
  2015. for i = 1, 10 do
  2016. game.ReplicatedStorage.meleeEvent:FireServer(plr)
  2017. end
  2018. end
  2019. end
  2020. end
  2021. end
  2022. --[[Game:AddButton("Super Punch", function()
  2023. Utils.SuperPunch()
  2024. end)]]
  2025. local StaminaBypass = Game:AddToggle("Stamina Bypass")
  2026. for i, v in next, Teleports do
  2027. TeleportsWindow:AddButton(i, function()
  2028. Utils.Teleport(v)
  2029. end)
  2030. end
  2031. Game:AddButton("Gun Mod", Utils.GunMod)
  2032. Game:AddButton("Give Guns", Utils.GiveGuns)
  2033. local JumpPowerEnabled = false
  2034. local WS = CharactersCheat:AddSlider("WalkSpeed", DefaultWalkSpeed, 500, function(Speed)
  2035. WalkSpeedEnabled = Speed > DefaultWalkSpeed
  2036. Utils.SetWalkSpeed(Speed)
  2037. end)
  2038. local JP = CharactersCheat:AddSlider("JumpPower", DefaultJumpPower, 700, function(Speed)
  2039. JumpPowerEnabled = Speed > DefaultJumpPower
  2040. Utils.SetJumpPower(Speed)
  2041. end)
  2042. game:GetService("RunService").RenderStepped:Connect(function()
  2043. if NoClipToggle.State then
  2044. Utils.GetCharacter().Humanoid:ChangeState(11)
  2045. end
  2046. end)
  2047. setreadonly(GameMT, false)
  2048. local old = GameMT.__newindex
  2049. GameMT.__newindex = newcclosure(function(t, k, n)
  2050. local CallerScript = getfenv(2).script
  2051. local shouldReturn = true
  2052. if CallerScript.Name == "ClientInputHandler" and k == "WalkSpeed" and WalkSpeedEnabled then
  2053. shouldReturn = false
  2054. end
  2055. if CallerScript.Name == "ClientInputHandler" and k == "Jump" and StaminaBypass.State then
  2056. shouldReturn = false
  2057. end
  2058. if shouldReturn then
  2059. return old(t, k, n)
  2060. end
  2061. end)
  2062. setreadonly(GameMT, true)
  2063. local oldPrint = getrenv().print
  2064. getrenv().print = newcclosure(function(...)
  2065. local CallerScript = getfenv(2).script
  2066. local args = {...}
  2067. local shouldReturn = true
  2068. if CallerScript.Name == "ClientInputHandler" and tostring(args[1]):lower():find("jumping") and StaminaBypass.State then
  2069. shouldReturn = false
  2070. end
  2071. if shouldReturn then
  2072. return oldPrint(...)
  2073. end
  2074. end)
  2075. loopAPI:CreateLoop("SpeedLoop", wait, function()
  2076. pcall(function()
  2077. if WalkSpeedEnabled then
  2078. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = WS.Value
  2079. end
  2080. end)
  2081. end, true)
  2082. loopAPI:CreateLoop("JumpLoop", wait, function()
  2083. pcall(function()
  2084. if JumpPowerEnabled then
  2085. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = JP.Value
  2086. end
  2087. end)
  2088. end, true)
  2089. local oldupdate = ToolTip.update
  2090. ToolTip.update = function(Text)
  2091. local shouldReturn = true
  2092. if Text:lower():find("stamina") and StaminaBypass.State then
  2093. shouldReturn = false
  2094. end
  2095. if shouldReturn then
  2096. oldupdate(Text)
  2097. end
  2098. end
  2099. --[[for i, v in next, game.Teams:GetChildren() do
  2100. TeamsWindow:AddButton(v.Name, function()
  2101. workspace.Remote.TeamEvent:FireServer(Utils.GetTeam(v.Name))
  2102. end)
  2103. end]]
  2104. end)
  2105. Utils.AddLaunch("NinjaLegends", function()
  2106. local Farm = window:AddSection("Auto Farm")
  2107. local Buy = window:AddSection("Auto Buy")
  2108. local TPs = window:AddSection("Teleports")
  2109. local Misc = window:AddSection("Misc")
  2110. local Shop = TPs:AddButton("Shop", function()
  2111. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").shopAreaCircles["shopAreaCircle11"].circleInner.CFrame
  2112. end)
  2113. local Skills = TPs:AddButton("Skills Shop", function()
  2114. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").skillAreaCircles["skillsAreaCircle11"].circleInner.CFrame
  2115. end)
  2116. local Skills1 = TPs:AddButton("Light Skills Shop", function()
  2117. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-116.49514, 3.24800324, 0.0838552266)
  2118. end)
  2119. local Skills2 = TPs:AddButton("Dark Skills Shop", function()
  2120. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-116.549767, 3.24800324, 58.087841)
  2121. end)
  2122. local HideName = Misc:AddButton("Hide Name", function()
  2123. local plrname = game.Players.LocalPlayer.Name
  2124. workspace[plrname].Head.nameGui:Destroy()
  2125. end)
  2126. local MaxJP = Misc:AddButton("Max Jumps", function()
  2127. while wait(.0001) do
  2128. game.Players.LocalPlayer.multiJumpCount.Value = "50"
  2129. end
  2130. end)
  2131. local KOTH = TPs:AddButton("King of the hill", function()
  2132. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").kingOfTheHillPart.CFrame
  2133. end)
  2134. local UnlockIsland = TPs:AddButton("Unlock Islands", function()
  2135. for i,v in next, game.workspace.islandUnlockParts:GetChildren() do
  2136. if v then
  2137. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.islandSignPart.CFrame;
  2138. wait(1.3)
  2139. end
  2140. end
  2141. end)
  2142. local a1 = TPs:AddButton("Mystical Waters (100)", function()
  2143. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(347.74881, 8824.53809, 114.271019)
  2144. end)
  2145. local a2 = TPs:AddButton("Sword of Legends (1000)", function()
  2146. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(1834.15967, 38.704483, -141.375641)
  2147. end)
  2148. local a5 = TPs:AddButton("Elemental Tornado (2000)", function()
  2149. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(299.758484, 30383.0957, -90.1542206)
  2150. end)
  2151. local a3 = TPs:AddButton("Lava Pit (-100)", function()
  2152. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-116.631485, 12952.5381, 271.14624)
  2153. end)
  2154. local a4 = TPs:AddButton("Tornado (-250)", function()
  2155. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(325.641174, 16872.0938, -9.9906435)
  2156. end)
  2157. local a6 = TPs:AddButton("Swords Of Ancients (-2000)", function()
  2158. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(648.365662, 38.704483, 2409.72266)
  2159. end)
  2160.  
  2161. local ChestCollect = Misc:AddButton("Collect Evil Chest", function()
  2162. game:GetService("Workspace").evilKarmaChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  2163. wait(5)
  2164. game:GetService("Workspace").evilKarmaChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  2165. end)
  2166. local LightKarma = Misc:AddButton("Collect Light Chest", function()
  2167. game:GetService("Workspace").lightKarmaChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  2168. wait(5)
  2169. game:GetService("Workspace").lightKarmaChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  2170. end)
  2171. local ChestCollect = Misc:AddButton("Collect All Chest", function()
  2172. game:GetService("Workspace").mythicalChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  2173. wait(3.5)
  2174. game:GetService("Workspace").goldenChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  2175. wait(3.5)
  2176. game:GetService("Workspace").enchantedChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  2177. wait(3.5)
  2178. game:GetService("Workspace").magmaChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  2179. wait(3.5)
  2180. game:GetService("Workspace").legendsChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  2181. wait(3.5)
  2182. game:GetService("Workspace").eternalChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  2183. wait(3.5)
  2184. game:GetService("Workspace").saharaChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  2185. wait(3.5)
  2186. game:GetService("Workspace").thunderChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  2187. wait(3.5)
  2188. game:GetService("Workspace").ancientChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  2189. wait(3.5)
  2190. game:GetService("Workspace").midnightShadowChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  2191. wait(3.5)
  2192. game:GetService("Workspace").groupRewardsCircle["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  2193. wait(3.5)
  2194. game:GetService("Workspace")["Daily Chest"].circleInner.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  2195. wait(3.5)
  2196. game:GetService("Workspace")["wonderChest"].circleInner.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  2197. wait(3.5)
  2198. game:GetService("Workspace").wonderChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  2199. game:GetService("Workspace").midnightShadowChest["circleInner"].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  2200. game:GetService("Workspace").ancientChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  2201. game:GetService("Workspace").midnightShadowChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  2202. game:GetService("Workspace").thunderChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  2203. game:GetService("Workspace").saharaChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  2204. game:GetService("Workspace").eternalChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  2205. game:GetService("Workspace").legendsChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  2206. game:GetService("Workspace").magmaChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  2207. game:GetService("Workspace").enchantedChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  2208. game:GetService("Workspace").goldenChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  2209. game:GetService("Workspace").mythicalChest["circleInner"].CFrame = game.Workspace.Part.CFrame
  2210. game:GetService("Workspace").groupRewardsCircle["circleInner"].CFrame = game.Workspace.Part.CFrame
  2211. game:GetService("Workspace")["Daily Chest"].circleInner.CFrame = game.Workspace.Part.CFrame
  2212. end)
  2213.  
  2214.  
  2215.  
  2216. local dsgfsag = Farm:AddToggle("Auto-Swing", function(yek)
  2217. if yek then
  2218. _G.swing = true
  2219. while _G.swing do
  2220. wait()
  2221. game.Players.LocalPlayer.ninjaEvent:FireServer("swingKatana")
  2222. end
  2223. else
  2224. _G.swing = false
  2225. while _G.swing do
  2226. wait()
  2227. game.Players.LocalPlayer.ninjaEvent:FireServer("swingKatana")
  2228. end
  2229. end
  2230. end)
  2231. end)
  2232.  
  2233.  
  2234. Utils.AddLaunch("HubLauncher", function()
  2235. local ScreenGui = Instance.new("ScreenGui")
  2236. local Frame = Instance.new("Frame")
  2237. local Close = Instance.new("TextButton")
  2238. local Detail = Instance.new("ImageLabel")
  2239. local Settings = Instance.new("TextButton")
  2240. local Detail_2 = Instance.new("ImageLabel")
  2241. local MainTab = Instance.new("Frame")
  2242. local AtorifysHub1 = Instance.new("TextLabel")
  2243. local AtorifysHub2 = Instance.new("TextLabel")
  2244. local KeyFrame = Instance.new("Frame")
  2245. local TextBox = Instance.new("TextBox")
  2246. local KeyIcon = Instance.new("ImageLabel")
  2247. local RememberMe = Instance.new("TextLabel")
  2248. local Login = Instance.new("TextButton")
  2249. local KeyLabel = Instance.new("TextLabel")
  2250. local SettingsTab = Instance.new("Frame")
  2251. local AtorifysHub1_2 = Instance.new("TextLabel")
  2252. local AtorifysHub2_2 = Instance.new("TextLabel")
  2253. local GameDetection = Instance.new("TextLabel")
  2254. local BackIcon = Instance.new("TextButton")
  2255. local loggingIn = false
  2256. local Colors = {Vaild = Color3.fromRGB(169, 255, 76), Invaild = Color3.new(1, 0.254902, 0.254902)}
  2257. ScreenGui.Parent = game.CoreGui
  2258.  
  2259. Frame.Parent = ScreenGui
  2260. Frame.BackgroundColor3 = Color3.new(0.129412, 0.129412, 0.129412)
  2261. Frame.BorderColor3 = Color3.new(0.815686, 0.815686, 0.815686)
  2262. Frame.BorderSizePixel = 0
  2263. Frame.Position = UDim2.new(0.04093327, 0, 0.337049246, 0)
  2264. Frame.Size = UDim2.new(0, 386, 0, 127)
  2265. CreateDrag(Frame)
  2266. Close.Name = "Close"
  2267. Close.Parent = Frame
  2268. Close.BackgroundColor3 = Color3.new(0.129412, 0.129412, 0.129412)
  2269. Close.BorderSizePixel = 0
  2270. Close.Position = UDim2.new(1, -25, 0, 0)
  2271. Close.Size = UDim2.new(0, 25, 0.211321458, 0)
  2272. Close.AutoButtonColor = false
  2273. Close.Font = Enum.Font.SourceSans
  2274. Close.Text = ""
  2275. Close.TextColor3 = Color3.new(0, 0, 0)
  2276. Close.TextSize = 14
  2277. Close.MouseButton1Click:Connect(function()
  2278. ScreenGui:Destroy()
  2279. end)
  2280. Detail.Name = "Detail"
  2281. Detail.Parent = Close
  2282. Detail.BackgroundColor3 = Color3.new(1, 1, 1)
  2283. Detail.BackgroundTransparency = 1
  2284. Detail.Position = UDim2.new(0.5, -8, 0.5, -8)
  2285. Detail.Size = UDim2.new(0, 15, 0, 15)
  2286. Detail.Image = "rbxassetid://3487597401"
  2287.  
  2288. Settings.Name = "Settings"
  2289. Settings.Parent = Frame
  2290. Settings.BackgroundColor3 = Color3.new(0.129412, 0.129412, 0.129412)
  2291. Settings.BorderSizePixel = 0
  2292. Settings.Position = UDim2.new(1.02331603, -47, 0, 0)
  2293. Settings.Size = UDim2.new(-0.023316063, 25, 0.211321458, 0)
  2294. Settings.AutoButtonColor = false
  2295. Settings.Font = Enum.Font.SourceSans
  2296. Settings.Text = ""
  2297. Settings.TextColor3 = Color3.new(0, 0, 0)
  2298. Settings.TextSize = 14
  2299.  
  2300. Detail_2.Name = "Detail"
  2301. Detail_2.Parent = Settings
  2302. Detail_2.BackgroundColor3 = Color3.new(1, 1, 1)
  2303. Detail_2.BackgroundTransparency = 1
  2304. Detail_2.Position = UDim2.new(0.5, -8, 0.5, -8)
  2305. Detail_2.Size = UDim2.new(0, 15, 0, 15)
  2306. Detail_2.Image = "rbxassetid://2766645188"
  2307.  
  2308. MainTab.Name = "MainTab"
  2309. MainTab.Parent = Frame
  2310. MainTab.BackgroundColor3 = Color3.new(1, 1, 1)
  2311. MainTab.BackgroundTransparency = 1
  2312. MainTab.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  2313. MainTab.Size = UDim2.new(0, 386, 0, 127)
  2314.  
  2315. AtorifysHub1.Name = "AtorifysHub1"
  2316. AtorifysHub1.Parent = MainTab
  2317. AtorifysHub1.BackgroundColor3 = Color3.new(1, 1, 1)
  2318. AtorifysHub1.BackgroundTransparency = 1
  2319. AtorifysHub1.Position = UDim2.new(0.372686356, 0, 0.0636268258, 0)
  2320. AtorifysHub1.Size = UDim2.new(0, 36, 0, 18)
  2321. AtorifysHub1.Font = Enum.Font.SourceSansBold
  2322. AtorifysHub1.Text = "Atorify's"
  2323. AtorifysHub1.TextColor3 = Color3.new(1, 1, 1)
  2324. AtorifysHub1.TextSize = 30
  2325.  
  2326. AtorifysHub2.Name = "AtorifysHub2"
  2327. AtorifysHub2.Parent = MainTab
  2328. AtorifysHub2.BackgroundColor3 = Color3.new(1, 1, 1)
  2329. AtorifysHub2.BackgroundTransparency = 1
  2330. AtorifysHub2.Position = UDim2.new(0.486676008, 0, 0.0636268705, 0)
  2331. AtorifysHub2.Size = UDim2.new(0, 53, 0, 18)
  2332. AtorifysHub2.Font = Enum.Font.SourceSansBold
  2333. AtorifysHub2.Text = " Hub"
  2334. AtorifysHub2.TextColor3 = Color3.new(1, 0.254902, 0.254902)
  2335. AtorifysHub2.TextSize = 30
  2336.  
  2337. KeyFrame.Name = "KeyFrame"
  2338. KeyFrame.Parent = MainTab
  2339. KeyFrame.BackgroundColor3 = Color3.new(0.980392, 0.980392, 0.980392)
  2340. KeyFrame.BorderSizePixel = 0
  2341. KeyFrame.Position = UDim2.new(0.0231865197, 0, 0.392999977, 0)
  2342. KeyFrame.Size = UDim2.new(0, 368, 0, 34)
  2343.  
  2344. TextBox.Parent = KeyFrame
  2345. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  2346. TextBox.BackgroundTransparency = 1
  2347. TextBox.Position = UDim2.new(0.0867036358, 0, 0, 0)
  2348. TextBox.Size = UDim2.new(0, 335, 0, 34)
  2349. TextBox.Font = Enum.Font.SourceSans
  2350. TextBox.PlaceholderColor3 = Color3.new(0.698039, 0.698039, 0.698039)
  2351. TextBox.PlaceholderText = "Please input your key"
  2352. TextBox.Text = ""
  2353. TextBox.TextColor3 = Color3.new(0, 0, 0)
  2354. TextBox.TextSize = 16
  2355. TextBox.TextXAlignment = Enum.TextXAlignment.Left
  2356.  
  2357. KeyIcon.Name = "KeyIcon"
  2358. KeyIcon.Parent = KeyFrame
  2359. KeyIcon.BackgroundColor3 = Color3.new(0.980392, 0.980392, 0.980392)
  2360. KeyIcon.BackgroundTransparency = 1
  2361. KeyIcon.BorderSizePixel = 0
  2362. KeyIcon.Position = UDim2.new(0.0142740402, 0, 0.174600363, 0)
  2363. KeyIcon.Size = UDim2.new(0, 19, 0, 21)
  2364. KeyIcon.Image = "http://www.roblox.com/asset/?id=4510496189"
  2365.  
  2366. RememberMe.Name = "RememberMe"
  2367. RememberMe.Parent = MainTab
  2368. RememberMe.BackgroundColor3 = Color3.new(1, 1, 1)
  2369. RememberMe.BackgroundTransparency = 1
  2370. RememberMe.Position = UDim2.new(0.105846979, 0, 0.731006682, 0)
  2371. RememberMe.Size = UDim2.new(0, 73, 0, 18)
  2372. RememberMe.Font = Enum.Font.Gotham
  2373. RememberMe.Text = "Game: "..GameName
  2374. RememberMe.TextColor3 = Color3.new(1, 1, 1)
  2375. RememberMe.TextSize = 15
  2376.  
  2377.  
  2378. Login.Name = "Login"
  2379. Login.Parent = MainTab
  2380. Login.BackgroundColor3 = Color3.new(1, 0.254902, 0.254902)
  2381. Login.BorderColor3 = Color3.new(1, 0.254902, 0.254902)
  2382. Login.Position = UDim2.new(0.795336783, 0, 0.724546075, 0)
  2383. Login.Size = UDim2.new(0, 69, 0, 24)
  2384. Login.Font = Enum.Font.SourceSansBold
  2385. Login.Text = "Login"
  2386. Login.TextColor3 = Color3.new(1, 1, 1)
  2387. Login.TextSize = 14
  2388. Login.MouseButton1Click:Connect(function()
  2389. if not loggingIn then
  2390. AtorifysHub2.TextColor3 = Colors.Vaild
  2391. wait(0.30)
  2392. ScreenGui:Destroy()
  2393. Hub.launch()
  2394. loggingIn = true
  2395. end
  2396. end)
  2397.  
  2398. KeyLabel.Name = "KeyLabel"
  2399. KeyLabel.Parent = MainTab
  2400. KeyLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  2401. KeyLabel.BackgroundTransparency = 1
  2402. KeyLabel.Position = UDim2.new(0.0177640766, 0, 0.211321488, 0)
  2403. KeyLabel.Size = UDim2.new(0, 27, 0, 18)
  2404. KeyLabel.Font = Enum.Font.GothamSemibold
  2405. KeyLabel.Text = "Key"
  2406. KeyLabel.TextColor3 = Color3.new(1, 1, 1)
  2407. KeyLabel.TextSize = 12
  2408.  
  2409. SettingsTab.Name = "SettingsTab"
  2410. SettingsTab.Parent = Frame
  2411. SettingsTab.BackgroundColor3 = Color3.new(1, 1, 1)
  2412. SettingsTab.BackgroundTransparency = 1
  2413. SettingsTab.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  2414. SettingsTab.Size = UDim2.new(0, 386, 0, 127)
  2415. SettingsTab.Visible = false
  2416.  
  2417. AtorifysHub1_2.Name = "AtorifysHub1"
  2418. AtorifysHub1_2.Parent = SettingsTab
  2419. AtorifysHub1_2.BackgroundColor3 = Color3.new(1, 1, 1)
  2420. AtorifysHub1_2.BackgroundTransparency = 1
  2421. AtorifysHub1_2.Position = UDim2.new(0.372686356, 0, 0.0636268258, 0)
  2422. AtorifysHub1_2.Size = UDim2.new(0, 36, 0, 18)
  2423. AtorifysHub1_2.Font = Enum.Font.SourceSansBold
  2424. AtorifysHub1_2.Text = "Atorify's"
  2425. AtorifysHub1_2.TextColor3 = Color3.new(1, 1, 1)
  2426. AtorifysHub1_2.TextSize = 30
  2427.  
  2428. AtorifysHub2_2.Name = "AtorifysHub2"
  2429. AtorifysHub2_2.Parent = SettingsTab
  2430. AtorifysHub2_2.BackgroundColor3 = Color3.new(1, 1, 1)
  2431. AtorifysHub2_2.BackgroundTransparency = 1
  2432. AtorifysHub2_2.Position = UDim2.new(0.486676008, 0, 0.0636268705, 0)
  2433. AtorifysHub2_2.Size = UDim2.new(0, 53, 0, 18)
  2434. AtorifysHub2_2.Font = Enum.Font.SourceSansBold
  2435. AtorifysHub2_2.Text = " Hub"
  2436. AtorifysHub2_2.TextColor3 = Color3.new(1, 0.254902, 0.254902)
  2437. AtorifysHub2_2.TextSize = 30
  2438.  
  2439. BackIcon.Name = "BackIcon"
  2440. BackIcon.Parent = Frame
  2441. BackIcon.BackgroundColor3 = Color3.new(0.129412, 0.129412, 0.129412)
  2442. BackIcon.BorderSizePixel = 0
  2443. BackIcon.Position = UDim2.new(1.02331603, -47, 0, 0)
  2444. BackIcon.Size = UDim2.new(-0.023316063, 25, 0.211321458, 0)
  2445. BackIcon.Visible = false
  2446. BackIcon.AutoButtonColor = false
  2447. BackIcon.Font = Enum.Font.SourceSans
  2448. BackIcon.TextColor3 = Color3.new(1, 1, 1)
  2449. BackIcon.TextSize = 20
  2450.  
  2451. -- Scripts:
  2452.  
  2453. local function SGKS_fake_script() -- Settings.LocalScript
  2454. local script = Instance.new('LocalScript', Settings)
  2455.  
  2456. local SettingsButton = script.Parent
  2457. local GUIFrame = SettingsButton.Parent
  2458. SettingsButton.Visible = false
  2459. SettingsButton.MouseButton1Click:Connect(function()
  2460. GUIFrame.MainTab.Visible = true
  2461. SettingsButton.Visible = false
  2462. GUIFrame.SettingsTab.Visible = false
  2463. GUIFrame.BackIcon.Visible = false
  2464. end)
  2465. end
  2466. coroutine.wrap(SGKS_fake_script)()
  2467. local function EYWK_fake_script() -- CheckBox.LocalScript
  2468. local script = Instance.new('LocalScript', CheckBox)
  2469.  
  2470. local BackIcon = script.Parent
  2471. BackIcon.Text = utf8.char(10003)
  2472. end
  2473. coroutine.wrap(EYWK_fake_script)()
  2474. local function HOCN_fake_script() -- BackIcon.LocalScript
  2475. local script = Instance.new('LocalScript', BackIcon)
  2476.  
  2477. local BackIcon = script.Parent
  2478. local GUIFrame = BackIcon.Parent
  2479. BackIcon.Text = utf8.char(8592)
  2480. BackIcon.MouseButton1Click:Connect(function()
  2481. GUIFrame.MainTab.Visible = true
  2482. BackIcon.Visible = false
  2483. GUIFrame.SettingsTab.Visible = false
  2484. GUIFrame.Settings.Visible = true
  2485. end)
  2486. end
  2487. coroutine.wrap(HOCN_fake_script)()
  2488.  
  2489. end)
  2490. Utils.AddLaunch("UIInit", function()
  2491. window = Library:CreateTab(GameName == "No Game Detected" and "Universal" or GameName)
  2492. end)
  2493. Utils.AddLaunch("SoundSpace", function()
  2494. local Game = window:AddSection("Main")
  2495. local Cubes = workspace.Client.Cubes
  2496. local cam = workspace.CurrentCamera
  2497. local AutoPlayer = Game:AddToggle("Auto Play")
  2498. local currentCamera = game:GetService("Workspace").CurrentCamera
  2499. local tweenservice = game:GetService("TweenService")
  2500. local localPlayer = game:GetService("Players").LocalPlayer
  2501. local client = game:GetService("Workspace").Client
  2502.  
  2503. local function getClosestCube()
  2504. local closestCube = nil
  2505. local shortestDistance = math.huge
  2506.  
  2507. for i, v in pairs(client.Cubes:GetChildren()) do
  2508. if v:IsA("BasePart") then
  2509. local magnitude = (v.Position - client.CameraPos.Position).magnitude
  2510. if magnitude < shortestDistance then
  2511. closestCube = v
  2512. shortestDistance = magnitude
  2513. end
  2514. end
  2515. end
  2516.  
  2517. return closestCube
  2518. end
  2519.  
  2520. game:GetService("RunService").RenderStepped:Connect(function()
  2521. if AutoPlayer.State then
  2522. pcall(function()
  2523. tweenservice:Create(currentCamera, TweenInfo.new(0.065, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {CFrame = CFrame.new(client.CameraPos.Position, getClosestCube().Position)}):Play()
  2524. end)
  2525. end
  2526. end)
  2527. end)
  2528. Utils.AddLaunch("OperationScorpion", function()
  2529. local Game = window:AddSection("Main")
  2530. local WS = Game:AddToggle("WalkSpeed")
  2531. while wait() do
  2532. if WS.State then
  2533. game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass"Humanoid".WalkSpeed = 100
  2534. end
  2535. end
  2536. end)
  2537. Utils.AddLaunch("KAT", function()
  2538. local section = window:AddSection("Main")
  2539. local silentaim = section:AddToggle("Aim Bot")
  2540. local localPlayer = game:GetService("Players").LocalPlayer
  2541. local joe = game:GetService("Workspace").CurrentCamera
  2542. local mouse = localPlayer:GetMouse()
  2543. local function getClosestPlayerToCursor(x, y)
  2544. local closestPlayer = nil
  2545. local shortestDistance = math.huge
  2546.  
  2547. for i, v in pairs(game:GetService("Players"):GetPlayers()) do
  2548. if v ~= localPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Head") then
  2549. local pos = joe:WorldToViewportPoint(v.Character.HumanoidRootPart.Position)
  2550. local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(x, y)).magnitude
  2551.  
  2552. if magnitude < shortestDistance then
  2553. closestPlayer = v
  2554. shortestDistance = magnitude
  2555. end
  2556. end
  2557. end
  2558.  
  2559. return closestPlayer
  2560. end
  2561.  
  2562. local mt = getrawmetatable(game)
  2563. local oldIndex = mt.__index
  2564. setreadonly(mt, false)
  2565. local newClose = newcclosure or function(f) return f end
  2566.  
  2567. mt.__index = newClose(function(t, k)
  2568. if silentaim.State then
  2569. if not checkcaller() and t == mouse and tostring(k) == "X" and string.find(getfenv(2).script.Name, "Client") and getClosestPlayerToCursor() then
  2570. local closest = getClosestPlayerToCursor(oldIndex(t, k), oldIndex(t, "Y")).Character.Head
  2571. local pos = joe:WorldToScreenPoint(closest.Position)
  2572. return pos.X
  2573. end
  2574. if not checkcaller() and t == mouse and tostring(k) == "Y" and string.find(getfenv(2).script.Name, "Client") and getClosestPlayerToCursor() then
  2575. local closest = getClosestPlayerToCursor(oldIndex(t, "X"), oldIndex(t, k)).Character.Head
  2576. local pos = joe:WorldToScreenPoint(closest.Position)
  2577. return pos.Y
  2578. end
  2579. if t == mouse and tostring(k) == "Hit" and string.find(getfenv(2).script.Name, "Client") and getClosestPlayerToCursor() then
  2580. return getClosestPlayerToCursor(mouse.X, mouse.Y).Character.Head.CFrame
  2581. end
  2582. end
  2583.  
  2584. return oldIndex(t, k)
  2585. end)
  2586. end)
  2587. Utils.AddLaunch("ElectricStateDarkRP", function()
  2588. local Game = window:AddSection("Main")
  2589. local WS = Game:AddToggle("WalkSpeed", function(toggle)
  2590. if not toggle then
  2591. pcall(function()
  2592. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  2593. end)
  2594. end
  2595. end)
  2596. local pi = math.pi
  2597. local abs = math.abs
  2598. local clamp = math.clamp
  2599. local exp = math.exp
  2600. local rad = math.rad
  2601. local sign = math.sign
  2602. local sqrt = math.sqrt
  2603. local tan = math.tan
  2604.  
  2605. local ContextActionService = game:GetService("ContextActionService")
  2606. local Players = game:GetService("Players")
  2607. local RunService = game:GetService("RunService")
  2608. local StarterGui = game:GetService("StarterGui")
  2609. local UserInputService = game:GetService("UserInputService")
  2610. local Workspace = game:GetService("Workspace")
  2611.  
  2612. local LocalPlayer = Players.LocalPlayer
  2613. if not LocalPlayer then
  2614. Players:GetPropertyChangedSignal("LocalPlayer"):Wait()
  2615. LocalPlayer = Players.LocalPlayer
  2616. end
  2617.  
  2618. local Camera = Workspace.CurrentCamera
  2619. Workspace:GetPropertyChangedSignal("CurrentCamera"):Connect(function()
  2620. local newCamera = Workspace.CurrentCamera
  2621. if newCamera then
  2622. Camera = newCamera
  2623. end
  2624. end)
  2625.  
  2626. local TOGGLE_INPUT_PRIORITY = Enum.ContextActionPriority.Low.Value
  2627. local INPUT_PRIORITY = Enum.ContextActionPriority.High.Value
  2628.  
  2629. local NAV_GAIN = Vector3.new(1, 1, 1)*64
  2630. local PAN_GAIN = Vector2.new(0.75, 1)*8
  2631. local FOV_GAIN = 300
  2632.  
  2633. local PITCH_LIMIT = rad(90)
  2634.  
  2635. local VEL_STIFFNESS = 1.5
  2636. local PAN_STIFFNESS = 1.0
  2637. local FOV_STIFFNESS = 4.0
  2638.  
  2639.  
  2640. local Spring = {} do
  2641. Spring.__index = Spring
  2642.  
  2643. function Spring.new(freq, pos)
  2644. local self = setmetatable({}, Spring)
  2645. self.f = freq
  2646. self.p = pos
  2647. self.v = pos*0
  2648. return self
  2649. end
  2650.  
  2651. function Spring:Update(dt, goal)
  2652. local f = self.f*2*pi
  2653. local p0 = self.p
  2654. local v0 = self.v
  2655.  
  2656. local offset = goal - p0
  2657. local decay = exp(-f*dt)
  2658.  
  2659. local p1 = goal + (v0*dt - offset*(f*dt + 1))*decay
  2660. local v1 = (f*dt*(offset*f - v0) + v0)*decay
  2661.  
  2662. self.p = p1
  2663. self.v = v1
  2664.  
  2665. return p1
  2666. end
  2667.  
  2668. function Spring:Reset(pos)
  2669. self.p = pos
  2670. self.v = pos*0
  2671. end
  2672. end
  2673.  
  2674. local cameraPos = Vector3.new()
  2675. local cameraRot = Vector2.new()
  2676. local cameraFov = 0
  2677.  
  2678. local velSpring = Spring.new(VEL_STIFFNESS, Vector3.new())
  2679. local panSpring = Spring.new(PAN_STIFFNESS, Vector2.new())
  2680. local fovSpring = Spring.new(FOV_STIFFNESS, 0)
  2681.  
  2682. ------------------------------------------------------------------------
  2683.  
  2684. local Input = {} do
  2685. local thumbstickCurve do
  2686. local K_CURVATURE = 2.0
  2687. local K_DEADZONE = 0.15
  2688.  
  2689. local function fCurve(x)
  2690. return (exp(K_CURVATURE*x) - 1)/(exp(K_CURVATURE) - 1)
  2691. end
  2692.  
  2693. local function fDeadzone(x)
  2694. return fCurve((x - K_DEADZONE)/(1 - K_DEADZONE))
  2695. end
  2696.  
  2697. function thumbstickCurve(x)
  2698. return sign(x)*clamp(fDeadzone(abs(x)), 0, 1)
  2699. end
  2700. end
  2701.  
  2702. local gamepad = {
  2703. ButtonX = 0,
  2704. ButtonY = 0,
  2705. DPadDown = 0,
  2706. DPadUp = 0,
  2707. ButtonL2 = 0,
  2708. ButtonR2 = 0,
  2709. Thumbstick1 = Vector2.new(),
  2710. Thumbstick2 = Vector2.new(),
  2711. }
  2712.  
  2713. local keyboard = {
  2714. W = 0,
  2715. A = 0,
  2716. S = 0,
  2717. D = 0,
  2718. E = 0,
  2719. Q = 0,
  2720. U = 0,
  2721. H = 0,
  2722. J = 0,
  2723. K = 0,
  2724. I = 0,
  2725. Y = 0,
  2726. Up = 0,
  2727. Down = 0,
  2728. LeftShift = 0,
  2729. RightShift = 0,
  2730. }
  2731.  
  2732. local mouse = {
  2733. Delta = Vector2.new(),
  2734. MouseWheel = 0,
  2735. }
  2736.  
  2737. local NAV_GAMEPAD_SPEED = Vector3.new(1, 1, 1)
  2738. local NAV_KEYBOARD_SPEED = Vector3.new(1, 1, 1)
  2739. local PAN_MOUSE_SPEED = Vector2.new(1, 1)*(pi/64)
  2740. local PAN_GAMEPAD_SPEED = Vector2.new(1, 1)*(pi/8)
  2741. local FOV_WHEEL_SPEED = 1.0
  2742. local FOV_GAMEPAD_SPEED = 0.25
  2743. local NAV_ADJ_SPEED = 0.75
  2744. local NAV_SHIFT_MUL = 0.25
  2745.  
  2746. local navSpeed = 1
  2747.  
  2748. function Input.Vel(dt)
  2749. navSpeed = clamp(navSpeed + dt*(keyboard.Up - keyboard.Down)*NAV_ADJ_SPEED, 0.01, 4)
  2750.  
  2751. local kGamepad = Vector3.new(
  2752. thumbstickCurve(gamepad.Thumbstick1.x),
  2753. thumbstickCurve(gamepad.ButtonR2) - thumbstickCurve(gamepad.ButtonL2),
  2754. thumbstickCurve(-gamepad.Thumbstick1.y)
  2755. )*NAV_GAMEPAD_SPEED
  2756.  
  2757. local kKeyboard = Vector3.new(
  2758. keyboard.D - keyboard.A + keyboard.K - keyboard.H,
  2759. keyboard.E - keyboard.Q + keyboard.I - keyboard.Y,
  2760. keyboard.S - keyboard.W + keyboard.J - keyboard.U
  2761. )*NAV_KEYBOARD_SPEED
  2762.  
  2763. local shift = UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) or UserInputService:IsKeyDown(Enum.KeyCode.RightShift)
  2764.  
  2765. return (kGamepad + kKeyboard)*(navSpeed*(shift and NAV_SHIFT_MUL or 1))
  2766. end
  2767.  
  2768. function Input.Pan(dt)
  2769. local kGamepad = Vector2.new(
  2770. thumbstickCurve(gamepad.Thumbstick2.y),
  2771. thumbstickCurve(-gamepad.Thumbstick2.x)
  2772. )*PAN_GAMEPAD_SPEED
  2773. local kMouse = mouse.Delta*PAN_MOUSE_SPEED
  2774. mouse.Delta = Vector2.new()
  2775. return kGamepad + kMouse
  2776. end
  2777.  
  2778. function Input.Fov(dt)
  2779. local kGamepad = (gamepad.ButtonX - gamepad.ButtonY)*FOV_GAMEPAD_SPEED
  2780. local kMouse = mouse.MouseWheel*FOV_WHEEL_SPEED
  2781. mouse.MouseWheel = 0
  2782. return kGamepad + kMouse
  2783. end
  2784.  
  2785. do
  2786. local function Keypress(action, state, input)
  2787. keyboard[input.KeyCode.Name] = state == Enum.UserInputState.Begin and 1 or 0
  2788. return Enum.ContextActionResult.Sink
  2789. end
  2790.  
  2791. local function GpButton(action, state, input)
  2792. gamepad[input.KeyCode.Name] = state == Enum.UserInputState.Begin and 1 or 0
  2793. return Enum.ContextActionResult.Sink
  2794. end
  2795.  
  2796. local function MousePan(action, state, input)
  2797. local delta = input.Delta
  2798. mouse.Delta = Vector2.new(-delta.y, -delta.x)
  2799. return Enum.ContextActionResult.Sink
  2800. end
  2801.  
  2802. local function Thumb(action, state, input)
  2803. gamepad[input.KeyCode.Name] = input.Position
  2804. return Enum.ContextActionResult.Sink
  2805. end
  2806.  
  2807. local function Trigger(action, state, input)
  2808. gamepad[input.KeyCode.Name] = input.Position.z
  2809. return Enum.ContextActionResult.Sink
  2810. end
  2811.  
  2812. local function MouseWheel(action, state, input)
  2813. mouse[input.UserInputType.Name] = -input.Position.z
  2814. return Enum.ContextActionResult.Sink
  2815. end
  2816.  
  2817. local function Zero(t)
  2818. for k, v in pairs(t) do
  2819. t[k] = v*0
  2820. end
  2821. end
  2822.  
  2823. function Input.StartCapture()
  2824. ContextActionService:BindActionAtPriority("FreecamKeyboard", Keypress, false, INPUT_PRIORITY,
  2825. Enum.KeyCode.W, Enum.KeyCode.U,
  2826. Enum.KeyCode.A, Enum.KeyCode.H,
  2827. Enum.KeyCode.S, Enum.KeyCode.J,
  2828. Enum.KeyCode.D, Enum.KeyCode.K,
  2829. Enum.KeyCode.E, Enum.KeyCode.I,
  2830. Enum.KeyCode.Q, Enum.KeyCode.Y,
  2831. Enum.KeyCode.Up, Enum.KeyCode.Down
  2832. )
  2833. ContextActionService:BindActionAtPriority("FreecamMousePan", MousePan, false, INPUT_PRIORITY, Enum.UserInputType.MouseMovement)
  2834. ContextActionService:BindActionAtPriority("FreecamMouseWheel", MouseWheel, false, INPUT_PRIORITY, Enum.UserInputType.MouseWheel)
  2835. ContextActionService:BindActionAtPriority("FreecamGamepadButton", GpButton, false, INPUT_PRIORITY, Enum.KeyCode.ButtonX, Enum.KeyCode.ButtonY)
  2836. ContextActionService:BindActionAtPriority("FreecamGamepadTrigger", Trigger, false, INPUT_PRIORITY, Enum.KeyCode.ButtonR2, Enum.KeyCode.ButtonL2)
  2837. ContextActionService:BindActionAtPriority("FreecamGamepadThumbstick", Thumb, false, INPUT_PRIORITY, Enum.KeyCode.Thumbstick1, Enum.KeyCode.Thumbstick2)
  2838. end
  2839.  
  2840. function Input.StopCapture()
  2841. navSpeed = 1
  2842. Zero(gamepad)
  2843. Zero(keyboard)
  2844. Zero(mouse)
  2845. ContextActionService:UnbindAction("FreecamKeyboard")
  2846. ContextActionService:UnbindAction("FreecamMousePan")
  2847. ContextActionService:UnbindAction("FreecamMouseWheel")
  2848. ContextActionService:UnbindAction("FreecamGamepadButton")
  2849. ContextActionService:UnbindAction("FreecamGamepadTrigger")
  2850. ContextActionService:UnbindAction("FreecamGamepadThumbstick")
  2851. end
  2852. end
  2853. end
  2854.  
  2855. local function GetFocusDistance(cameraFrame)
  2856. local znear = 0.1
  2857. local viewport = Camera.ViewportSize
  2858. local projy = 2*tan(cameraFov/2)
  2859. local projx = viewport.x/viewport.y*projy
  2860. local fx = cameraFrame.rightVector
  2861. local fy = cameraFrame.upVector
  2862. local fz = cameraFrame.lookVector
  2863.  
  2864. local minVect = Vector3.new()
  2865. local minDist = 512
  2866.  
  2867. for x = 0, 1, 0.5 do
  2868. for y = 0, 1, 0.5 do
  2869. local cx = (x - 0.5)*projx
  2870. local cy = (y - 0.5)*projy
  2871. local offset = fx*cx - fy*cy + fz
  2872. local origin = cameraFrame.p + offset*znear
  2873. local _, hit = Workspace:FindPartOnRay(Ray.new(origin, offset.unit*minDist))
  2874. local dist = (hit - origin).magnitude
  2875. if minDist > dist then
  2876. minDist = dist
  2877. minVect = offset.unit
  2878. end
  2879. end
  2880. end
  2881.  
  2882. return fz:Dot(minVect)*minDist
  2883. end
  2884.  
  2885.  
  2886. local function StepFreecam(dt)
  2887. local vel = velSpring:Update(dt, Input.Vel(dt))
  2888. local pan = panSpring:Update(dt, Input.Pan(dt))
  2889. local fov = fovSpring:Update(dt, Input.Fov(dt))
  2890.  
  2891. local zoomFactor = sqrt(tan(rad(70/2))/tan(rad(cameraFov/2)))
  2892.  
  2893. cameraFov = clamp(cameraFov + fov*FOV_GAIN*(dt/zoomFactor), 1, 120)
  2894. cameraRot = cameraRot + pan*PAN_GAIN*(dt/zoomFactor)
  2895. cameraRot = Vector2.new(clamp(cameraRot.x, -PITCH_LIMIT, PITCH_LIMIT), cameraRot.y%(2*pi))
  2896.  
  2897. local cameraCFrame = CFrame.new(cameraPos)*CFrame.fromOrientation(cameraRot.x, cameraRot.y, 0)*CFrame.new(vel*NAV_GAIN*dt)
  2898. cameraPos = cameraCFrame.p
  2899.  
  2900. Camera.CFrame = cameraCFrame
  2901. Camera.Focus = cameraCFrame*CFrame.new(0, 0, -GetFocusDistance(cameraCFrame))
  2902. Camera.FieldOfView = cameraFov
  2903. end
  2904.  
  2905.  
  2906. local PlayerState = {} do
  2907. local mouseBehavior
  2908. local mouseIconEnabled
  2909. local cameraType
  2910. local cameraFocus
  2911. local cameraCFrame
  2912. local cameraFieldOfView
  2913. local screenGuis = {}
  2914. local coreGuis = {
  2915. Backpack = true,
  2916. Chat = true,
  2917. Health = true,
  2918. PlayerList = true,
  2919. }
  2920. local setCores = {
  2921. BadgesNotificationsActive = true,
  2922. PointsNotificationsActive = true,
  2923. }
  2924.  
  2925. function PlayerState.Push()
  2926. for name in pairs(coreGuis) do
  2927. coreGuis[name] = StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType[name])
  2928. StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType[name], false)
  2929. end
  2930. for name in pairs(setCores) do
  2931. setCores[name] = StarterGui:GetCore(name)
  2932. StarterGui:SetCore(name, false)
  2933. end
  2934. local playergui = LocalPlayer:FindFirstChildOfClass("PlayerGui")
  2935. if playergui then
  2936. for _, gui in pairs(playergui:GetChildren()) do
  2937. if gui:IsA("ScreenGui") and gui.Enabled then
  2938. screenGuis[#screenGuis + 1] = gui
  2939. gui.Enabled = false
  2940. end
  2941. end
  2942. end
  2943.  
  2944. cameraFieldOfView = Camera.FieldOfView
  2945. Camera.FieldOfView = 70
  2946.  
  2947. cameraType = Camera.CameraType
  2948. Camera.CameraType = Enum.CameraType.Custom
  2949.  
  2950. cameraCFrame = Camera.CFrame
  2951. cameraFocus = Camera.Focus
  2952.  
  2953. mouseIconEnabled = UserInputService.MouseIconEnabled
  2954. UserInputService.MouseIconEnabled = false
  2955.  
  2956. mouseBehavior = UserInputService.MouseBehavior
  2957. UserInputService.MouseBehavior = Enum.MouseBehavior.Default
  2958. end
  2959.  
  2960. function PlayerState.Pop()
  2961. for name, isEnabled in pairs(coreGuis) do
  2962. StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType[name], isEnabled)
  2963. end
  2964. for name, isEnabled in pairs(setCores) do
  2965. StarterGui:SetCore(name, isEnabled)
  2966. end
  2967. for _, gui in pairs(screenGuis) do
  2968. if gui.Parent then
  2969. gui.Enabled = true
  2970. end
  2971. end
  2972.  
  2973. Camera.FieldOfView = cameraFieldOfView
  2974. cameraFieldOfView = nil
  2975.  
  2976. Camera.CameraType = cameraType
  2977. cameraType = nil
  2978.  
  2979. Camera.CFrame = cameraCFrame
  2980. cameraCFrame = nil
  2981.  
  2982. Camera.Focus = cameraFocus
  2983. cameraFocus = nil
  2984.  
  2985. UserInputService.MouseIconEnabled = mouseIconEnabled
  2986. mouseIconEnabled = nil
  2987.  
  2988. UserInputService.MouseBehavior = mouseBehavior
  2989. mouseBehavior = nil
  2990. end
  2991. end
  2992.  
  2993. local function StartFreecam()
  2994. local cameraCFrame = Camera.CFrame
  2995. cameraRot = Vector2.new(cameraCFrame:toEulerAnglesYXZ())
  2996. cameraPos = cameraCFrame.p
  2997. cameraFov = Camera.FieldOfView
  2998.  
  2999. velSpring:Reset(Vector3.new())
  3000. panSpring:Reset(Vector2.new())
  3001. fovSpring:Reset(0)
  3002.  
  3003. PlayerState.Push()
  3004. RunService:BindToRenderStep("Freecam", Enum.RenderPriority.Camera.Value, StepFreecam)
  3005. Input.StartCapture()
  3006. end
  3007.  
  3008. local function StopFreecam()
  3009. Input.StopCapture()
  3010. RunService:UnbindFromRenderStep("Freecam")
  3011. PlayerState.Pop()
  3012. end
  3013.  
  3014. local function ToggleFreecam(fe)
  3015. if fe then
  3016. StartFreecam()
  3017. else
  3018. StopFreecam()
  3019. end
  3020. end
  3021. local t = false
  3022.  
  3023. local function scan(z,t)
  3024. for _,i in pairs(z:GetChildren()) do
  3025. if i:IsA("BasePart") and not i.Parent:FindFirstChild("Humanoid") and not i.Parent.Parent:FindFirstChild("Humanoid") then
  3026. i.LocalTransparencyModifier = t
  3027. end
  3028. scan(i,t)
  3029. end
  3030. end
  3031.  
  3032. function Xray(v)
  3033. if v then
  3034. scan(workspace, 0.5)
  3035. else
  3036. scan(workspace, 0)
  3037. end
  3038. end
  3039. local WSVal = Game:AddSlider("WalkSpeed Value", 16, 400)
  3040. Game:AddToggle("FreeCam", function(toggle)
  3041. ToggleFreecam(toggle)
  3042. end)
  3043. Game:AddToggle("Wall Xray", function(toggle)
  3044. Xray(toggle)
  3045. end)
  3046. local GameMT, Backups = getrawmetatable(game), {}
  3047. setreadonly(GameMT, false)
  3048. for i, v in next, GameMT do Backups[i] = v end
  3049. GameMT.__index = newcclosure(function(t, k)
  3050. if k == "WalkSpeed" and not checkcaller() then
  3051. return 16
  3052. end
  3053. return Backups.__index(t, k)
  3054. end)
  3055. setreadonly(GameMT, true)
  3056. loopAPI:CreateLoop("SpeedLoop", wait, function()
  3057. pcall(function()
  3058. if WS.State then
  3059. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = WSVal.Value
  3060. end
  3061. end)
  3062. end, true)
  3063. end)
  3064. Utils.AddLaunch("Strucid", function()
  3065. local Game = window:AddSection("Main")
  3066. local SlientAim = Game:AddToggle("Slient Aim")
  3067. local InputService = game:GetService"UserInputService"
  3068. local PlayerService = game:GetService"Players"
  3069. local Client = PlayerService.LocalPlayer
  3070. local Mouse = Client:GetMouse()
  3071. local Camera = workspace.CurrentCamera
  3072.  
  3073. local Shooting = false
  3074.  
  3075. InputService.InputBegan:connect(function(input)
  3076. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  3077. Shooting = true
  3078. end
  3079. end)
  3080. InputService.InputEnded:connect(function(input)
  3081. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  3082. Shooting = false
  3083. end
  3084. end)
  3085.  
  3086. local function getClosestPlayerToCursor()
  3087. local closestPlayer = nil
  3088. local shortestDistance = math.huge
  3089.  
  3090. for i, v in pairs(game:GetService("Players"):GetPlayers()) do
  3091. if v ~= Client and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Head") then
  3092. local pos = Camera:WorldToViewportPoint(v.Character.HumanoidRootPart.Position)
  3093. local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(Mouse.X, Mouse.Y)).magnitude
  3094.  
  3095. if magnitude < shortestDistance then
  3096. closestPlayer = v
  3097. shortestDistance = magnitude
  3098. end
  3099. end
  3100. end
  3101.  
  3102. if closestPlayer then
  3103. return closestPlayer.Character.Head.CFrame
  3104. else
  3105. return CFrame.new()
  3106. end
  3107. end
  3108.  
  3109. local mt = getrawmetatable(game)
  3110. old_call = mt.__namecall
  3111. old_index = mt.__index
  3112. setreadonly(mt, false)
  3113.  
  3114. mt.__index = newcclosure(function(t,i)
  3115.  
  3116. if Shooting then
  3117. if t == Mouse and i == "Hit" and SlientAim.State then
  3118. return getClosestPlayerToCursor()
  3119. end
  3120. end
  3121.  
  3122. return old_index(t, i)
  3123. end)
  3124. end)
  3125. Utils.AddLaunch("BigPaintball", function()
  3126. local section = window:AddSection("Main")
  3127. local walkspeed = section:AddButton("Walkspeed", function()
  3128. local mt = getrawmetatable(game)
  3129. setreadonly(mt,false)
  3130. local indexBackup = mt.__index
  3131. mt.__index = function(a,b)
  3132. if b == "Position" and a.Parent == game.Players.LocalPlayer.Character then
  3133. return nil
  3134. end
  3135. return indexBackup(a,b)
  3136. end
  3137. while wait() do
  3138. game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass"Humanoid".WalkSpeed = 100
  3139. end
  3140. end)
  3141. local hitbox = section:AddToggle("Larger Hitbox")
  3142. while wait() do
  3143. if hitbox.State then
  3144. local asd = workspace:getDescendants()
  3145. for f=1,#asd do
  3146. if asd[f].Name == "Hitbox" then
  3147. if asd[f].Parent.Name ~= game.Players.LocalPlayer.Name then
  3148. asd[f].Massless = true
  3149. asd[f].Size = Vector3.new(50,50,50)
  3150. asd[f].Transparency = 0.5
  3151. end
  3152. end
  3153. end
  3154. end
  3155. end
  3156. end)
  3157. Utils.AddLaunch("AdventureUp", function()
  3158. local section = window:AddSection("Main")
  3159. local KillAura = section:AddToggle("Kill Aura")
  3160. while wait() do
  3161. if KillAura.State then
  3162. for i,v in pairs(workspace:GetChildren()) do
  3163. if v.ClassName == "Folder" then
  3164. for i,f in pairs(v:GetChildren()) do
  3165. if f.ClassName == "Folder" then
  3166. for i, mob in pairs(f:GetChildren()) do
  3167. if mob.ClassName == "Model" then
  3168. if mob:FindFirstChild("HumanoidRootPart") and mob:FindFirstChild("Humanoid") and mob.Humanoid.Health > 0 and (mob.HumanoidRootPart.Position - game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude < 30 then
  3169. mob.Humanoid.Health = 0
  3170. end
  3171. end
  3172. end
  3173. end
  3174. end
  3175. end
  3176. end
  3177. end
  3178. end
  3179. end)
  3180. Utils.AddLaunch("Arsenal", function()
  3181. local section = window:AddSection("Main")
  3182. local obama = getsenv(game.Players.LocalPlayer.PlayerGui.GUI.Client)
  3183. local gunmod = section:AddToggle("Gun Mod")
  3184. loopAPI:CreateLoop("Gun Mod", wait, function()
  3185. if gunmod.State then
  3186. obama.ammocount = 999
  3187. obama.ammocount2 = 999
  3188. obama.ammocount4 = 999
  3189. obama.ammocount4 = 999
  3190. obama.currentspread = 0
  3191. obama.recoil = 0
  3192. obama.spread = 0
  3193. obama.mode = "automatic"
  3194. obama.inducefalldamage = function(...) return nil end
  3195. end
  3196. end, true)
  3197. local bhop = section:AddToggle("Bhop")
  3198. local MT = getrawmetatable(game)
  3199. local OldNameCall = MT.__namecall
  3200. setreadonly(MT, false)
  3201. MT.__namecall = newcclosure(function(self, ...)
  3202. local Method = getnamecallmethod()
  3203. local Args = {...}
  3204. local shouldReturn = true
  3205. if Method == "Kick" then
  3206. shouldReturn = false
  3207. end
  3208. if shouldReturn then
  3209. return OldNameCall(self, unpack(Args))
  3210. end
  3211. end)
  3212. setreadonly(MT, true)
  3213. while wait() do
  3214. if bhop.State then
  3215. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 43
  3216. game.Players.LocalPlayer.Character.Humanoid.Jump = true
  3217. end
  3218. end
  3219. end)
  3220. Utils.AddLaunch("Hub", function()
  3221. if GameName == "Prison Life" then
  3222. UIInit.launch()
  3223. PrisonLife.launch()
  3224. Universal.launch()
  3225. elseif GameName == "Sound Space" then
  3226. local ts = game:GetService'TextService'
  3227. local uis = game:GetService'UserInputService'
  3228. local HttpService = game:GetService("HttpService")
  3229. local ui = setmetatable({sg = Instance.new('ScreenGui',game.CoreGui),opened=true},{__metatable = function(a) print(a) end})
  3230.  
  3231. -- Data
  3232. local Settings = {}
  3233. if isfile('eski.json') then
  3234. Settings = HttpService:JSONDecode(readfile('eski.json'))
  3235. end
  3236. local Keybinds = {}
  3237. local ExcludeFromMinimize = {}
  3238. -- Functions
  3239. local function tabletostring(tbl)
  3240. local a = ''
  3241. for i,v in pairs(tbl) do
  3242. a = a..tostring(v)..','
  3243. end
  3244. return a
  3245. end
  3246. local KeybindHandler = uis.InputBegan:connect(function(key)
  3247. for i,v in pairs(Keybinds) do
  3248. if key.KeyCode == Enum.KeyCode[i] then
  3249. for _,k in pairs(v) do
  3250. for _,func in pairs(k) do
  3251. spawn(func)
  3252. end
  3253. end
  3254. end
  3255. end
  3256. end)
  3257. local function AddKeybind(Key,name,func)
  3258. if not Keybinds[Key] then
  3259. Keybinds[Key] = {{[name]=func}}
  3260. else
  3261. table.insert(Keybinds[Key],{[name]=func})
  3262. end
  3263. end
  3264. local function RemoveKeybind(name)
  3265. for i,v in pairs(Keybinds) do
  3266. for c,k in pairs(v) do
  3267. for namee,func in pairs(k) do
  3268. if namee == name then
  3269. table.remove(v,c)
  3270. end
  3271. end
  3272. end
  3273. end
  3274. end
  3275.  
  3276. --AddKeybind('F','Eski',function() print'hi' end)
  3277. --RemoveKeybind('Eski')
  3278.  
  3279. local function new(obj,props)
  3280. local _obj = Instance.new(obj)
  3281. for Index,Value in pairs(props) do
  3282. if type(Value) == 'function' then
  3283. Value(_obj)
  3284. else
  3285. _obj[Index]=Value
  3286. end
  3287. end
  3288. return _obj
  3289. end
  3290. -- new('Frame',{Size=UDim2.new()})
  3291. function Roundify(gui,px)
  3292. local Frame = new('ImageLabel',{
  3293. ZIndex = gui.ZIndex,
  3294. Name = math.random(1420420,99999999),
  3295. ImageColor3 = gui.BackgroundColor3,
  3296. BackgroundTransparency = 1,
  3297. Position = UDim2.new(0, 0, 0, 0),
  3298. Size = UDim2.new(1,0,1,0),
  3299. Image = "rbxassetid://3570695787",
  3300. ScaleType = Enum.ScaleType.Slice,
  3301. SliceCenter = Rect.new(100, 100, 100, 100),
  3302. SliceScale = (px and px/100 or .06),
  3303. Parent = gui,
  3304. })
  3305. gui.ZIndex = gui.ZIndex + 1
  3306. gui.BackgroundTransparency = 1
  3307. end
  3308. -- Roundify(GUIObj, pixels)
  3309. local function FixPosition() -- for multiple ui:new() objs
  3310. local ScreenSize = workspace.CurrentCamera.ViewportSize
  3311. local x,y = ScreenSize.X, ScreenSize.Y
  3312. local curx,cury = 10,10
  3313. for i,v in pairs(ui.sg:GetChildren()) do
  3314. if not ((curx + v.AbsoluteSize.X + 10) > x) then
  3315. v.Position = UDim2.new(0,curx,0,cury)
  3316. curx = curx + v.AbsoluteSize.X + 10
  3317. else
  3318. curx = 10
  3319. cury = cury + 260
  3320. v.Position = UDim2.new(0,curx,0,cury)
  3321. curx = curx + v.AbsoluteSize.X + 10
  3322. end
  3323. end
  3324. end
  3325. -- UI
  3326. local Menus = {}
  3327. function ui:new(name,double)
  3328. local Title = new('TextButton',{
  3329. Draggable = true,
  3330. BackgroundColor3 = Color3.fromRGB(53,138,242),
  3331. BorderSizePixel = 0,
  3332. AutoButtonColor = false,
  3333. Text = " Atorify's Hub ".."- "..name[1],
  3334. TextColor3 = Color3.new(1,1,1),
  3335. TextXAlignment = 'Left',
  3336. Font = 'Highway',
  3337. TextSize = 15,
  3338. Size = UDim2.new(0,220,0,30),
  3339. Position = UDim2.new(0,20+230*#self.sg:GetChildren(),0.1,0),
  3340. Parent = self.sg
  3341. })
  3342. table.insert(Menus,Title)
  3343. FixPosition()
  3344. local Background = new('ScrollingFrame',{
  3345. Size = UDim2.new(1,0,0,220),
  3346. Position = UDim2.new(0,0,1,0),
  3347. BackgroundColor3 = Color3.fromRGB(40,40,40),
  3348. BorderSizePixel = 0,
  3349. ScrollBarImageColor3 = Color3.fromRGB(99,99,99),
  3350. TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png",
  3351. BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png",
  3352. CanvasSize = UDim2.new(1,0,0,600),
  3353. Parent = Title,
  3354. })
  3355. if double then
  3356. Title.Size = UDim2.new(0,220*2+10,0,30)
  3357. local Left = new('Frame',{
  3358. BackgroundTransparency = 1,
  3359. Size = UDim2.new(.5,0,1,0),
  3360. Parent = Background,
  3361. Name = 'Left',
  3362. })
  3363. local Right = Left:Clone()
  3364. Right.Parent = Background
  3365. Right.Position = UDim2.new(0.5,0,0,0)
  3366. Right.Name = 'Right'
  3367. end
  3368.  
  3369. local function SetNextPos(Gui)
  3370. if not double then
  3371. if #Background:GetChildren() == 1 then
  3372. Gui.Position = UDim2.new(0,5,0,5)
  3373. else
  3374. local DroppedPos = 0
  3375. for i,v in pairs(Background:GetChildren()) do
  3376. local num = (v.AbsoluteSize.Y + v.Position.Y.Offset) + 5
  3377. if num > DroppedPos and v ~= Gui then
  3378. DroppedPos = num
  3379. end
  3380. end
  3381. Gui.Position = UDim2.new(0,5,0,DroppedPos)
  3382. Gui.Parent.CanvasSize = UDim2.new(1,0,0,DroppedPos + Gui.AbsoluteSize.Y + 10)
  3383. end
  3384. else
  3385. if #Gui.Parent:GetChildren() == 1 then
  3386. Gui.Position = UDim2.new(0,5,0,5)
  3387. else
  3388. local DroppedPos = 0
  3389. for i,v in pairs(Gui.Parent:GetChildren()) do
  3390. local num = (v.AbsoluteSize.Y + v.Position.Y.Offset) + 5
  3391. if num > DroppedPos and v ~= Gui then
  3392. DroppedPos = num
  3393. end
  3394. end
  3395. Gui.Position = UDim2.new(0,5,0,DroppedPos)
  3396. end
  3397. if Gui.Parent.Name == 'Right' then
  3398. Gui.Position = Gui.Position - UDim2.new(0,8,0,0)
  3399. end
  3400. end
  3401. end
  3402. local ui = {}
  3403. ui.Button = function(name,callback,Side)
  3404. local Re = new('Frame',{
  3405. Size = UDim2.new(1,-20,0,25),
  3406. BackgroundColor3 = Color3.fromRGB(53,138,242),
  3407. BorderSizePixel = 0,
  3408. Parent = Background
  3409. })
  3410. if double then
  3411. Re.Parent = (Side and Background['Left'] or Background['Right'])
  3412. end
  3413. SetNextPos(Re)
  3414. Roundify(Re,3)
  3415. local Toggle = new('TextButton',{
  3416. Size = UDim2.new(1,-2,1,-4),
  3417. Position = UDim2.new(0,1,0,1),
  3418. BackgroundColor3 = Color3.fromRGB(40,40,40),
  3419. BorderSizePixel = 0,
  3420. AutoButtonColor = false,
  3421. Text = name,
  3422. TextColor3 = Color3.new(1,1,1),
  3423. TextSize = 8,
  3424. Parent = Re,
  3425. })
  3426. Roundify(Toggle,3)
  3427. Toggle.MouseButton1Down:connect(callback)
  3428. end
  3429. ui.Label = function(Name,Side)
  3430. local Re = new('TextLabel',{
  3431. Size = UDim2.new(1,-15,0,15),
  3432. BackgroundTransparency = 1,
  3433. BorderSizePixel = 0,
  3434. Text=Name,
  3435. TextColor3 = Color3.new(1,1,1),
  3436. TextSize = 8,
  3437. Parent = Background
  3438. })
  3439. if double then
  3440. Re.Parent = (Side and Background['Left'] or Background['Right'])
  3441. end
  3442. SetNextPos(Re)
  3443. end
  3444. ui.Toggle = function(name,global,Side)
  3445. local Toggle = new('TextButton',{
  3446. Size = UDim2.new(0,15,0,15),
  3447. BackgroundColor3 = Color3.fromRGB(53,138,242),
  3448. BorderSizePixel = 0,
  3449. AutoButtonColor = false,
  3450. Text = '',
  3451. Font = 'GothamBold',
  3452. TextSize = 14,
  3453. TextColor3 = Color3.fromRGB(40,40,40),
  3454. Parent = Background,
  3455. })
  3456. Roundify(Toggle,3)
  3457. if double then
  3458. Toggle.Parent = (Side and Background['Left'] or Background['Right'])
  3459. end
  3460. SetNextPos(Toggle)
  3461. local RToggle = new('Frame',{
  3462. Size = UDim2.new(0.9,0,.9,0),
  3463. Position = UDim2.new(0.05,0,.05,0),
  3464. BackgroundColor3 = Color3.fromRGB(40,40,40),
  3465. BorderSizePixel = 0,
  3466. Parent = Toggle
  3467. })
  3468. Roundify(RToggle,3)
  3469. local Label = new('TextLabel',{
  3470. Size = UDim2.new(0,ts:GetTextSize(name,12,'Arial',Vector2.new(999,999)).X,0,15),
  3471. Position = UDim2.new(1,5,0,1),
  3472. Text = name,
  3473. TextSize = 12,
  3474. Font = 'Arial',
  3475. TextColor3 = Color3.new(1,1,1),
  3476. BackgroundTransparency = 1,
  3477. Parent = Toggle
  3478. })
  3479. Toggle.MouseButton1Down:connect(function()
  3480. RToggle.Visible = not RToggle.Visible
  3481. Settings[global]= not RToggle.Visible
  3482. print(not RToggle.Visible)
  3483. end)
  3484. end
  3485. ui.Slider = function(name,global,float,Max,Side)
  3486. local Bg = new('Frame',{
  3487. Size = UDim2.new(1,-20,0,55),
  3488. BackgroundColor3=Color3.fromRGB(53,138,242),--Color3.fromRGB(53,138,242)
  3489. Parent = Background
  3490. })
  3491. Roundify(Bg,3)
  3492. local BG = new('Frame',{
  3493. Size = UDim2.new(1,-2,1,-2),
  3494. Position = UDim2.new(0,1,0,1),
  3495. BackgroundColor3 = Color3.fromRGB(40,40,40),
  3496. Parent = Bg,
  3497. })
  3498. local Label = new('TextLabel',{
  3499. Position = UDim2.new(0,10,0,2),
  3500. Size = UDim2.new(.8,0,0,15),
  3501. Text = name,
  3502. TextXAlignment = 'Left',
  3503. TextSize = 8,
  3504. TextColor3 = Color3.new(1,1,1),
  3505. Parent = BG
  3506. })
  3507. Label.Text = string.format(name,0)
  3508. Roundify(BG,3)
  3509. Roundify(Label,3)
  3510. if double then
  3511. Bg.Parent = (Side and Background['Left'] or Background['Right'])
  3512. end
  3513. SetNextPos(Bg)
  3514.  
  3515. local SliderBar = new('Frame',{
  3516. Size = UDim2.new(.9,0,0,3),
  3517. Position = UDim2.new(.05,0,.6,0),
  3518. BackgroundColor3 = Color3.fromRGB(100,100,100),
  3519. Parent = BG,
  3520. })
  3521. Roundify(SliderBar,3)
  3522. local SliderBall = new('Frame',{
  3523. BackgroundColor3=Color3.fromRGB(53,138,242),
  3524. Position = UDim2.new(0,0,0.5,-7.5),
  3525. Size = UDim2.new(0,15,0,15),
  3526. Parent = SliderBar
  3527. })
  3528. Roundify(SliderBall,10)
  3529. SliderBall.Active = true
  3530. SliderBall.Draggable = true
  3531. SliderBall:GetPropertyChangedSignal'Position':connect(function()
  3532. SliderBall.Position = UDim2.new(0,math.clamp(SliderBall.Position.X.Offset,0,SliderBar.AbsoluteSize.X-10),0,-6.5)
  3533. if float then
  3534. local val = math.floor((SliderBall.Position.X.Offset/(SliderBar.AbsoluteSize.X-10))*Max)
  3535. Label.Text = string.format(name,val)
  3536. Settings[global]=val
  3537. else
  3538. local val = SliderBall.Position.X.Offset/(SliderBar.AbsoluteSize.X-10)
  3539. val = math.floor(val*Max*10)/10
  3540. Label.Text = string.format(name,val)
  3541. Settings[global]=val
  3542. end
  3543. end)
  3544. end
  3545. ui.CheckSlider = function(name,global,global2,float,Max,Side)
  3546. local Bg = new('Frame',{
  3547. Size = UDim2.new(1,-20,0,55),
  3548. BackgroundColor3=Color3.fromRGB(53,138,242),
  3549. Parent = Background
  3550. })
  3551. Roundify(Bg,3)
  3552. local BG = new('Frame',{
  3553. Size = UDim2.new(1,-2,1,-2),
  3554. Position = UDim2.new(0,1,0,1),
  3555. BackgroundColor3 = Color3.fromRGB(40,40,40),
  3556. Parent = Bg,
  3557. })
  3558. local Label = new('TextLabel',{
  3559. Position = UDim2.new(.15,0,0,5),
  3560. Size = UDim2.new(.8,0,0,15),
  3561. Text = name,
  3562. TextXAlignment = 'Left',
  3563. TextSize = 8,
  3564. TextColor3 = Color3.new(1,1,1),
  3565. Parent = BG
  3566. })
  3567. Label.Text = string.format(name,0)
  3568. Roundify(Label,3)
  3569. Roundify(BG,3)
  3570. if double then
  3571. Bg.Parent = (Side and Background['Left'] or Background['Right'])
  3572. end
  3573. SetNextPos(Bg)
  3574.  
  3575. local SliderBar = new('Frame',{
  3576. Size = UDim2.new(.9,0,0,3),
  3577. Position = UDim2.new(.05,0,.6,0),
  3578. BackgroundColor3 = Color3.fromRGB(100,100,100),
  3579. Parent = BG,
  3580. })
  3581. Roundify(SliderBar,3)
  3582. local SliderBall = new('Frame',{
  3583. BackgroundColor3=Color3.fromRGB(53,138,242),
  3584. Position = UDim2.new(0,0,0.5,-7.5),
  3585. Size = UDim2.new(0,15,0,15),
  3586. Parent = SliderBar
  3587. })
  3588. Roundify(SliderBall,10)
  3589. SliderBall.Active = true
  3590. SliderBall.Draggable = true
  3591. SliderBall:GetPropertyChangedSignal'Position':connect(function()
  3592. SliderBall.Position = UDim2.new(0,math.clamp(SliderBall.Position.X.Offset,0,SliderBar.AbsoluteSize.X-10),0,-6.5)
  3593. if float then
  3594. local val = math.floor((SliderBall.Position.X.Offset/(SliderBar.AbsoluteSize.X-10))*Max)
  3595. Label.Text = string.format(name,val)
  3596. Settings[global2]=val
  3597. else
  3598. local val = SliderBall.Position.X.Offset/(SliderBar.AbsoluteSize.X-10)
  3599. val = math.floor(val*Max*10)/10
  3600. Label.Text = string.format(name,val)
  3601. Settings[global2]=val
  3602. end
  3603. end)
  3604. local Toggle = new('TextButton',{
  3605. Size = UDim2.new(0,15,0,15),
  3606. BackgroundColor3 = Color3.fromRGB(53,138,242),
  3607. BorderSizePixel = 0,
  3608. AutoButtonColor = false,
  3609. Text = '',
  3610. Position = UDim2.new(0,5,0,5),
  3611. Parent = BG,
  3612. })
  3613. Roundify(Toggle,3)
  3614. local RToggle = new('Frame',{
  3615. Size = UDim2.new(0.9,0,.9,0),
  3616. Position = UDim2.new(0.05,0,.05,0),
  3617. BackgroundColor3 = Color3.fromRGB(40,40,40),
  3618. BorderSizePixel = 0,
  3619. Parent = Toggle
  3620. })
  3621. Roundify(RToggle,3)
  3622. Toggle.MouseButton1Down:connect(function()
  3623. RToggle.Visible = not RToggle.Visible
  3624. Settings[global]= not RToggle.Visible
  3625. print(not RToggle.Visible)
  3626. end)
  3627. end
  3628. ui.Keybind = function(name,func,Side)
  3629. local Toggle = new('TextButton',{
  3630. Size = UDim2.new(0,15,0,15),
  3631. BackgroundColor3 = Color3.fromRGB(53,138,242),
  3632. BorderSizePixel = 0,
  3633. AutoButtonColor = false,
  3634. Text = '',
  3635. Parent = Background,
  3636. })
  3637. Roundify(Toggle,3)
  3638. if double then
  3639. Toggle.Parent = (Side and Background['Left'] or Background['Right'])
  3640. end
  3641. SetNextPos(Toggle)
  3642. local RToggle = new('Frame',{
  3643. Size = UDim2.new(0.9,0,.9,0),
  3644. Position = UDim2.new(0.05,0,.05,0),
  3645. BackgroundColor3 = Color3.fromRGB(40,40,40),
  3646. BorderSizePixel = 0,
  3647. Parent = Toggle
  3648. })
  3649. Roundify(RToggle,3)
  3650. local Label = new('TextLabel',{
  3651. Size = UDim2.new(0,ts:GetTextSize(name,12,'Arial',Vector2.new(999,999)).X,0,15),
  3652. Position = UDim2.new(1,5,0,1),
  3653. Text = name,
  3654. TextSize = 12,
  3655. Font = 'Arial',
  3656. TextColor3 = Color3.new(1,1,1),
  3657. BackgroundTransparency = 1,
  3658. Parent = Toggle
  3659. })
  3660. local Key = new('TextLabel',{
  3661. Size = UDim2.new(0,30,1,0),
  3662. Position = UDim2.new(1,10,0,0),
  3663. BackgroundTransparency = 1,
  3664. Text = '',
  3665. TextXAlignment = 'Left',
  3666. TextSize = 12,
  3667. Font = 'Arial',
  3668. TextColor3 = Color3.new(1,1,1),
  3669. Parent = Label,
  3670. })
  3671. local newfunc = function()
  3672. if not RToggle.Visible then
  3673. spawn(func)
  3674. end
  3675. end
  3676. Toggle.MouseButton2Down:connect(function()
  3677. Key.Text = ''
  3678. local a = uis.InputBegan:wait()
  3679. local a = uis.InputBegan:wait()
  3680. for i=1,#tostring(a.KeyCode) do
  3681. if tostring(a.KeyCode):sub(i,i) == '.' then
  3682. Key.Text = tostring(a.KeyCode):sub(i+1)
  3683. end
  3684. end
  3685. RemoveKeybind(name)
  3686. AddKeybind(Key.Text,name,newfunc)
  3687. end)
  3688. Toggle.MouseButton1Down:connect(function()
  3689. RToggle.Visible = not RToggle.Visible
  3690. end)
  3691. end
  3692. ui.Input = function(name,global,numsonly,Side)
  3693. local Re = new('TextBox',{
  3694. Size = UDim2.new(0,60,0,23),
  3695. BackgroundColor3 = Color3.fromRGB(40,40,40),
  3696. BorderSizePixel = 0,
  3697. Text = name,
  3698. TextColor3 = Color3.new(1,1,1),
  3699. TextSize = 12,
  3700. Font='Arial',
  3701. Parent = Background
  3702. })
  3703. Re.Size = UDim2.new(0,60+ts:GetTextSize(Re.Text,12,'Arial',Vector2.new(999,999)).X,0,23)
  3704. if double then
  3705. Re.Parent = (Side and Background['Left'] or Background['Right'])
  3706. end
  3707. SetNextPos(Re)
  3708. Roundify(Re,3)
  3709. local Toggle = new('Frame',{
  3710. Size = UDim2.new(1,2,1,2),
  3711. Position = UDim2.new(0,-1,0,-1),
  3712. BackgroundColor3 = Color3.fromRGB(53,138,242),
  3713. BorderSizePixel = 0,
  3714. Parent = Re,
  3715. })
  3716. Roundify(Toggle,3)
  3717. Re.ZIndex = Re.ZIndex + 1
  3718. Re:GetChildren()[1].ZIndex = Re.ZIndex
  3719. Re.ZIndex = Re.ZIndex + 1
  3720. Re:GetPropertyChangedSignal'Text':connect(function()
  3721. if numsonly then
  3722. if type(tonumber(Re.Text)) ~= 'number' then
  3723. Re.PlaceholderText = '0'
  3724. Re.Text = ''
  3725. end
  3726. end
  3727. Re.Size = UDim2.new(0,60+ts:GetTextSize(Re.Text,12,'Arial',Vector2.new(999,999)).X,0,23)
  3728. Settings[global]=Re.Text
  3729. end)
  3730. end
  3731. ui.Label = function(Name,Side)
  3732. local Re = new('TextLabel',{
  3733. Size = UDim2.new(1,-15,0,15),
  3734. BackgroundTransparency = 1,
  3735. BorderSizePixel = 0,
  3736. Text=Name,
  3737. TextColor3 = Color3.new(1,1,1),
  3738. TextSize = 8,
  3739. Parent = Background
  3740. })
  3741. if double then
  3742. Re.Parent = (Side and Background['Left'] or Background['Right'])
  3743. end
  3744. SetNextPos(Re)
  3745. end
  3746. ui.Selection = function(name,global,data,Checkboxes,func,Side)
  3747. local selected = {}
  3748. local Re = new('Frame',{
  3749. Size = UDim2.new(1,-20,0,75),
  3750. BackgroundColor3 = Color3.fromRGB(53,138,242),
  3751. BorderSizePixel = 0,
  3752. Parent = Background
  3753. })
  3754. if double then
  3755. Re.Parent = (Side and Background['Left'] or Background['Right'])
  3756. end
  3757. SetNextPos(Re)
  3758. Roundify(Re,3)
  3759. local Toggle = new('Frame',{
  3760. Size = UDim2.new(1,-2,1,-2),
  3761. Position = UDim2.new(0,1,0,1),
  3762. BackgroundColor3 = Color3.fromRGB(40,40,40),
  3763. BorderSizePixel = 0,
  3764. Parent = Re,
  3765. })
  3766. local Label = new('TextLabel',{
  3767. Size = UDim2.new(1,0,0,10),
  3768. Position = UDim2.new(0,5,0,7),
  3769. BackgroundTransparency = 1,
  3770. Text = name:format('nil'),
  3771. TextColor3 = Color3.new(1,1,1),
  3772. TextSize = 8,
  3773. TextWrapped = true,
  3774. TextXAlignment = 'Left',
  3775. Parent = Re,
  3776. })
  3777. Label.ZIndex = Re.ZIndex
  3778. local Scroll = new('ScrollingFrame',{
  3779. Size = UDim2.new(1,0,1,-20),
  3780. Position = UDim2.new(0,0,0,20),
  3781. BackgroundTransparency = 1,
  3782. ScrollBarImageColor3 = Color3.fromRGB(99,99,99),
  3783. TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png",
  3784. BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png",
  3785. Parent = Re,
  3786. })
  3787. for i,v in pairs(data) do
  3788. if not Checkboxes then
  3789. local a = new('TextButton',{
  3790. Size = UDim2.new(1,0,0,15),
  3791. Position = UDim2.new(0,0,0,17*(#Scroll:GetChildren())+3),
  3792. Text = v,
  3793. TextColor3 = Color3.new(1,1,1),
  3794. TextSize = 8,
  3795. BackgroundTransparency=1,
  3796. Parent = Scroll,
  3797. })
  3798. a.MouseButton1Down:connect(function()
  3799. Label.Text = name:format(a.Text)
  3800. Settings[global]=a.Text
  3801. end)
  3802. Scroll.CanvasSize = UDim2.new(1,0,0,20*(#Scroll:GetChildren()))
  3803. else
  3804. local Toggle = new('TextButton',{
  3805. Size = UDim2.new(0,15,0,15),
  3806. Position = UDim2.new(0,5,0,20*#Scroll:GetChildren()+5),
  3807. BackgroundColor3 = Color3.fromRGB(53,138,242),
  3808. BorderSizePixel = 0,
  3809. AutoButtonColor = false,
  3810. Text = '',
  3811. Parent = Scroll,
  3812. })
  3813. Scroll.CanvasSize = UDim2.new(1,0,0,25*(#Scroll:GetChildren()))
  3814. Roundify(Toggle,3)
  3815. local RToggle = new('Frame',{
  3816. Size = UDim2.new(0.9,0,.9,0),
  3817. Position = UDim2.new(0.05,0,.05,0),
  3818. BackgroundColor3 = Color3.fromRGB(40,40,40),
  3819. BorderSizePixel = 0,
  3820. Parent = Toggle
  3821. })
  3822. Roundify(RToggle,3)
  3823. local Labell = new('TextLabel',{
  3824. Size = UDim2.new(0,ts:GetTextSize(name,12,'Arial',Vector2.new(999,999)).X,0,15),
  3825. Position = UDim2.new(1,5,0,1),
  3826. Text = v,
  3827. TextSize = 12,
  3828. Font = 'Arial',
  3829. TextColor3 = Color3.new(1,1,1),
  3830. BackgroundTransparency = 1,
  3831. Parent = Toggle
  3832. })
  3833. Toggle.MouseButton1Down:connect(function()
  3834. RToggle.Visible = not RToggle.Visible
  3835. if not RToggle.Visible then
  3836. local db = false
  3837. for i,v in pairs(selected) do
  3838. if v == Labell.Name then
  3839. db = true
  3840. end
  3841. end
  3842. if not db then selected[i]=v end
  3843. else
  3844. for i,k in pairs(selected) do
  3845. if k == v then
  3846. table.remove(selected,i)
  3847. end
  3848. end
  3849. end
  3850. Settings[global]= selected
  3851. local a = ts:GetTextSize(name:format(tabletostring(selected)),12,'Arial',Vector2.new(300,10))
  3852. if a.X > Label.AbsoluteSize.X then
  3853. Label.Text = name:format(#selected)
  3854. else
  3855. Label.Text = name:format(tabletostring(selected))
  3856. end
  3857.  
  3858. end)
  3859. end
  3860. end
  3861. end
  3862. ui.ColorPicker = function(name,global,ObjsToChange)
  3863. local Re = new('Frame',{
  3864. Size = UDim2.new(1,-20,0,125),
  3865. BackgroundColor3 = Color3.fromRGB(53,138,242),
  3866. BorderSizePixel = 0,
  3867. Parent = Background
  3868. })
  3869. if double then
  3870. Re.Parent = (Side and Background['Left'] or Background['Right'])
  3871. end
  3872. SetNextPos(Re)
  3873. Roundify(Re,3)
  3874. local Toggle = new('Frame',{
  3875. Size = UDim2.new(1,-2,1,-2),
  3876. Position = UDim2.new(0,1,0,1),
  3877. BackgroundColor3 = Color3.fromRGB(40,40,40),
  3878. BorderSizePixel = 0,
  3879. Parent = Re,
  3880. })
  3881. local Label = new('TextLabel',{
  3882. Size = UDim2.new(1,0,0,10),
  3883. Position = UDim2.new(0,5,0,7),
  3884. BackgroundTransparency = 1,
  3885. Text = name,
  3886. TextColor3 = Color3.new(1,1,1),
  3887. TextSize = 8,
  3888. TextXAlignment = 'Left',
  3889. Parent = Re,
  3890. })
  3891. end
  3892. return ui
  3893. end
  3894. --[[
  3895. ui:new( table{game (string),section (string)}, doublesized (bool))
  3896. ui.Label(name)
  3897. ui.Button(name,callback (function),Side (bool))
  3898. ui.Toggle(name,global,Side (bool))
  3899. ui.Slider(name,global,float (bool),Max (int),Side (bool))
  3900. ui.CheckSlider(name,globalForToggle ,globalForValue ,float (bool),Max (int),Side (bool))
  3901. ui.Keybind(name, function)
  3902. ui.Input(name, global, Numbers Only)
  3903. ui.Selection(name, global, table (str options),Checkboxes (bool), callback (function), Side (bool)
  3904.  
  3905. ]]
  3906. AddKeybind('RightShift','MenuToggle',function() ui.opened = not ui.opened for i,v in pairs(Menus) do if not ExcludeFromMinimize[v] then v.Visible = ui.opened end end end)
  3907.  
  3908. local a = ui:new({'Sound Space','Normal'},false)
  3909. a.Label("Auto-Player")
  3910. a.Button('Almost no misses', function()
  3911. local aimbotting = true
  3912. local tweenService = game:GetService("TweenService")
  3913. local currentCamera = game:GetService("Workspace").CurrentCamera
  3914. local localPlayer = game:GetService("Players").LocalPlayer
  3915. local client = game:GetService("Workspace").Client
  3916.  
  3917. local function getClosestCube()
  3918. local closestCube = nil
  3919. local shortestDistance = math.huge
  3920.  
  3921. for i, v in pairs(client.Cubes:GetChildren()) do
  3922. if v:IsA("BasePart") then
  3923. local magnitude = (v.Position - client.CameraPos.Position).magnitude
  3924.  
  3925. if magnitude < shortestDistance then
  3926. closestCube = v
  3927. shortestDistance = magnitude
  3928. end
  3929. end
  3930. end
  3931.  
  3932. return closestCube
  3933. end
  3934.  
  3935.  
  3936.  
  3937. game:GetService("RunService").RenderStepped:Connect(function()
  3938. if aimbotting then
  3939. pcall(function()
  3940. tweenService:Create(currentCamera, TweenInfo.new(-math.huge, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {CFrame = CFrame.new(client.CameraPos.Position, getClosestCube().Position)}):Play()
  3941. end)
  3942. end
  3943. end)
  3944. end)
  3945. a.Button('Less misses', function()
  3946. local aimbotting = true
  3947. local tweenService = game:GetService("TweenService")
  3948. local currentCamera = game:GetService("Workspace").CurrentCamera
  3949. local localPlayer = game:GetService("Players").LocalPlayer
  3950. local client = game:GetService("Workspace").Client
  3951.  
  3952. local function getClosestCube()
  3953. local closestCube = nil
  3954. local shortestDistance = math.huge
  3955.  
  3956. for i, v in pairs(client.Cubes:GetChildren()) do
  3957. if v:IsA("BasePart") then
  3958. local magnitude = (v.Position - client.CameraPos.Position).magnitude
  3959.  
  3960. if magnitude < shortestDistance then
  3961. closestCube = v
  3962. shortestDistance = magnitude
  3963. end
  3964. end
  3965. end
  3966.  
  3967. return closestCube
  3968. end
  3969.  
  3970.  
  3971.  
  3972. game:GetService("RunService").RenderStepped:Connect(function()
  3973. if aimbotting then
  3974. pcall(function()
  3975. tweenService:Create(currentCamera, TweenInfo.new(-1000, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {CFrame = CFrame.new(client.CameraPos.Position, getClosestCube().Position)}):Play()
  3976. end)
  3977. end
  3978. end)
  3979. end)
  3980. a.Button('Smoother but more misses', function()
  3981. local aimbotting = true
  3982. local tweenService = game:GetService("TweenService")
  3983. local currentCamera = game:GetService("Workspace").CurrentCamera
  3984. local localPlayer = game:GetService("Players").LocalPlayer
  3985. local client = game:GetService("Workspace").Client
  3986.  
  3987. local function getClosestCube()
  3988. local closestCube = nil
  3989. local shortestDistance = math.huge
  3990.  
  3991. for i, v in pairs(client.Cubes:GetChildren()) do
  3992. if v:IsA("BasePart") then
  3993. local magnitude = (v.Position - client.CameraPos.Position).magnitude
  3994.  
  3995. if magnitude < shortestDistance then
  3996. closestCube = v
  3997. shortestDistance = magnitude
  3998. end
  3999. end
  4000. end
  4001.  
  4002. return closestCube
  4003. end
  4004.  
  4005.  
  4006.  
  4007. game:GetService("RunService").RenderStepped:Connect(function()
  4008. if aimbotting then
  4009. pcall(function()
  4010. tweenService:Create(currentCamera, TweenInfo.new(0.065, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {CFrame = CFrame.new(client.CameraPos.Position, getClosestCube().Position)}):Play()
  4011. end)
  4012. end
  4013. end)
  4014. end)
  4015. elseif GameName == "Operation Scorpion" then
  4016. UIInit.launch()
  4017. OperationScorpion.launch()
  4018. Universal.launch()
  4019. elseif GameName == "Electric State DarkRP" then
  4020. UIInit.launch()
  4021. ElectricStateDarkRP.launch()
  4022. Universal.launch()
  4023. elseif GameName == "Strucid" then
  4024. UIInit.launch()
  4025. Strucid.launch()
  4026. Universal.launch()
  4027. elseif GameName == "Big Paintball" then
  4028. UIInit.launch()
  4029. Universal.launch()
  4030. BigPaintball.launch()
  4031. elseif GameName == "Adventure Up" then
  4032. UIInit.launch()
  4033. AdventureUp.launch()
  4034. elseif GameName == "KAT" then
  4035. UIInit.launch()
  4036. KAT.launch()
  4037. Universal.launch()
  4038. elseif GameName == "Arsenal" then
  4039. UIInit.launch()
  4040. Universal.launch()
  4041. Arsenal.launch()
  4042. elseif GameName == "Ninja Legends" then
  4043. UIInit.launch()
  4044. Universal.launch()
  4045. NinjaLegends.launch()
  4046. else
  4047. Universal.launch()
  4048. end
  4049. end)
  4050. HubLauncher.launch()
  4051. end)
Add Comment
Please, Sign In to add comment