Advertisement
plytalent

testXDUI

Dec 24th, 2020 (edited)
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.36 KB | None | 0 0
  1. if not _G.require then
  2. _G.require = require
  3. end
  4.  
  5. --// API References
  6. local GUIData = (function()
  7. -- Variables
  8. _V = 1.11
  9. local screenGui
  10. local err,errcode=pcall(function()
  11. screenGui = (script:FindFirstChild("ScreenGui")) or game:GetObjects("rbxassetid://2718157603")[1]:FindFirstChild("ScreenGui", true)
  12. end)
  13. if not err then
  14. print("ERR:",errcode)
  15. screenGui = game:GetService("ReplicatedStorage").CardinalityUI:Clone()
  16. end
  17. local Container = screenGui.Frame
  18. local Opt = Container.OptionsFrame
  19. local Checkbox = Opt.Checkbox
  20. local Color = Opt.Color
  21. local Frame = Opt.Frame
  22. local Execute = Opt.Execute
  23. local Mode = Opt.Mode
  24. local Number = Opt.Number
  25. local Toggle = Opt.Toggle
  26. local Mods = screenGui.Mods
  27. local ModLabel = Mods.Example
  28.  
  29. local TextService = game:GetService("TextService")
  30. local UserInputService = game:GetService("UserInputService")
  31. local HttpService = game:GetService("HttpService")
  32. local Player = game:GetService("Players").LocalPlayer
  33. local Mouse = Player:GetMouse()
  34. syn = syn or nil
  35. if syn then
  36. syn.protect_gui(screenGui)
  37. end
  38. err,errcode=pcall(function()
  39. screenGui.Parent = game:GetService("CoreGui")
  40. end)
  41. if not err then
  42. print("ERR:",errcode)
  43. screenGui.Parent = Player.PlayerGui
  44. end
  45.  
  46. Container.Parent = nil
  47. Checkbox.Parent = nil
  48. Color.Parent = nil
  49. Frame.Parent = nil
  50. Execute.Parent = nil
  51. Mode.Parent = nil
  52. Number.Parent = nil
  53. Toggle.Parent = nil
  54. ModLabel.Parent = nil
  55.  
  56. local settingsArray = {{Object = screenGui},{}}
  57. local saveData = {Options = {}, Hotkeys = {}}
  58.  
  59. local hotkeyFunctions = {}
  60. local gui = {}
  61.  
  62. -- Save Functions
  63. local writefile = writefile or function() end
  64. local function Save()
  65. local JSONData = HttpService:JSONEncode(saveData)
  66. writefile("OpenGui.txt", JSONData)
  67. end
  68.  
  69. -- Color Functions
  70. local color = {}
  71. local colors = {
  72. TextDisabled = Color3.fromRGB(200, 200, 200),
  73. TextEnabled = Color3.fromRGB(255, 255, 255),
  74. }
  75.  
  76. local Colors = {
  77. Color3.fromRGB(255, 73, 73),
  78. Color3.fromRGB(255, 161, 66),
  79. Color3.fromRGB(255, 233, 62),
  80. Color3.fromRGB(137, 255, 64),
  81. Color3.fromRGB(64, 255, 140),
  82. Color3.fromRGB(66, 252, 255),
  83. Color3.fromRGB(64, 147, 255),
  84. Color3.fromRGB(255, 93, 253),
  85. Color3.fromRGB(195, 110, 255),
  86. Color3.fromRGB(255, 90, 134),
  87. Color3.fromRGB(255, 255, 255),
  88. Color3.fromRGB(209, 209, 209),
  89. }
  90.  
  91. local function h2rgb(m1, m2, h)
  92. if h<0 then h = h+1 end
  93. if h>1 then h = h-1 end
  94. if h*6<1 then
  95. return m1+(m2-m1)*h*6
  96. elseif h*2<1 then
  97. return m2
  98. elseif h*3<2 then
  99. return m1+(m2-m1)*(2/3-h)*6
  100. else
  101. return m1
  102. end
  103. end
  104.  
  105. function color:rgbToHsv(r, g, b)
  106. local a = 0
  107. r, g, b, a = r / 255, g / 255, b / 255, a / 255
  108. local max, min = math.max(r, g, b), math.min(r, g, b)
  109. local h, s, v
  110. v = max
  111.  
  112. local d = max - min
  113. if max == 0 then s = 0 else s = d / max end
  114.  
  115. if max == min then
  116. h = 0 -- achromatic
  117. else
  118. if max == r then
  119. h = (g - b) / d
  120. if g < b then h = h + 6 end
  121. elseif max == g then h = (b - r) / d + 2
  122. elseif max == b then h = (r - g) / d + 4
  123. end
  124. h = h / 6
  125. end
  126.  
  127. return h, s, v
  128. end
  129.  
  130. function color:hslToRgb(h, s, L)
  131. h = h / 360
  132. local m2 = L <= .5 and L*(s+1) or L+s-L*s
  133. local m1 = L*2-m2
  134. return
  135. h2rgb(m1, m2, h+1/3), h2rgb(m1, m2, h), h2rgb(m1, m2, h-1/3)
  136. end
  137.  
  138. function color:rgbToHsl(r, g, b)
  139. local min = math.min(r, g, b)
  140. local max = math.max(r, g, b)
  141. local delta = max - min
  142.  
  143. local h, s, l = 0, 0, (min + max) / 2
  144.  
  145. if l > 0 and l < 0.5 then s = delta / (max + min) end
  146. if l >= 0.5 and l < 1 then s = delta / (2 - max - min) end
  147.  
  148. if delta > 0 then
  149. if max == r and max ~= g then h = h + (g-b) / delta end
  150. if max == g and max ~= b then h = h + 2 + (b-r) / delta end
  151. if max == b and max ~= r then h = h + 4 + (r-g) / delta end
  152. h = h / 6
  153. end
  154.  
  155. if h < 0 then h = h + 1 end
  156. if h > 1 then h = h - 1 end
  157.  
  158. return h * 360, s, l
  159. end
  160.  
  161. function color:adjustLightness(color3, amount)
  162. local h, s, l = self:rgbToHsl(color3.r, color3.g, color3.b)
  163. return Color3.new(self:hslToRgb(h, s, l + amount))
  164. end
  165.  
  166. -- UI Functions
  167. function gui.tween(object,style,direction,t,goal)
  168. local tweenservice = game:GetService("TweenService")
  169. local tweenInfo = TweenInfo.new(t,Enum.EasingStyle[style],Enum.EasingDirection[direction])
  170. local tween = tweenservice:Create(object,tweenInfo,goal)
  171. tween.Completed:Connect(function()
  172. tween:Destroy()
  173. end)
  174. tween:Play()
  175. return tween
  176. end
  177.  
  178. function gui:makeDraggable(ui, callback)
  179. local UserInputService = game:GetService("UserInputService")
  180.  
  181. local dragging
  182. local dragInput
  183. local dragStart
  184. local startPos
  185.  
  186. local function update(input)
  187. local delta = input.Position - dragStart
  188. ui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  189.  
  190. if callback then
  191. callback(ui.Position.X.Offset, ui.Position.Y.Offset)
  192. end
  193. end
  194.  
  195. ui.InputBegan:Connect(function(input)
  196. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  197. dragging = true
  198. dragStart = input.Position
  199. startPos = ui.Position
  200.  
  201. input.Changed:Connect(function()
  202. if input.UserInputState == Enum.UserInputState.End then
  203. dragging = false
  204. end
  205. end)
  206. end
  207. end)
  208.  
  209. ui.InputChanged:Connect(function(input)
  210. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  211. dragInput = input
  212. end
  213. end)
  214.  
  215. UserInputService.InputChanged:Connect(function(input)
  216. if input == dragInput and dragging then
  217. update(input)
  218. end
  219. end)
  220. end
  221.  
  222. function gui:unpack(data, type)
  223. if data == nil then return end
  224. if type == "UDim2" then
  225. return data and UDim2.new(data[1], data[2], data[3], data[4])
  226. elseif type == "boolean" then
  227. return data == 1 and true or false
  228. elseif type == "Color3" then
  229. return Color3.new(data[1], data[2], data[3])
  230. end
  231. return data
  232. end
  233.  
  234. function gui:pack(data)
  235. if typeof(data) == "UDim2" then
  236. return {data.X.Scale, data.X.Offset, data.Y.Scale, data.Y.Offset}
  237. elseif typeof(data) == "boolean" then
  238. return data and 1 or 0
  239. elseif typeof(data) == "Color3" then
  240. return {data.r, data.g, data.b}
  241. end
  242. return data
  243. end
  244.  
  245. function gui:getn(array)
  246. local n = 0
  247. for _, v in pairs(array) do
  248. n = n + 1
  249. end
  250. return n
  251. end
  252.  
  253. function gui:setText(textLabel, text)
  254. text = tostring(text)
  255. textLabel.Text = text
  256. if textLabel:FindFirstChild("Opaque") then
  257. textLabel.Opaque.Text = text
  258. end
  259. if textLabel:FindFirstChild("Shadow") then
  260. textLabel.Shadow.Text = text
  261. end
  262. end
  263.  
  264. function gui:onDoubleTap(guiObject, callback)
  265. local lastTap = tick()
  266. guiObject.InputBegan:Connect(function(input)
  267. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  268. if tick() - lastTap < 0.25 then
  269. callback()
  270. end
  271. lastTap = tick()
  272. end
  273. end)
  274. end
  275.  
  276. local connections = {}
  277. function gui:connect(func)
  278. table.insert(connections, func)
  279. end
  280.  
  281. function gui:createList(guiObject, guiData)
  282. local ListLayout = guiObject.OptionsFrame.UIListLayout
  283. local Padding = guiObject.OptionsFrame.UIPadding
  284. guiObject.OptionsFrame.UIListLayout.Changed:Connect(function(Property)
  285. if Property == "AbsoluteContentSize" then
  286. guiData.ySize = ListLayout.AbsoluteContentSize.Y + 2 + Padding.PaddingTop.Offset + ListLayout.Padding.Offset * 2
  287. end
  288. end)
  289.  
  290. gui:connect(function()
  291. if guiObject:FindFirstChild("Title") then
  292. local yRes = Mouse.ViewSizeY
  293. local diff = yRes - (guiData.yPos + guiData.ySize)
  294. local difference = math.clamp(diff, 0, 5000)
  295. guiObject.OptionsFrame.CanvasSize = UDim2.new(1, 0, 1.001, guiData.ySize - 35)
  296.  
  297. if guiData.Open then
  298. guiObject.OptionsFrame.Size = guiObject.OptionsFrame.Size:Lerp(UDim2.new(1, 0, 0, guiData.ySize + math.clamp(diff, -5000, 0)), 0.3)
  299. else
  300. guiObject.OptionsFrame.Size = guiObject.OptionsFrame.Size:Lerp(UDim2.new(1, 0, 0, 0), 0.3)
  301. end
  302.  
  303. guiObject.Frame.Size = guiObject.OptionsFrame.Size
  304. else
  305. if guiData.Open then
  306. guiObject.Size = guiObject.Size:Lerp(UDim2.new(1, -8, 0, 35 + guiData.ySize), 0.3)
  307. else
  308. guiObject.Size = guiObject.Size:Lerp(UDim2.new(1, -8, 0, 35), 0.3)
  309. end
  310. end
  311. end)
  312.  
  313. if guiObject:FindFirstChild("Dropdown") then
  314. guiObject.Dropdown.Visible = false
  315. guiObject.Dropdown.MouseButton1Down:Connect(function()
  316. guiData.Open = not guiData.Open
  317. if guiData.Open then
  318. guiObject.Dropdown.Image = "rbxassetid://3559638428"
  319. else
  320. guiObject.Dropdown.Image = "rbxassetid://3554238678"
  321. end
  322. end)
  323. else
  324. gui:onDoubleTap(guiObject, function()
  325. guiData.Open = not guiData.Open
  326. end)
  327. end
  328. end
  329.  
  330. function gui:textColorOnHover(guiObject, guiData)
  331. local hover = guiData.baseColor or guiObject.TextColor3
  332. local default = color:adjustLightness(hover, -0.075)
  333. local mdown = color:adjustLightness(hover, -0.15)
  334. local mouseIn
  335.  
  336. local function update()
  337. if guiData.baseColor then
  338. hover = guiData.baseColor or guiObject.TextColor3
  339. default = color:adjustLightness(hover, -0.075)
  340. mdown = color:adjustLightness(hover, -0.15)
  341. end
  342. end
  343.  
  344. guiObject.MouseEnter:Connect(function()
  345. update()
  346. gui.tween(guiObject, "Sine", "Out", 0.25, {
  347. TextColor3 = hover;
  348. })
  349. mouseIn = true
  350. end)
  351.  
  352. guiObject.MouseLeave:Connect(function()
  353. mouseIn = false
  354. update()
  355. gui.tween(guiObject, "Sine", "Out", 0.25, {
  356. TextColor3 = default;
  357. })
  358. end)
  359.  
  360. guiObject.InputBegan:Connect(function(input)
  361. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  362. update()
  363. gui.tween(guiObject, "Sine", "Out", 0.25, {
  364. TextColor3 = mdown;
  365. })
  366. end
  367. end)
  368.  
  369. guiObject.InputEnded:Connect(function(input)
  370. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  371. update()
  372. gui.tween(guiObject, "Sine", "Out", 0.25, {
  373. TextColor3 = mouseIn and hover or default;
  374. })
  375. end
  376. end)
  377.  
  378. guiObject.TextColor3 = default
  379. end
  380.  
  381. function gui:sliderXY(sliderFrame, inputObjects, callback)
  382. local inputDown = false
  383.  
  384. local function refresh(c1, c2)
  385. local sliderX = sliderFrame.AbsolutePosition.X + sliderFrame.AbsoluteSize.X
  386. local sliderY = sliderFrame.AbsolutePosition.Y + sliderFrame.AbsoluteSize.Y
  387.  
  388. local distX = sliderX - Mouse.X
  389. local distY = sliderY - Mouse.Y
  390.  
  391. local deltaX = 1-math.clamp(distX / sliderFrame.AbsoluteSize.X, 0, 1)
  392. local deltaY = 1-math.clamp(distY / sliderFrame.AbsoluteSize.Y, 0, 1)
  393.  
  394. if callback then
  395. callback(c1 or deltaX, c2 or deltaY)
  396. end
  397. end
  398.  
  399. for _, obj in pairs(inputObjects) do
  400. obj.InputBegan:Connect(function(input)
  401. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  402. inputDown = true
  403. refresh()
  404. end
  405. end)
  406. obj.InputEnded:Connect(function(input)
  407. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  408. inputDown = false
  409. refresh()
  410. end
  411. end)
  412. obj.InputChanged:Connect(function(input)
  413. if input == nil or input.UserInputType == Enum.UserInputType.MouseMovement then
  414. if inputDown then
  415. refresh()
  416. end
  417. end
  418. end)
  419. end
  420.  
  421. return refresh
  422. end
  423.  
  424. function gui:createSlider(sliderFrame, inputObjects, callback)
  425. local slider = sliderFrame.Value
  426. local inputDown = false
  427.  
  428. local absPos = sliderFrame.AbsolutePosition.X + sliderFrame.AbsoluteSize.X
  429. local absSize = sliderFrame.AbsoluteSize.X
  430.  
  431. local function refresh(custom)
  432. local mouseX = Mouse.X
  433. local sliderX = absPos
  434. local dist = sliderX - mouseX
  435. local delta = 1 - math.clamp(dist / absSize, 0, 1)
  436.  
  437. if custom then
  438. delta = custom
  439. end
  440.  
  441. slider.Size = UDim2.new(delta, 0, 1, 0)
  442. if callback then
  443. callback(delta, custom)
  444. end
  445. end
  446.  
  447. for _, obj in pairs(inputObjects) do
  448. obj.InputBegan:Connect(function(input)
  449. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  450. inputDown = true
  451. absPos = sliderFrame.AbsolutePosition.X + sliderFrame.AbsoluteSize.X
  452. absSize = sliderFrame.AbsoluteSize.X
  453. refresh()
  454. end
  455. end)
  456. obj.InputEnded:Connect(function(input)
  457. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  458. inputDown = false
  459. refresh()
  460. end
  461. end)
  462. obj.InputChanged:Connect(function(input)
  463. if input == nil or input.UserInputType == Enum.UserInputType.MouseMovement then
  464. if inputDown then
  465. refresh()
  466. end
  467. end
  468. end)
  469. end
  470.  
  471. return refresh
  472. end
  473.  
  474. function gui:textSize(txt, vSize)
  475. return TextService:GetTextSize(txt.Text, txt.TextSize, txt.Font, vSize)
  476. end
  477.  
  478. local currentHint = 0
  479.  
  480. function gui:addHint(guiObject, hintText)
  481. local hintKey = math.random()
  482. guiObject.MouseEnter:Connect(function()
  483. hintKey = math.random()
  484. currentHint = hintKey
  485.  
  486. wait(2)
  487.  
  488. if currentHint == hintKey then
  489. gui:setText(screenGui.Hint, " " .. hintText .. " ")
  490. local textSize = gui:textSize(screenGui.Hint, Vector2.new(2500, 500))
  491. screenGui.Hint.Position = UDim2.new(0, Mouse.X, 0, Mouse.Y + 4)
  492. screenGui.Hint.Size = UDim2.new(0, textSize.X, 0, textSize.Y)
  493. screenGui.Hint.Visible = true
  494. end
  495. end)
  496.  
  497. guiObject.MouseLeave:Connect(function()
  498. hintKey = math.random()
  499. end)
  500.  
  501. Mouse.Move:Connect(function()
  502. if currentHint == hintKey then
  503. screenGui.Hint.Visible = false
  504. end
  505. end)
  506. end
  507.  
  508. -- UI Type Library
  509. local lib = {}
  510.  
  511. function lib.Color(data, dataArray)
  512. local guiObject = Color:Clone()
  513. local color3Value = gui:unpack(saveData.Options[data.ID].Value, "Color3") or data.Default or Color3.new(1, 1, 1)
  514. local guiData = {}
  515.  
  516. local HSV = color3Value
  517. local H, S, V = color:rgbToHsv(HSV.r * 255, HSV.g * 255, HSV.b * 255)
  518.  
  519. local newValue = function()
  520. HSV = Color3.fromHSV(H, S, V)
  521. guiObject.SV.BackgroundColor3 = Color3.fromHSV(H, 1, 1)
  522. guiObject.Indicator.BackgroundColor3 = HSV
  523. saveData.Options[data.ID].Value = gui:pack(HSV, "Color3")
  524.  
  525. guiObject.R.Text = math.floor(HSV.r * 255)
  526. guiObject.G.Text = math.floor(HSV.g * 255)
  527. guiObject.B.Text = math.floor(HSV.b * 255)
  528.  
  529. if data.Callback then
  530. data.Callback(HSV)
  531. end
  532. end
  533.  
  534. local function updateHSV()
  535. H, S, V = color:rgbToHsv(HSV.r * 255, HSV.g * 255, HSV.b * 255)
  536. end
  537.  
  538. local H_set = gui:sliderXY(guiObject.H, {guiObject.H}, function(X, Y, u)
  539. if not u then H = 1 - Y end
  540. guiObject.H.Locator.Position = UDim2.new(0.5, 0, Y, 0)
  541. newValue()
  542. end)
  543.  
  544. local SV_set = gui:sliderXY(guiObject.SV, {guiObject.SV}, function(X, Y, u)
  545. if not u then S = X; V = 1 - Y; end
  546. guiObject.SV.Locator.Position = UDim2.new(X, 0, Y, 0)
  547. newValue()
  548. end)
  549.  
  550. guiObject.R.FocusLost:Connect(function()
  551. HSV = Color3.new(guiObject.R.Text / 255, HSV.g, HSV.b)
  552. updateHSV()
  553. newValue()
  554. end)
  555. guiObject.G.FocusLost:Connect(function()
  556. HSV = Color3.new(HSV.r, guiObject.G.Text / 255, HSV.b)
  557. updateHSV()
  558. newValue()
  559. end)
  560. guiObject.B.FocusLost:Connect(function()
  561. HSV = Color3.new(HSV.r, HSV.g, guiObject.B.Text / 255)
  562. updateHSV()
  563. newValue()
  564. end)
  565.  
  566. newValue()
  567. SV_set(S, 1 - V)
  568. H_set(0, H)
  569.  
  570. guiData.ySize = 0
  571. guiData.Open = false
  572. guiData.baseColor = colors.TextEnabled
  573.  
  574. gui:setText(guiObject.Label, data.Name)
  575. gui:textColorOnHover(guiObject.Label, guiData)
  576.  
  577. return guiObject
  578. end
  579.  
  580. function lib.Number(data, dataArray)
  581. local guiObject = Number:Clone()
  582. local Value = gui:unpack(saveData.Options[data.ID].Value, "number") or data.Default or math.floor(data.Min + (data.Max - data.Min) / 2)
  583. local guiData = {}
  584.  
  585. local dMax = data.Max - data.Min
  586. local dValue = (Value - data.Min) / dMax
  587.  
  588. data.Round = data.Round or 1
  589.  
  590. local newValue = function(delta)
  591. local exactValue = data.Min + (data.Max - data.Min) * delta
  592. Value = math.floor(exactValue / data.Round) * data.Round
  593. Value = math.clamp(Value, data.Min, data.Max)
  594. guiObject.Indicator.Value.Text = tostring(Value)
  595.  
  596. if data.Callback then
  597. data.Callback(Value)
  598. end
  599. saveData.Options[data.ID].Value = gui:pack(Value, "number")
  600. end
  601.  
  602. local slideSet = gui:createSlider(guiObject.ValueFrame, {guiObject.Label, guiObject.Indicator}, newValue)
  603. slideSet(math.clamp(dValue, 0, 1))
  604.  
  605. guiObject.Indicator.MouseButton1Down:Connect(newValue)
  606. guiObject.Label.MouseButton1Down:Connect(newValue)
  607. newValue(math.clamp(dValue, 0, 1))
  608.  
  609. guiData.ySize = 0
  610. guiData.Open = false
  611. guiData.baseColor = colors.TextEnabled
  612.  
  613. gui:createList(guiObject, guiData)
  614. gui:setText(guiObject.Label, data.Name)
  615. gui:textColorOnHover(guiObject.Label, guiData)
  616.  
  617. return guiObject
  618. end
  619.  
  620. function lib.Execute(data, dataArray)
  621. local guiObject = Execute:Clone()
  622. local guiData = {}
  623.  
  624. local newValue = function(val)
  625. if data.Callback then
  626. data.Callback()
  627. end
  628. end
  629.  
  630. guiObject.MouseEnter:Connect(function()
  631. gui.tween(guiObject.Indicator, "Sine", "Out", .25, {Size = UDim2.new(0, 40, 0, 25)})
  632. end)
  633.  
  634. guiObject.MouseLeave:Connect(function()
  635. gui.tween(guiObject.Indicator, "Sine", "Out", .25, {Size = UDim2.new(0, 0, 0, 25)})
  636. end)
  637.  
  638. guiObject.Indicator.MouseButton1Down:Connect(newValue)
  639. guiObject.Label.MouseButton1Down:Connect(newValue)
  640. newValue(true)
  641.  
  642. guiData.ySize = 0
  643. guiData.Open = false
  644. guiData.baseColor = colors.TextEnabled
  645.  
  646. gui:createList(guiObject, guiData)
  647. gui:setText(guiObject.Label, data.Name)
  648. gui:textColorOnHover(guiObject.Label, guiData)
  649.  
  650. return guiObject
  651. end
  652.  
  653. function lib.Mode(data, dataArray)
  654. local guiObject = Mode:Clone()
  655. local valueIndex = gui:unpack(saveData.Options[data.ID].Value, "number") or data.Default or 1
  656. local guiData = {}
  657.  
  658. local newValue = function(val)
  659. if val == true then else
  660. valueIndex = (valueIndex % #data.Modes) + 1
  661. end
  662.  
  663. local Value = data.Modes[valueIndex]
  664. gui:setText(guiObject.Mode, Value)
  665.  
  666. if data.Callback then
  667. data.Callback(Value)
  668. end
  669. saveData.Options[data.ID].Value = gui:pack(valueIndex)
  670. end
  671.  
  672. guiObject.Mode.MouseButton1Down:Connect(newValue)
  673. guiObject.Label.MouseButton1Down:Connect(newValue)
  674. newValue(true)
  675.  
  676. guiData.ySize = 0
  677. guiData.Open = false
  678. guiData.baseColor = colors.TextEnabled
  679.  
  680. gui:createList(guiObject, guiData)
  681. gui:setText(guiObject.Label, data.Name)
  682. gui:textColorOnHover(guiObject.Label, guiData)
  683.  
  684. return guiObject
  685. end
  686.  
  687. function lib.Hotkey(data, dataArray)
  688. local guiObject = Mode:Clone()
  689. local hotkeyInput = gui:unpack(saveData.Hotkeys[data.ID], "string") or data.Hotkey or ""
  690. local guiData = {}
  691.  
  692. local lastInput = hotkeyInput
  693. local mouseIn = false
  694.  
  695. guiObject.Name = "Z"
  696.  
  697. local newValue = function(val)
  698. local input
  699. gui:setText(guiObject.Mode, "...")
  700. saveData.Hotkeys[data.ID] = nil
  701.  
  702. if not val then
  703. input = lastInput
  704. mouseIn = true
  705.  
  706. lastInput = nil
  707.  
  708. repeat wait() until mouseIn == false or lastInput
  709. end
  710.  
  711. if not lastInput then
  712. lastInput = hotkeyInput
  713. end
  714.  
  715. saveData.Hotkeys[data.ID] = tostring(lastInput)
  716. hotkeyFunctions[data.ID] = data.callback
  717.  
  718. hotkeyInput = tostring(lastInput)
  719. saveData.Options[data.ID].Value = hotkeyInput
  720. gui:setText(guiObject.Mode, hotkeyInput:sub(14))
  721. end
  722.  
  723. UserInputService.InputBegan:Connect(function(input)
  724. if input.KeyCode == Enum.KeyCode.Unknown then return end
  725. if input.KeyCode == Enum.KeyCode.Backspace then lastInput = "" return end
  726. lastInput = tostring(input.KeyCode)
  727. end)
  728.  
  729. guiObject.Mode.MouseButton1Down:Connect(function() newValue() end)
  730. guiObject.Label.MouseButton1Down:Connect(function() newValue() end)
  731. guiObject.MouseLeave:Connect(function()
  732. mouseIn = false
  733. end)
  734. newValue(true)
  735.  
  736. guiData.ySize = 0
  737. guiData.Open = false
  738. guiData.baseColor = colors.TextEnabled
  739.  
  740. gui:createList(guiObject, guiData)
  741. gui:setText(guiObject.Label, "Hotkey")
  742. gui:textColorOnHover(guiObject.Label, guiData)
  743.  
  744. guiObject.Parent = dataArray.Object.OptionsFrame
  745.  
  746. return guiObject
  747. end
  748.  
  749. function lib.Toggle(data, dataArray)
  750. local guiObject = Toggle:Clone()
  751. local Value = gui:unpack(saveData.Options[data.ID].Value, "boolean") or data.Default or false
  752. local guiData = {}
  753.  
  754. local modFrame = ModLabel:Clone()
  755. modFrame.Parent = Mods
  756. modFrame.TextColor3 = Colors[math.random(1, #Colors)]
  757. modFrame.Visible = false
  758. gui:setText(modFrame, data.Name)
  759.  
  760. guiObject.Name = data.Name
  761.  
  762. local newValue = function(val, set)
  763. if val == true then
  764. else
  765. if set then
  766. Value = set
  767. else
  768. Value = not Value
  769. end
  770. end
  771.  
  772. if Value then
  773. gui.tween(guiObject.Indicator, "Sine", "Out", .25, {BackgroundColor3 = Color3.fromRGB(60, 222, 60)})
  774. guiObject.Indicator.Text = "ON"
  775. guiData.baseColor = colors.TextEnabled
  776. else
  777. gui.tween(guiObject.Indicator, "Sine", "Out", .25, {BackgroundColor3 = Color3.fromRGB(222, 60, 60)})
  778. guiObject.Indicator.Text = "OFF"
  779. guiData.baseColor = colors.TextDisabled
  780. end
  781.  
  782. if data.Callback then
  783. data.Callback(Value)
  784. end
  785.  
  786. saveData.Options[data.ID].Value = gui:pack(Value)
  787. modFrame.Visible = Value
  788.  
  789. end
  790.  
  791. guiObject.MouseEnter:Connect(function()
  792. gui.tween(guiObject.Indicator, "Sine", "Out", .25, {Size = UDim2.new(0, 40, 0, 25)})
  793. end)
  794.  
  795. guiObject.MouseLeave:Connect(function()
  796. gui.tween(guiObject.Indicator, "Sine", "Out", .25, {Size = UDim2.new(0, 0, 0, 25)})
  797. end)
  798.  
  799. gui.tween(guiObject.Indicator, "Sine", "Out", .25, {Size = UDim2.new(0, 0, 0, 25)})
  800. guiObject.Indicator.MouseButton1Down:Connect(function() newValue() end)
  801. guiObject.Label.MouseButton1Down:Connect(function() newValue() end)
  802. newValue(true)
  803.  
  804. guiData.ySize = 0
  805. guiData.Open = false
  806. guiData.baseColor = colors.TextDisabled
  807.  
  808. gui:createList(guiObject, guiData)
  809. gui:setText(guiObject.Label, data.Name)
  810. gui:textColorOnHover(guiObject.Label, guiData)
  811.  
  812. data.callback = newValue
  813.  
  814. return guiObject
  815. end
  816.  
  817. function lib.Checkbox(data, dataArray)
  818. local guiObject = Checkbox:Clone()
  819. local Value = gui:unpack(saveData.Options[data.ID].Value, "boolean") or data.Default or false
  820. local guiData = {}
  821.  
  822. guiObject.Name = "0"
  823.  
  824. local newValue = function(val)
  825. if val == true then else
  826. Value = not Value
  827. end
  828. if Value then
  829. gui.tween(guiObject.Indicator, "Sine", "Out", .35, {Size = UDim2.new(0, 35, 0, 35)})
  830. guiData.baseColor = colors.TextEnabled
  831. else
  832. gui.tween(guiObject.Indicator, "Sine", "Out", .35, {Size = UDim2.new(0, 0, 0, 35)})
  833. guiData.baseColor = colors.TextDisabled
  834. end
  835. if data.Callback then
  836. data.Callback(Value)
  837. end
  838. saveData.Options[data.ID].Value = gui:pack(Value)
  839. end
  840.  
  841. guiObject.Indicator.MouseButton1Down:Connect(newValue)
  842. guiObject.Label.MouseButton1Down:Connect(newValue)
  843. newValue(true)
  844.  
  845. guiData.ySize = 0
  846. guiData.Open = false
  847. guiData.baseColor = colors.TextDisabled
  848.  
  849. gui:createList(guiObject, guiData)
  850. gui:setText(guiObject.Label, data.Name)
  851. gui:textColorOnHover(guiObject.Label, guiData)
  852.  
  853. return guiObject
  854. end
  855.  
  856. function lib.Frame(data, dataArray)
  857. local guiObject = Frame:Clone()
  858.  
  859. local guiData = {}
  860. guiData.ySize = 0
  861. guiData.Open = false
  862.  
  863. gui:createList(guiObject, guiData)
  864. gui:setText(guiObject.Label, data.Name)
  865. gui:textColorOnHover(guiObject.Label, guiData)
  866.  
  867. return guiObject
  868. end
  869.  
  870. function lib.Container(data, dataArray)
  871. local guiObject = Container:Clone()
  872.  
  873. guiObject.Position = gui:unpack(saveData.Options[data.ID].Position, "UDim2") or UDim2.new(0, 3, 0, 3 + gui:getn(settingsArray[2]) * 38)
  874.  
  875. local guiData = {}
  876. guiData.yPos = 0
  877. guiData.ySize = 0
  878. guiData.Open = false
  879.  
  880. gui:textColorOnHover(guiObject.Title, guiData)
  881. gui:createList(guiObject, guiData)
  882. gui:setText(guiObject.Title, data.Name)
  883. gui:makeDraggable(guiObject, function(x, y)
  884. guiData.yPos = y
  885. saveData.Options[data.ID].Position = gui:pack(guiObject.Position)
  886. end)
  887.  
  888. return guiObject
  889. end
  890.  
  891. -- UI Creation Library
  892. function gui.create(self, guiType, data)
  893. if self == gui then
  894. self = settingsArray
  895. end
  896.  
  897. data.ID = data.Name .. "_" .. (self[1].Name or "TOP")
  898.  
  899. if not saveData.Options[data.ID] then
  900. saveData.Options[data.ID] = {}
  901. end
  902.  
  903. if self[1].Object:FindFirstChild("Dropdown") then
  904. self[1].Object.Dropdown.Visible = true
  905. end
  906.  
  907. local dataArray = {}
  908. local objectArray = {}
  909. local selfArray = {dataArray, objectArray, create = gui.create, callback = data.Callback}
  910. dataArray.Name = data.Name
  911. dataArray.Data = data
  912. dataArray.Object = lib[guiType](data, dataArray)
  913. dataArray.self = selfArray
  914.  
  915. if guiType == "Toggle" then
  916. lib.Hotkey(data, dataArray)
  917. end
  918. if data.Hint then
  919. local Object = dataArray.Object
  920. gui:addHint(Object:FindFirstChild("Title") or Object:FindFirstChild("Label"), data.Hint)
  921. end
  922.  
  923. self[1][data.Name] = selfArray
  924. self[2][data.Name] = dataArray.Object
  925.  
  926. dataArray.Object.Parent = self[1].Object:FindFirstChild("OptionsFrame") or self[1].Object
  927.  
  928. return dataArray
  929. end
  930.  
  931. -- Connection Stuff
  932. game:GetService("RunService").RenderStepped:Connect(function()
  933. for _, func in pairs(connections) do
  934. func()
  935. end
  936. end)
  937.  
  938. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  939. if gameProcessed then return end
  940. for id, key in pairs(saveData.Hotkeys) do
  941. if key == tostring(input.KeyCode) then
  942. hotkeyFunctions[id]()
  943. end
  944. end
  945. end)
  946.  
  947. Mods.Text = "OpenGui " .. _V
  948.  
  949. game.Close:Connect(function()
  950. Save()
  951. end)
  952.  
  953. return {gui, saveData, screenGui}
  954. end)()
  955.  
  956. local notify = {Title ="HENTAI", Text ="Got It?", Duration = 120, Button1 = "OK"}
  957. local sound
  958.  
  959. -- modify esp
  960. local _ESP = (function()
  961. --// Variables
  962. local module = {}
  963.  
  964. local RunService = game:GetService("RunService")
  965. local Players = game:GetService("Players")
  966. local Player = Players.LocalPlayer
  967.  
  968. module.Options = {
  969. Enabled = false,
  970. Parent = script.Parent or game.CoreGui,
  971. Color = Color3.new(1, 0, 0),
  972. LegendaryOrMagicalShow = true,
  973. Magical_Color=Color3.new(0, 1, 1),
  974. Legendary_Color=Color3.new(1, 1, 0),
  975. Npcs_Color=Color3.new(1, 1, 1),
  976. MagicalOrLegendary = false,
  977. Opacity = 1,
  978. MaxDistance = 25000,
  979. }
  980.  
  981. function module:Enable()
  982. module.Options.Enabled = true
  983. end
  984.  
  985. function module:Disable()
  986. module.Options.Enabled = false
  987. end
  988.  
  989. RunService.RenderStepped:Connect(function()
  990. if module.Options.Enabled then
  991. local shit = workspace.NPCS:GetChildren()
  992. for i = 1, #shit do
  993. local sex = shit[i]
  994. local enemy = sex:FindFirstChildOfClass("Model")
  995. if enemy and sex:FindFirstChild("Status") and enemy:FindFirstChild("HumanoidRootPart") then
  996. --espfunction(sex)
  997. local s = sex.Status
  998. local box = enemy:FindFirstChild("EGG")
  999. if not box then
  1000. box = Instance.new("BoxHandleAdornment")
  1001. end
  1002. box.Size = enemy.HumanoidRootPart.Size
  1003. box.Name = "EGG"
  1004. box.Adornee = enemy.HumanoidRootPart
  1005. box.AlwaysOnTop = true
  1006. box.ZIndex = 5
  1007. box.Transparency = module.Options.Opacity
  1008. box.Color3 = module.Options.Color
  1009. if sex:FindFirstChild("ChatInfo") then
  1010. box.Color3 = module.Options.Npcs_Color
  1011. end
  1012. if module.Options.MagicalOrLegendary then
  1013. if s:FindFirstChild("Legendary") and s.Legendary.Value then
  1014. box.Color3 = module.Options.Legendary_Color
  1015. if not s.Legendary:FindFirstChild("TAGGED") then
  1016. local Tag=Instance.new("Folder",s.Legendary)
  1017. Tag.Name = "TAGGED"
  1018. notify.Title ="Notification Legendary"
  1019. game:GetService("StarterGui"):SetCore("SendNotification",notify)
  1020. if not sound then
  1021. sound = Instance.new("Sound",game:GetService("CoreGui"))
  1022. end
  1023. sound.SoundId = "rbxassetid://131072261"
  1024. sound.Volume = 10
  1025. sound:Play()
  1026. end
  1027. elseif s:FindFirstChild("Magical") and s.Magical.Value then
  1028. box.Color3 = module.Options.Magical_Color
  1029. if not s.Magical:FindFirstChild("TAGGED") then
  1030. local Tag=Instance.new("Folder",s.Magical)
  1031. Tag.Name = "TAGGED"
  1032. notify.Title ="Notification Magical"
  1033. game:GetService("StarterGui"):SetCore("SendNotification",notify)
  1034. if not sound then
  1035. sound = Instance.new("Sound",game:GetService("CoreGui"))
  1036. end
  1037. sound.SoundId = "rbxassetid://130766856"
  1038. sound.Volume = 5
  1039. sound:Play()
  1040. end
  1041. end
  1042. end
  1043. box.Parent = enemy
  1044. box.Name = "EGG"
  1045. end
  1046. end
  1047. end
  1048. end)
  1049. return module
  1050. end)()
  1051.  
  1052. local _ManaFly = (function()
  1053. --// Variables
  1054. local module = {}
  1055.  
  1056. local RunService = game:GetService("RunService")
  1057. local Players = game:GetService("Players")
  1058. local Player = Players.LocalPlayer
  1059.  
  1060. local MANAFLY = nil
  1061. local leftorright,upordown,backorforward = 0,0,0
  1062.  
  1063. module.Options = {
  1064. Enabled = false,
  1065. Color = Color3.new(1, 0, 0),
  1066. speed = 0,
  1067. Opacity = 0,
  1068. PartMaterial = Enum.Material.Air,
  1069. Up="x",
  1070. Down="z",
  1071. }
  1072. function module:Enable()
  1073. module.Options.Enabled = true
  1074. leftorright,upordown,backorforward = 0,0,0
  1075. end
  1076.  
  1077. function module:Disable()
  1078. module.Options.Enabled = false
  1079. leftorright,upordown,backorforward = 0,0,0
  1080. end
  1081. function module:SpeedChange(Speed)
  1082. if leftorright > 0 then
  1083. leftorright = Speed
  1084. elseif leftorright < 0 then
  1085. leftorright = -Speed
  1086. end
  1087. if upordown > 0 then
  1088. upordown = Speed
  1089. elseif upordown < 0 then
  1090. upordown = -Speed
  1091. end
  1092. if backorforward > 0 then
  1093. backorforward = Speed
  1094. elseif backorforward < 0 then
  1095. backorforward = -Speed
  1096. end
  1097. end
  1098. RunService:BindToRenderStep("MANAFLY",1,function()
  1099. if module.Options.Enabled then
  1100. Player.Character:SetPrimaryPartCFrame(Player.Character:GetPrimaryPartCFrame():Lerp(Player.Character:GetPrimaryPartCFrame()*CFrame.new(leftorright,upordown,backorforward),1))
  1101. if not MANAFLY then
  1102. MANAFLY = Instance.new("Part")
  1103. end
  1104. MANAFLY.Parent = workspace
  1105. MANAFLY.Size = Vector3.new(2,1,2)
  1106. MANAFLY.CFrame = Player.Character.HumanoidRootPart.CFrame * CFrame.new(0,-3.5,0)
  1107. MANAFLY.Transparency = module.Options.Opacity
  1108. MANAFLY.Name = "MANAFLYPART"
  1109. MANAFLY.Material = module.Options.PartMaterial
  1110. MANAFLY.Color = module.Options.Color
  1111. MANAFLY.Anchored = true
  1112. end
  1113. end)
  1114. Player:GetMouse().KeyDown:Connect(function(k)
  1115. if k == "w" then
  1116. backorforward = backorforward - module.Options.speed
  1117. elseif k == "s" then
  1118. backorforward = backorforward + module.Options.speed
  1119. elseif k == "a" then
  1120. leftorright = leftorright - module.Options.speed
  1121. elseif k == "d" then
  1122. leftorright = leftorright + module.Options.speed
  1123. elseif k == module.Options.Down then
  1124. upordown = upordown - module.Options.speed
  1125. elseif k == module.Options.Up then
  1126. upordown = upordown + module.Options.speed
  1127. end
  1128. end)
  1129. Player:GetMouse().KeyUp:Connect(function(k)
  1130. if k == "w" then
  1131. backorforward = backorforward + module.Options.speed
  1132. elseif k == "s" then
  1133. backorforward = backorforward - module.Options.speed
  1134. elseif k == "a" then
  1135. leftorright = leftorright + module.Options.speed
  1136. elseif k == "d" then
  1137. leftorright = leftorright - module.Options.speed
  1138. elseif k == module.Options.Down then
  1139. upordown = upordown + module.Options.speed
  1140. elseif k == module.Options.Up then
  1141. upordown = upordown - module.Options.speed
  1142. end
  1143. end)
  1144. return module
  1145. end)()
  1146.  
  1147. local _ManaRun= (function()
  1148. --// Variables
  1149. local module = {}
  1150.  
  1151. local RunService = game:GetService("RunService")
  1152. local Players = game:GetService("Players")
  1153. local Player = Players.LocalPlayer
  1154.  
  1155. local leftorright,backorforward = 0,0
  1156.  
  1157. module.Options = {
  1158. Enabled = false,
  1159. speed = 0,
  1160. }
  1161. function module:Enable()
  1162. module.Options.Enabled = true
  1163. leftorright,backorforward = 0,0
  1164. end
  1165.  
  1166. function module:Disable()
  1167. module.Options.Enabled = false
  1168. leftorright,backorforward = 0,0
  1169. end
  1170. function module:SpeedChange(Speed)
  1171. if leftorright > 0 then
  1172. leftorright = Speed
  1173. elseif leftorright < 0 then
  1174. leftorright = -Speed
  1175. end
  1176. if backorforward > 0 then
  1177. backorforward = Speed
  1178. elseif backorforward < 0 then
  1179. backorforward = -Speed
  1180. end
  1181. end
  1182. RunService:BindToRenderStep("MANARUN",1,function()
  1183. if module.Options.Enabled then
  1184. Player.Character:SetPrimaryPartCFrame(Player.Character:GetPrimaryPartCFrame():Lerp(Player.Character:GetPrimaryPartCFrame()*CFrame.new(leftorright,0,backorforward),1))
  1185. end
  1186. end)
  1187. Player:GetMouse().KeyDown:Connect(function(k)
  1188. if k == "w" then
  1189. backorforward = backorforward - module.Options.speed
  1190. elseif k == "s" then
  1191. backorforward = backorforward + module.Options.speed
  1192. elseif k == "a" then
  1193. leftorright = leftorright - module.Options.speed
  1194. elseif k == "d" then
  1195. leftorright = leftorright + module.Options.speed
  1196. end
  1197. end)
  1198. Player:GetMouse().KeyUp:Connect(function(k)
  1199. if k == "w" then
  1200. backorforward = backorforward + module.Options.speed
  1201. elseif k == "s" then
  1202. backorforward = backorforward - module.Options.speed
  1203. elseif k == "a" then
  1204. leftorright = leftorright + module.Options.speed
  1205. elseif k == "d" then
  1206. leftorright = leftorright - module.Options.speed
  1207. end
  1208. end)
  1209. return module
  1210. end)()
  1211.  
  1212. local _FullBright = (function()
  1213. --// Variables
  1214. local module = {}
  1215.  
  1216. module.Options = {
  1217. Enabled = false,
  1218. ExposureCompensation=0,
  1219. Brightness = 2
  1220. }
  1221.  
  1222. local RunService = game:GetService("RunService")
  1223. local Players = game:GetService("Players")
  1224. local Player = Players.LocalPlayer
  1225.  
  1226. function module:Enable()
  1227. module.Options.Enabled = true
  1228. end
  1229.  
  1230. function module:Disable()
  1231. module.Options.Enabled = false
  1232. end
  1233.  
  1234. game:GetService("RunService"):BindToRenderStep("FULLBRIGHT",1,function()
  1235. if module.Options.Enabled then
  1236. game:GetService("Lighting").Ambient = Color3.new(1,1,1)
  1237. game:GetService("Lighting").FogEnd = 100000000000000000000000
  1238. game:GetService("Lighting").FogStart = 100000000000000000000000
  1239. game:GetService("Lighting").Brightness = module.Options.Brightness
  1240. game:GetService("Lighting").ExposureCompensation = module.Options.ExposureCompensation
  1241. game:GetService("Lighting").GeographicLatitude = 41.733
  1242. game:GetService("Lighting").ColorShift_Bottom = Color3.new(1,1,1)
  1243. game:GetService("Lighting").ColorShift_Top = Color3.new(1,1,1)
  1244. game:GetService("Lighting").FogColor = Color3.new(1,1,1)
  1245. game:GetService("Lighting").ClockTime = 12
  1246. end
  1247. end)
  1248.  
  1249. return module
  1250. end)()
  1251. local _nocd = (function()
  1252. --// Variables
  1253. local module = {}
  1254.  
  1255. module.Options = {
  1256. Enabled = false,
  1257. }
  1258.  
  1259. local RunService = game:GetService("RunService")
  1260. local Players = game:GetService("Players")
  1261. local Player = Players.LocalPlayer
  1262.  
  1263. function module:Enable()
  1264. module.Options.Enabled = true
  1265. end
  1266.  
  1267. function module:Disable()
  1268. module.Options.Enabled = false
  1269. end
  1270. RunService.Stepped:Connect(function()
  1271. if module.Options.Enabled then
  1272. local A_1 = "LL"
  1273. local Event = game:GetService("ReplicatedStorage").Events.Event1
  1274. Event:InvokeServer(A_1)
  1275. end
  1276. end)
  1277. return module
  1278. end)()
  1279. local _Noclip = (function()
  1280. --// Variables
  1281. local module = {}
  1282.  
  1283. local RunService = game:GetService("RunService")
  1284. local Players = game:GetService("Players")
  1285. local Player = Players.LocalPlayer
  1286. local MANAFLY = nil
  1287.  
  1288. module.Options = {
  1289. Enabled = false,
  1290. Color = Color3.new(1, 0, 0),
  1291. speed = 0,
  1292. Opacity = 0,
  1293. Up="x",
  1294. Down="z",
  1295. }
  1296.  
  1297. function module:Enable()
  1298. module.Options.Enabled = true
  1299. end
  1300.  
  1301. function module:Disable()
  1302. module.Options.Enabled = false
  1303. end
  1304. RunService.Stepped:Connect(function()
  1305. if module.Options.Enabled then
  1306. for _,v in pairs(Player.Character:GetDescendants())do
  1307. if v:IsA("BasePart") then
  1308. v.CanCollide = false
  1309. end
  1310. end
  1311. end
  1312. end)
  1313. return module
  1314. end)()
  1315.  
  1316.  
  1317. --// Variables
  1318. local RunService = game:GetService("RunService")
  1319. local HttpService = game:GetService("HttpService")
  1320. local UserInputService = game:GetService("UserInputService")
  1321. local Players = game:GetService("Players")
  1322. local Player = Players.LocalPlayer
  1323. local Mouse = Player:GetMouse()
  1324.  
  1325. local gui = GUIData[1]
  1326. local saveData = GUIData[2]
  1327. local screenGui = GUIData[3]
  1328.  
  1329. local screenscale = 250
  1330. local opacity = 1
  1331. local backcolor = Color3.new()
  1332.  
  1333. --// Saving
  1334. local readfile = readfile or function() end
  1335. pcall(function()
  1336. local JSONData = readfile("OpenGui.txt")
  1337. if JSONData then
  1338. local LUAData = HttpService:JSONDecode(JSONData)
  1339. saveData.Options = LUAData.Options
  1340. saveData.Hotkeys = LUAData.Hotkeys
  1341. print("Save Data found")
  1342. else
  1343. print("Save Data not found")
  1344. end
  1345. end)
  1346.  
  1347.  
  1348. --// UI Creation
  1349.  
  1350. --// Render Frame
  1351. local Render = gui:create("Container", {
  1352. Name = "Render",
  1353. })--|
  1354. local OpenGui = Render.self:create("Toggle", {
  1355. Name = "OpenGui",
  1356. Default = true,
  1357. Hotkey = tostring(Enum.KeyCode.RightControl),
  1358. Hint = "The navigation GUI",
  1359. Callback = function(enabled)
  1360. for _, frame in pairs(screenGui:GetChildren()) do
  1361. if frame:IsA("Frame") then
  1362. frame.Visible = enabled
  1363. end
  1364. end
  1365. screenGui.Modal.Visible = enabled
  1366. screenGui.Hint.Visible = false
  1367. end,
  1368. })--|
  1369.  
  1370. local Opacity = OpenGui.self:create("Number", {
  1371. Name = "Opacity",
  1372. Min = 0,
  1373. Max = 1,
  1374. Round = 0.01,
  1375. Default = 0.75,
  1376. Hint = "Transparency of the navigation GUI",
  1377. Callback = function(alpha)
  1378. opacity = 1 - alpha
  1379. for _, frame in pairs(screenGui:GetChildren()) do
  1380. if frame:IsA("Frame") then
  1381. frame.BackgroundTransparency = 1 - alpha
  1382. frame.OptionsFrame.BackgroundTransparency = 1 - alpha
  1383. end
  1384. end
  1385. end,
  1386. })
  1387.  
  1388. local Width = OpenGui.self:create("Number", {
  1389. Name = "Width",
  1390. Min = 200,
  1391. Max = 400,
  1392. Round = 1,
  1393. Default = 300,
  1394. Hint = "Width of the navigation GUI",
  1395. Callback = function(scale)
  1396. screenscale = scale
  1397. for _, frame in pairs(screenGui:GetChildren()) do
  1398. if frame:IsA("Frame") then
  1399. frame.Size = UDim2.new(0, scale, 0, frame.Size.Y.Offset)
  1400. end
  1401. end
  1402. end,
  1403. })
  1404.  
  1405. local Color = OpenGui.self:create("Color", {
  1406. Name = "Background Color",
  1407. Default = Color3.fromRGB(40, 40, 40),
  1408. Hint = "Background color of the navigation GUI",
  1409. Callback = function(color)
  1410. backcolor = color
  1411. for _, frame in pairs(screenGui:GetChildren()) do
  1412. if frame:IsA("Frame") then
  1413. frame.BackgroundColor3 = color
  1414. frame.OptionsFrame.BackgroundColor3 = color
  1415. end
  1416. end
  1417. end,
  1418. })
  1419.  
  1420. local ESP = Render.self:create("Toggle", {
  1421. Name = "ESP",
  1422. Default = false,
  1423. Hint = "Toggle enemy ESP",
  1424. Callback = function(enabled)
  1425. _ESP.Options.Enabled = enabled
  1426. if enabled then
  1427. _ESP:Enable()
  1428. else
  1429. _ESP:Disable()
  1430. end
  1431. end,
  1432. })
  1433.  
  1434. local ESPColor = ESP.self:create("Color", {
  1435. Name = "ESP Color",
  1436. Default = Color3.new(1, 1, 1),
  1437. Hint = "Color of the enemy ESP",
  1438. Callback = function(color)
  1439. _ESP.Options.Color = color
  1440. end,
  1441. })
  1442.  
  1443. local ESPNpcsColor = ESP.self:create("Color", {
  1444. Name = "Npcs Color",
  1445. Default = Color3.new(1, 1, 1),
  1446. Hint = "Color of Npcs enemy ESP",
  1447. Callback = function(color)
  1448. _ESP.Options.Npcs_Color = color
  1449. end,
  1450. })
  1451.  
  1452. local ESPShowTeam = ESP.self:create("Checkbox", {
  1453. Name = "Show Magical/Legendary",
  1454. Default = false,
  1455. Hint = "Magical/Legendary are highlighted",
  1456. Callback = function(enabled)
  1457. _ESP.Options.MagicalOrLegendary = enabled
  1458. end,
  1459. })
  1460.  
  1461. local ESPMagicalColor = ESP.self:create("Color", {
  1462. Name = "Magical Color",
  1463. Default = Color3.new(0, 1, 1),
  1464. Hint = "Color of Magical enemy ESP",
  1465. Callback = function(color)
  1466. _ESP.Options.Magical_Color = color
  1467. end,
  1468. })
  1469.  
  1470. local ESPLegendaryColor = ESP.self:create("Color", {
  1471. Name = "Legendary Color",
  1472. Default = Color3.new(1, 1, 0),
  1473. Hint = "Color of Legendary enemy ESP",
  1474. Callback = function(color)
  1475. _ESP.Options.Legendary_Color = color
  1476. end,
  1477. })
  1478.  
  1479. local ESPOpacity = ESP.self:create("Number", {
  1480. Name = "Opacity",
  1481. Default = 0.5,
  1482. Min = 0,
  1483. Max = 1,
  1484. Round = 0.001,
  1485. Hint = "Visibility of the ESP",
  1486. Callback = function(opacity)
  1487. _ESP.Options.Opacity = opacity
  1488. end,
  1489. })
  1490.  
  1491. local FullBright = Render.self:create("Toggle", {
  1492. Name = "FullBright",
  1493. Default = false,
  1494. Hint = "Toggle FullBright",
  1495. Callback = function(enabled)
  1496. _FullBright.Options.Enabled = enabled
  1497. if enabled then
  1498. _FullBright:Enable()
  1499. else
  1500. _FullBright:Disable()
  1501. end
  1502. end,
  1503. })
  1504.  
  1505. local ExposureCompensation = FullBright.self:create("Number", {
  1506. Name = "ExposureCompensation ",
  1507. Default = 0.5,
  1508. Min = 0,
  1509. Max = 100,
  1510. Round = 0.001,
  1511. Hint = "Change ExposureCompensation",
  1512. Callback = function(exposureCompensation)
  1513. _FullBright.Options.ExposureCompensation = exposureCompensation
  1514. end,
  1515. })
  1516.  
  1517. local Brightness = FullBright.self:create("Number", {
  1518. Name = "Brightness ",
  1519. Default = 2,
  1520. Min = 0,
  1521. Max = 40,
  1522. Round = 0.001,
  1523. Hint = "Change Brightness",
  1524. Callback = function(brightness)
  1525. _FullBright.Options.Brightness = brightness
  1526. end,
  1527. })
  1528.  
  1529. local Mana = gui:create("Container", {
  1530. Name = "Mana",
  1531. })
  1532.  
  1533. local ManaFly = Mana.self:create("Toggle", {
  1534. Name = "ManaFly",
  1535. Default = false,
  1536. Hint = "Toggle ManaFly",
  1537. Hotkey = tostring(Enum.KeyCode.B),
  1538. Callback = function(enabled)
  1539. _ManaFly.Options.Enabled = enabled
  1540. if enabled then
  1541. _ManaFly:Enable()
  1542. else
  1543. _ManaFly:Disable()
  1544. end
  1545. end,
  1546. })
  1547.  
  1548. local ManaFlySpeed = ManaFly.self:create("Number", {
  1549. Name = "FlySpeed",
  1550. Default = 0,
  1551. Min = 0,
  1552. Max = 5,
  1553. Round = 0.001,
  1554. Hint = "Speed Boost",
  1555. Callback = function(Speed)
  1556. _ManaFly:SpeedChange(Speed)
  1557. _ManaFly.Options.speed = tonumber(Speed)
  1558. end,
  1559. })
  1560.  
  1561. local ManaFlyOpacity = ManaFly.self:create("Number", {
  1562. Name = "Opacity",
  1563. Default = 0,
  1564. Min = 0,
  1565. Max = 1,
  1566. Round = 0.001,
  1567. Hint = "Visibility of the Part",
  1568. Callback = function(opacity)
  1569. _ManaFly.Options.Opacity = 1-opacity
  1570. end,
  1571. })
  1572.  
  1573. local ManaPartMaterial = ManaFly.self:create("Mode", {
  1574. Name = "ManaPart Material",
  1575. Hint = "Change ManaPart Material",
  1576. Default = 1,
  1577. Modes = {
  1578. "Air",
  1579. "ForceField"
  1580. },
  1581. Callback = function(value)
  1582. _ManaFly.Options.PartMaterial = value
  1583. end,
  1584. })
  1585.  
  1586. local ManaSoul = Mana.self:create("Toggle", {
  1587. Name = "ManaSoul",
  1588. Default = false,
  1589. Hint = "Toggle Noclip",
  1590. Callback = function(enabled)
  1591. _Noclip.Options.Enabled = enabled
  1592. if enabled then
  1593. _Noclip:Enable()
  1594. else
  1595. _Noclip:Disable()
  1596. end
  1597. end,
  1598. })
  1599.  
  1600.  
  1601. local ManaRun = Mana.self:create("Toggle", {
  1602. Name = "ManaRun",
  1603. Default = false,
  1604. Hint = "Toggle ManaRun",
  1605. Hotkey = tostring(Enum.KeyCode.V),
  1606. Callback = function(enabled)
  1607. _ManaRun.Options.Enabled = enabled
  1608. if enabled then
  1609. _ManaRun:Enable()
  1610. else
  1611. _ManaRun:Disable()
  1612. end
  1613. end,
  1614. })
  1615. local ManaRunSpeed = ManaRun.self:create("Number", {
  1616. Name = "Boost Speed",
  1617. Default = 0,
  1618. Min = 0,
  1619. Max = 5,
  1620. Round = 0.001,
  1621. Hint = "Speed Boost",
  1622. Callback = function(Speed)
  1623. _ManaRun:SpeedChange(Speed)
  1624. _ManaRun.Options.speed = tonumber(Speed)
  1625. end,
  1626. })
  1627.  
  1628. local Attack = gui:create("Container", {
  1629. Name = "Attack",
  1630. })
  1631.  
  1632. local NOCD = Attack.self:create("Toggle", {
  1633. Name = "No Cooldown Attack",
  1634. Default = false,
  1635. Hint = "Toggle No Cooldown Attack",
  1636. Hotkey = tostring(Enum.KeyCode.B),
  1637. Callback = function(enabled)
  1638. _nocd.Options.Enabled = enabled
  1639. if enabled then
  1640. _nocd:Enable()
  1641. else
  1642. _nocd:Disable()
  1643. end
  1644. end,
  1645. })
  1646.  
  1647. RunService.RenderStepped:Connect(function()
  1648. for _, frame in pairs(screenGui:GetChildren()) do
  1649. if frame:IsA("Frame") then
  1650. frame.Size = UDim2.new(0, screenscale, 0, frame.Size.Y.Offset)
  1651.  
  1652. frame.BackgroundTransparency = opacity
  1653. frame.OptionsFrame.BackgroundTransparency = opacity
  1654.  
  1655. frame.BackgroundColor3 = backcolor
  1656. frame.OptionsFrame.BackgroundColor3 = backcolor
  1657. end
  1658. end
  1659. end)
  1660.  
  1661. notify.Text = "Loaded"
  1662. game:GetService("StarterGui"):SetCore("SendNotification",notify)
  1663. notify.Text = "Got it?"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement