1. getgenv().values = {} -- this has been made by Bad#9672, tested by WetIDreamz#0001 and zeox#9999
  2. local library = {}
  3. local Signal = loadstring(game:HttpGet("https://raw.githubusercontent.com/Quenty/NevermoreEngine/version2/Modules/Shared/Events/Signal.lua"))()
  4. local ConfigSave = Signal.new("ConfigSave")
  5. local ConfigLoad = Signal.new("ConfigLoad")
  6. local txt = game:GetService("TextService")
  7. local TweenService = game:GetService("TweenService")
  8. function library:Tween(...) TweenService:Create(...):Play() end
  9. local cfglocation = "ovacfg/"
  10. makefolder("ovacfg")
  11. -- caching
  12. local Vec2 = Vector2.new
  13. local Vec3 = Vector3.new
  14. local CF = CFrame.new
  15. local INST = Instance.new
  16. local COL3 = Color3.new
  17. local COL3RGB = Color3.fromRGB
  18. local COL3HSV = Color3.fromHSV
  19. local CLAMP = math.clamp
  20. local DEG = math.deg
  21. local FLOOR = math.floor
  22. local ACOS = math.acos
  23. local RANDOM = math.random
  24. local ATAN2 = math.atan2
  25. local HUGE = math.huge
  26. local RAD = math.rad
  27. local MIN = math.min
  28. local POW = math.pow
  29. local UDIM2 = UDim2.new
  30. local CFAngles = CFrame.Angles
  31. local FIND = string.find
  32. local LEN = string.len
  33. local SUB = string.sub
  34. local GSUB = string.gsub
  35. local RAY = Ray.new
  36. local INSERT = table.insert
  37. local TBLFIND = table.find
  38. local TBLREMOVE = table.remove
  39. local TBLSORT = table.sort
  40. -- i see those pastes lying around
  41. -- Bad 9672 & WetIDreamz 0001 & zeox 9999
  42. function rgbtotbl(rgb)
  43. return {R = rgb.R, G = rgb.G, B = rgb.B}
  44. end
  45. function tbltorgb(tbl)
  46. return COL3(tbl.R, tbl.G, tbl.B)
  47. end
  48. local function deepCopy(original)
  49. local copy = {}
  50. for k, v in pairs(original) do
  51. if type(v) == "table" then
  52. v = deepCopy(v)
  53. end
  54. copy[k] = v
  55. end
  56. return copy
  57. end
  58. function library:ConfigFix(cfg)
  59. local copy = game:GetService("HttpService"):JSONDecode(readfile(cfglocation..cfg..".txt"))
  60. for i,Tabs in pairs(copy) do
  61. for i,Sectors in pairs(Tabs) do
  62. for i,Elements in pairs(Sectors) do
  63. if Elements.Color ~= nil then
  64. local a = Elements.Color
  65. Elements.Color = tbltorgb(a)
  66. end
  67. end
  68. end
  69. end
  70. return copy
  71. end
  72. function library:SaveConfig(cfg)
  73. local copy = deepCopy(values)
  74. for i,Tabs in pairs(copy) do
  75. for i,Sectors in pairs(Tabs) do
  76. for i,Elements in pairs(Sectors) do
  77. if Elements.Color ~= nil then
  78. Elements.Color = {R=Elements.Color.R, G=Elements.Color.G, B=Elements.Color.B}
  79. end
  80. end
  81. end
  82. end
  83. writefile(cfglocation..cfg..".txt", game:GetService("HttpService"):JSONEncode(copy))
  84. end
  85. function library:New(name)
  86. local menu = {}
  87. local Ova = INST("ScreenGui")
  88. local Menu = INST("ImageLabel")
  89. local TextLabel = INST("TextLabel")
  90. local TabButtons = INST("Frame")
  91. local UIListLayout = INST("UIListLayout")
  92. local Tabs = INST("Frame")
  93. Ova.Name = "electric boogalo"
  94. Ova.ResetOnSpawn = false
  95. Ova.ZIndexBehavior = "Global"
  96. Ova.DisplayOrder = 420133769
  97. local UIScale = INST("UIScale")
  98. UIScale.Parent = Ova
  99. function menu:SetScale(scale)
  100. UIScale.Scale = scale
  101. end
  102. local but = INST("TextButton")
  103. but.Modal = true
  104. but.Text = ""
  105. but.BackgroundTransparency = 1
  106. but.Parent = Ova
  107. local cursor = INST("ImageLabel")
  108. cursor.Name = "cursor"
  109. cursor.Parent = Ova
  110. cursor.BackgroundTransparency = 1
  111. cursor.Size = UDIM2(0,17,0,17)
  112. cursor.Image = "rbxassetid://518398610"
  113. cursor.ZIndex = 1000
  114. cursor.ImageColor3 = COL3RGB(255,255,255)
  115. local Players = game:GetService("Players")
  116. local LocalPlayer = Players.LocalPlayer
  117. local Mouse = LocalPlayer:GetMouse()
  118. game:GetService("RunService").RenderStepped:connect(function()
  119. cursor.Visible = Ova.Enabled
  120. cursor.Position = UDIM2(0,Mouse.X-3,0,Mouse.Y+1)
  121. end)
  122. Menu.Name = "Menu"
  123. Menu.Parent = Ova
  124. Menu.BackgroundColor3 = COL3RGB(255, 255, 255)
  125. Menu.Position = UDIM2(0.5, -300, 0.5, -300)
  126. Menu.Size = UDIM2(0, 600, 0, 610)
  127. Menu.Image = "http://www.roblox.com/asset/?id=7265208537"
  128. Menu.BorderSizePixel = 0
  129. library.uiopen = true
  130. game:GetService("UserInputService").InputBegan:Connect(function(key)
  131. if key.KeyCode == Enum.KeyCode.Insert then
  132. Ova.Enabled = not Ova.Enabled
  133. library.uiopen = Ova.Enabled
  134. end
  135. end)
  136. local KeybindList = INST("ScreenGui")
  137. do
  138. local TextLabel = INST("TextLabel")
  139. local Frame = INST("Frame")
  140. local UIListLayout = INST("UIListLayout")
  141. KeybindList.Name = "KeybindList"
  142. KeybindList.ZIndexBehavior = Enum.ZIndexBehavior.Global
  143. KeybindList.Enabled = false
  144. TextLabel.Parent = KeybindList
  145. TextLabel.BackgroundColor3 = COL3RGB(30, 30, 39)
  146. TextLabel.BorderColor3 = COL3RGB(255, 37, 110)
  147. TextLabel.Position = UDIM2(0, 1, 0.300000012, 0)
  148. TextLabel.Size = UDIM2(0, 155, 0, 24)
  149. TextLabel.ZIndex = 2
  150. TextLabel.Font = Enum.Font.SourceSansSemibold
  151. TextLabel.Text = "keybinds"
  152. TextLabel.TextColor3 = COL3RGB(255, 37, 110)
  153. TextLabel.TextSize = 14.000
  154. Frame.Parent = TextLabel
  155. Frame.BackgroundColor3 = COL3RGB(255, 255, 255)
  156. Frame.BackgroundTransparency = 1.000
  157. Frame.Position = UDIM2(0, 0, 1, 1)
  158. Frame.Size = UDIM2(1, 0, 1, 0)
  159. UIListLayout.Parent = Frame
  160. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  161. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  162. KeybindList.Parent = game.CoreGui
  163. end
  164. function keybindadd(text)
  165. if not KeybindList.TextLabel.Frame:FindFirstChild(text) then
  166. local TextLabel = INST("TextLabel")
  167. TextLabel.BackgroundColor3 = COL3RGB(30, 30, 39)
  168. TextLabel.BorderColor3 = COL3RGB(255, 37, 110)
  169. TextLabel.BorderSizePixel = 0
  170. TextLabel.Size = UDIM2(0, 155, 0, 24)
  171. TextLabel.ZIndex = 2
  172. TextLabel.Font = Enum.Font.SourceSansSemibold
  173. TextLabel.Text = text
  174. TextLabel.TextColor3 = COL3RGB(255, 255, 255)
  175. TextLabel.TextSize = 14.000
  176. TextLabel.Name = text
  177. TextLabel.Parent = KeybindList.TextLabel.Frame
  178. end
  179. end
  180. function keybindremove(text)
  181. if KeybindList.TextLabel.Frame:FindFirstChild(text) then
  182. KeybindList.TextLabel.Frame:FindFirstChild(text):Destroy()
  183. end
  184. end
  185. function library:SetKeybindVisible(Joe)
  186. KeybindList.Enabled = Joe
  187. end
  188. library.dragging = false
  189. do
  190. local UserInputService = game:GetService("UserInputService")
  191. local a = Menu
  192. local dragInput
  193. local dragStart
  194. local startPos
  195. local function update(input)
  196. local delta = input.Position - dragStart
  197. a.Position = UDIM2(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  198. end
  199. a.InputBegan:Connect(function(input)
  200. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  201. library.dragging = true
  202. dragStart = input.Position
  203. startPos = a.Position
  204. input.Changed:Connect(function()
  205. if input.UserInputState == Enum.UserInputState.End then
  206. library.dragging = false
  207. end
  208. end)
  209. end
  210. end)
  211. a.InputChanged:Connect(function(input)
  212. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  213. dragInput = input
  214. end
  215. end)
  216. UserInputService.InputChanged:Connect(function(input)
  217. if input == dragInput and library.dragging then
  218. update(input)
  219. end
  220. end)
  221. end
  222. TextLabel.Parent = Menu
  223. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  224. TextLabel.BackgroundTransparency = 1
  225. TextLabel.Position = UDIM2(0, 7, 0, 0)
  226. TextLabel.Size = UDIM2(0, 0, 0, 29)
  227. TextLabel.Size = UDIM2(0, txt:GetTextSize(name, 15, Enum.Font.SourceSansSemibold, Vec2(700, TextLabel.AbsoluteSize.Y)).X, 0, 29)
  228. TextLabel.Font = Enum.Font.SourceSansSemibold
  229. TextLabel.Text = name
  230. TextLabel.TextColor3 = COL3RGB(255, 255, 255)
  231. TextLabel.TextSize = 15.000
  232. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  233. TabButtons.Name = "TabButtons"
  234. TabButtons.Parent = Menu
  235. TabButtons.BackgroundColor3 = COL3RGB(255, 255, 255)
  236. TabButtons.BackgroundTransparency = 1
  237. TabButtons.Position = UDIM2(TextLabel.Size.X.Scale, TextLabel.Size.X.Offset+10, 0, 0)
  238. TabButtons.Size = UDIM2(TextLabel.Size.X.Scale, 590-TextLabel.Size.X.Offset, 0, 29)
  239. UIListLayout.Parent = TabButtons
  240. UIListLayout.FillDirection = Enum.FillDirection.Horizontal
  241. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  242. UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
  243. Tabs.Name = "Tabs"
  244. Tabs.Parent = Menu
  245. Tabs.BackgroundColor3 = COL3RGB(255, 255, 255)
  246. Tabs.BackgroundTransparency = 1.000
  247. Tabs.Position = UDIM2(0, 0, 0, 32)
  248. Tabs.Size = UDIM2(0, 600, 0, 568)
  249. local first = true
  250. local currenttab
  251. function menu:Tab(text)
  252. local tabname
  253. tabname = text
  254. local Tab = {}
  255. values[tabname] = {}
  256. local TextButton = INST("TextButton")
  257. TextButton.BackgroundColor3 = COL3RGB(255, 255, 255)
  258. TextButton.BackgroundTransparency = 1
  259. TextButton.Size = UDIM2(0, txt:GetTextSize(text, 15, Enum.Font.SourceSansSemibold, Vec2(700,700)).X+12, 1, 0)
  260. TextButton.Font = Enum.Font.SourceSansSemibold
  261. TextButton.Text = text
  262. TextButton.TextColor3 = COL3RGB(200, 200, 200)
  263. TextButton.TextSize = 15.000
  264. TextButton.Parent = TabButtons
  265. local TabGui = INST("Frame")
  266. local Left = INST("Frame")
  267. local UIListLayout = INST("UIListLayout")
  268. local Right = INST("Frame")
  269. local UIListLayout_2 = INST("UIListLayout")
  270. TabGui.Name = "TabGui"
  271. TabGui.Parent = Tabs
  272. TabGui.BackgroundColor3 = COL3RGB(255, 255, 255)
  273. TabGui.BackgroundTransparency = 1.000
  274. TabGui.Size = UDIM2(1, 0, 1, 0)
  275. TabGui.Visible = false
  276. Left.Name = "Left"
  277. Left.Parent = TabGui
  278. Left.BackgroundColor3 = COL3RGB(255, 255, 255)
  279. Left.BackgroundTransparency = 1.000
  280. Left.Position = UDIM2(0, 15, 0, 11)
  281. Left.Size = UDIM2(0, 279, 0, 543)
  282. UIListLayout.Parent = Left
  283. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  284. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  285. UIListLayout.Padding = UDim.new(0, 10)
  286. Right.Name = "Right"
  287. Right.Parent = TabGui
  288. Right.BackgroundColor3 = COL3RGB(255, 255, 255)
  289. Right.BackgroundTransparency = 1.000
  290. Right.Position = UDIM2(0, 303, 0, 11)
  291. Right.Size = UDIM2(0, 279, 0, 543)
  292. UIListLayout_2.Parent = Right
  293. UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
  294. UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  295. UIListLayout_2.Padding = UDim.new(0, 10)
  296. if first then
  297. TextButton.TextColor3 = COL3RGB(255, 255, 255)
  298. currenttab = text
  299. TabGui.Visible = true
  300. first = false
  301. end
  302. TextButton.MouseButton1Down:Connect(function()
  303. if currenttab ~= text then
  304. for i,v in pairs(TabButtons:GetChildren()) do
  305. if v:IsA("TextButton") then
  306. library:Tween(v, TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  307. end
  308. end
  309. for i,v in pairs(Tabs:GetChildren()) do
  310. v.Visible = false
  311. end
  312. library:Tween(TextButton, TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  313. currenttab = text
  314. TabGui.Visible = true
  315. end
  316. end)
  317. function Tab:MSector(text, side)
  318. local sectorname = text
  319. local MSector = {}
  320. values[tabname][text] = {}
  321. local Section = INST("Frame")
  322. local SectionText = INST("TextLabel")
  323. local Inner = INST("Frame")
  324. local sectiontabs = INST("Frame")
  325. local UIListLayout_2 = INST("UIListLayout")
  326. Section.Name = "Section"
  327. Section.Parent = TabGui[side]
  328. Section.BackgroundColor3 = COL3RGB(27, 27, 35)
  329. Section.BorderColor3 = COL3RGB(27, 27, 35)
  330. Section.BorderSizePixel = 0
  331. Section.Size = UDIM2(1, 0, 0, 33)
  332. SectionText.Name = "SectionText"
  333. SectionText.Parent = Section
  334. SectionText.BackgroundColor3 = COL3RGB(255, 255, 255)
  335. SectionText.BackgroundTransparency = 1.000
  336. SectionText.Position = UDIM2(0, 7, 0, -12)
  337. SectionText.Size = UDIM2(0, 270, 0, 19)
  338. SectionText.ZIndex = 2
  339. SectionText.Font = Enum.Font.SourceSansSemibold
  340. SectionText.Text = text
  341. SectionText.TextColor3 = COL3RGB(255, 255, 255)
  342. SectionText.TextSize = 15.000
  343. SectionText.TextXAlignment = Enum.TextXAlignment.Left
  344. Inner.Name = "Inner"
  345. Inner.Parent = Section
  346. Inner.BackgroundColor3 = COL3RGB(30, 30, 39)
  347. Inner.BorderColor3 = COL3RGB(0, 0, 0)
  348. Inner.BorderSizePixel = 0
  349. Inner.Position = UDIM2(0, 1, 0, 1)
  350. Inner.Size = UDIM2(1, -2, 1, -9)
  351. sectiontabs.Name = "sectiontabs"
  352. sectiontabs.Parent = Section
  353. sectiontabs.BackgroundColor3 = COL3RGB(255, 255, 255)
  354. sectiontabs.BackgroundTransparency = 1.000
  355. sectiontabs.Position = UDIM2(0, 0, 0, 6)
  356. sectiontabs.Size = UDIM2(1, 0, 0, 22)
  357. UIListLayout_2.Parent = sectiontabs
  358. UIListLayout_2.FillDirection = Enum.FillDirection.Horizontal
  359. UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
  360. UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  361. UIListLayout_2.Padding = UDim.new(0,4)
  362. local firs = true
  363. local selected
  364. function MSector:Tab(text)
  365. local tab = {}
  366. values[tabname][sectorname][text] = {}
  367. local tabtext = text
  368. local tabsize = UDIM2(1, 0, 0, 44)
  369. local tab1 = INST("Frame")
  370. local UIPadding = INST("UIPadding")
  371. local UIListLayout = INST("UIListLayout")
  372. local TextButton = INST("TextButton")
  373. tab1.Name = text
  374. tab1.Parent = Inner
  375. tab1.BackgroundColor3 = COL3RGB(30, 30, 39)
  376. tab1.BorderColor3 = COL3RGB(27, 27, 35)
  377. tab1.BorderSizePixel = 0
  378. tab1.Position = UDIM2(0, 0, 0, 30)
  379. tab1.Size = UDIM2(1, 0, 1, -21)
  380. tab1.Name = text
  381. tab1.Visible = false
  382. UIPadding.Parent = tab1
  383. UIPadding.PaddingTop = UDim.new(0, 0)
  384. UIListLayout.Parent = tab1
  385. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  386. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  387. UIListLayout.Padding = UDim.new(0, 1)
  388. TextButton.Parent = sectiontabs
  389. TextButton.BackgroundColor3 = COL3RGB(255, 255, 255)
  390. TextButton.BackgroundTransparency = 1.000
  391. TextButton.Size = UDIM2(0, txt:GetTextSize(text, 14, Enum.Font.SourceSansSemibold, Vec2(700,700)).X + 2, 1, 0)
  392. TextButton.Font = Enum.Font.SourceSansSemibold
  393. TextButton.Text = text
  394. TextButton.TextColor3 = COL3RGB(200, 200, 200)
  395. TextButton.TextSize = 14.000
  396. TextButton.Name = text
  397. TextButton.MouseButton1Down:Connect(function()
  398. for i,v in pairs(Inner:GetChildren()) do
  399. v.Visible = false
  400. end
  401. for i,v in pairs(sectiontabs:GetChildren()) do
  402. if v:IsA("TextButton") then
  403. library:Tween(v, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200,200,200)})
  404. end
  405. end
  406. Section.Size = tabsize
  407. tab1.Visible = true
  408. library:Tween(TextButton, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  409. end)
  410. function tab:Element(type, text, data, callback)
  411. local Element = {}
  412. data = data or {}
  413. callback = callback or function() end
  414. values[tabname][sectorname][tabtext][text] = {}
  415. if type == "Jumbobox" then
  416. tabsize = tabsize + UDIM2(0,0,0, 39)
  417. Element.value = {Jumbobox = {}}
  418. data.options = data.options or {}
  419. local Dropdown = INST("Frame")
  420. local Button = INST("TextButton")
  421. local TextLabel = INST("TextLabel")
  422. local Drop = INST("ScrollingFrame")
  423. local Button_2 = INST("TextButton")
  424. local TextLabel_2 = INST("TextLabel")
  425. local UIListLayout = INST("UIListLayout")
  426. local ImageLabel = INST("ImageLabel")
  427. local TextLabel_3 = INST("TextLabel")
  428. Dropdown.Name = "Dropdown"
  429. Dropdown.Parent = tab1
  430. Dropdown.BackgroundColor3 = COL3RGB(255, 255, 255)
  431. Dropdown.BackgroundTransparency = 1.000
  432. Dropdown.Position = UDIM2(0, 0, 0.255102038, 0)
  433. Dropdown.Size = UDIM2(1, 0, 0, 39)
  434. Button.Name = "Button"
  435. Button.Parent = Dropdown
  436. Button.BackgroundColor3 = COL3RGB(33, 35, 47)
  437. Button.BorderColor3 = COL3RGB(27, 27, 35)
  438. Button.Position = UDIM2(0, 30, 0, 16)
  439. Button.Size = UDIM2(0, 175, 0, 17)
  440. Button.AutoButtonColor = false
  441. Button.Font = Enum.Font.SourceSans
  442. Button.Text = ""
  443. Button.TextColor3 = COL3RGB(0, 0, 0)
  444. Button.TextSize = 14.000
  445. TextLabel.Parent = Button
  446. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  447. TextLabel.BackgroundTransparency = 1.000
  448. TextLabel.BorderColor3 = COL3RGB(27, 42, 53)
  449. TextLabel.Position = UDIM2(0, 5, 0, 0)
  450. TextLabel.Size = UDIM2(-0.21714285, 208, 1, 0)
  451. TextLabel.Font = Enum.Font.SourceSansSemibold
  452. TextLabel.Text = "..."
  453. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  454. TextLabel.TextSize = 14.000
  455. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  456. local abcd = TextLabel
  457. Drop.Name = "Drop"
  458. Drop.Parent = Button
  459. Drop.Active = true
  460. Drop.BackgroundColor3 = COL3RGB(33, 35, 47)
  461. Drop.BorderColor3 = COL3RGB(27, 27, 35)
  462. Drop.Position = UDIM2(0, 0, 1, 1)
  463. Drop.Size = UDIM2(1, 0, 0, 20)
  464. Drop.Visible = false
  465. Drop.BottomImage = "http://www.roblox.com/asset/?id=6724808282"
  466. Drop.CanvasSize = UDIM2(0, 0, 0, 0)
  467. Drop.ScrollBarThickness = 4
  468. Drop.TopImage = "http://www.roblox.com/asset/?id=6724808282"
  469. Drop.MidImage = "http://www.roblox.com/asset/?id=6724808282"
  470. Drop.AutomaticCanvasSize = "Y"
  471. Drop.ZIndex = 5
  472. Drop.ScrollBarImageColor3 = COL3RGB(255, 37, 110)
  473. UIListLayout.Parent = Drop
  474. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  475. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  476. values[tabname][sectorname][tabtext][text] = Element.value
  477. local num = #data.options
  478. if num > 5 then
  479. Drop.Size = UDIM2(1, 0, 0, 85)
  480. else
  481. Drop.Size = UDIM2(1, 0, 0, 17*num)
  482. end
  483. local first = true
  484. local function updatetext()
  485. local old = {}
  486. for i,v in ipairs(data.options) do
  487. if TBLFIND(Element.value.Jumbobox, v) then
  488. INSERT(old, v)
  489. else
  490. end
  491. end
  492. local str = ""
  493. if #old == 0 then
  494. str = "..."
  495. else
  496. if #old == 1 then
  497. str = old[1]
  498. else
  499. for i,v in ipairs(old) do
  500. if i == 1 then
  501. str = v
  502. else
  503. if i > 2 then
  504. if i < 4 then
  505. str = str..", ..."
  506. end
  507. else
  508. str = str..", "..v
  509. end
  510. end
  511. end
  512. end
  513. end
  514. abcd.Text = str
  515. end
  516. for i,v in ipairs(data.options) do
  517. do
  518. local Button = INST("TextButton")
  519. local TextLabel = INST("TextLabel")
  520. Button.Name = v
  521. Button.Parent = Drop
  522. Button.BackgroundColor3 = COL3RGB(35, 35, 47)
  523. Button.BorderColor3 = COL3RGB(27, 27, 35)
  524. Button.Position = UDIM2(0, 30, 0, 16)
  525. Button.Size = UDIM2(0, 175, 0, 17)
  526. Button.AutoButtonColor = false
  527. Button.Font = Enum.Font.SourceSans
  528. Button.Text = ""
  529. Button.TextColor3 = COL3RGB(0, 0, 0)
  530. Button.TextSize = 14.000
  531. Button.BorderSizePixel = 0
  532. Button.ZIndex = 6
  533. TextLabel.Parent = Button
  534. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  535. TextLabel.BackgroundTransparency = 1.000
  536. TextLabel.BorderColor3 = COL3RGB(27, 42, 53)
  537. TextLabel.Position = UDIM2(0, 5, 0, -1)
  538. TextLabel.Size = UDIM2(-0.21714285, 208, 1, 0)
  539. TextLabel.Font = Enum.Font.SourceSansSemibold
  540. TextLabel.Text = v
  541. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  542. TextLabel.TextSize = 14.000
  543. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  544. TextLabel.ZIndex = 6
  545. Button.MouseButton1Down:Connect(function()
  546. if TBLFIND(Element.value.Jumbobox, v) then
  547. for i,a in pairs(Element.value.Jumbobox) do
  548. if a == v then
  549. TBLREMOVE(Element.value.Jumbobox, i)
  550. end
  551. end
  552. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  553. else
  554. INSERT(Element.value.Jumbobox, v)
  555. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(175, 42, 86)})
  556. end
  557. updatetext()
  558. values[tabname][sectorname][tabtext][text] = Element.value
  559. callback(Element.value)
  560. end)
  561. Button.MouseEnter:Connect(function()
  562. if not TBLFIND(Element.value.Jumbobox, v) then
  563. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  564. end
  565. end)
  566. Button.MouseLeave:Connect(function()
  567. if not TBLFIND(Element.value.Jumbobox, v) then
  568. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  569. end
  570. end)
  571. first = false
  572. end
  573. end
  574. function Element:SetValue(val)
  575. Element.value = val
  576. for i,v in pairs(Drop:GetChildren()) do
  577. if v.Name ~= "UIListLayout" then
  578. if TBLFIND(val.Jumbobox, v.Name) then
  579. v.TextLabel.TextColor3 = COL3RGB(175, 175, 175)
  580. else
  581. v.TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  582. end
  583. end
  584. end
  585. updatetext()
  586. values[tabname][sectorname][tabtext][text] = Element.value
  587. callback(val)
  588. end
  589. if data.default then
  590. Element:SetValue(data.default)
  591. end
  592. ImageLabel.Parent = Button
  593. ImageLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  594. ImageLabel.BackgroundTransparency = 1.000
  595. ImageLabel.Position = UDIM2(0, 165, 0, 6)
  596. ImageLabel.Size = UDIM2(0, 6, 0, 4)
  597. ImageLabel.Image = "http://www.roblox.com/asset/?id=6724771531"
  598. TextLabel_3.Parent = Dropdown
  599. TextLabel_3.BackgroundColor3 = COL3RGB(200, 200, 200)
  600. TextLabel_3.BackgroundTransparency = 1.000
  601. TextLabel_3.Position = UDIM2(0, 32, 0, -1)
  602. TextLabel_3.Size = UDIM2(0.111913361, 208, 0.382215232, 0)
  603. TextLabel_3.Font = Enum.Font.SourceSansSemibold
  604. TextLabel_3.Text = text
  605. TextLabel_3.TextColor3 = COL3RGB(200, 200, 200)
  606. TextLabel_3.TextSize = 14.000
  607. TextLabel_3.TextXAlignment = Enum.TextXAlignment.Left
  608. Button.MouseButton1Down:Connect(function()
  609. Drop.Visible = not Drop.Visible
  610. if not Drop.Visible then
  611. Drop.CanvasPosition = Vec2(0,0)
  612. end
  613. end)
  614. local indrop = false
  615. local ind = false
  616. Drop.MouseEnter:Connect(function()
  617. indrop = true
  618. end)
  619. Drop.MouseLeave:Connect(function()
  620. indrop = false
  621. end)
  622. Button.MouseEnter:Connect(function()
  623. ind = true
  624. end)
  625. Button.MouseLeave:Connect(function()
  626. ind = false
  627. end)
  628. game:GetService("UserInputService").InputBegan:Connect(function(input)
  629. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 then
  630. if Drop.Visible == true and not indrop and not ind then
  631. Drop.Visible = false
  632. Drop.CanvasPosition = Vec2(0,0)
  633. end
  634. end
  635. end)
  636. elseif type == "TextBox" then
  637. elseif type == "ToggleKeybind" then
  638. tabsize = tabsize + UDIM2(0,0,0,16)
  639. Element.value = {Toggle = data.default and data.default.Toggle or false, Key, Type = "Always", Active = true}
  640. local Toggle = INST("Frame")
  641. local Button = INST("TextButton")
  642. local Color = INST("Frame")
  643. local TextLabel = INST("TextLabel")
  644. Toggle.Name = "Toggle"
  645. Toggle.Parent = tab1
  646. Toggle.BackgroundColor3 = COL3RGB(255, 255, 255)
  647. Toggle.BackgroundTransparency = 1.000
  648. Toggle.Size = UDIM2(1, 0, 0, 15)
  649. Button.Name = "Button"
  650. Button.Parent = Toggle
  651. Button.BackgroundColor3 = COL3RGB(255, 255, 255)
  652. Button.BackgroundTransparency = 1.000
  653. Button.Size = UDIM2(1, 0, 1, 0)
  654. Button.Font = Enum.Font.SourceSans
  655. Button.Text = ""
  656. Button.TextColor3 = COL3RGB(0, 0, 0)
  657. Button.TextSize = 14.000
  658. Color.Name = "Color"
  659. Color.Parent = Button
  660. Color.BackgroundColor3 = COL3RGB(33, 35, 47)
  661. Color.BorderColor3 = COL3RGB(27, 3275, 35)
  662. Color.Position = UDIM2(0, 15, 0.5, -5)
  663. Color.Size = UDIM2(0, 8, 0, 8)
  664. local binding = false
  665. TextLabel.Parent = Button
  666. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  667. TextLabel.BackgroundTransparency = 1.000
  668. TextLabel.Position = UDIM2(0, 32, 0, -1)
  669. TextLabel.Size = UDIM2(0.111913361, 208, 1, 0)
  670. TextLabel.Font = Enum.Font.SourceSansSemibold
  671. TextLabel.Text = text
  672. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  673. TextLabel.TextSize = 14.000
  674. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  675. local function update()
  676. if Element.value.Toggle then
  677. tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = COL3RGB(155, 22, 66)})
  678. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  679. else
  680. keybindremove(text)
  681. tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = COL3RGB(33, 35, 47)})
  682. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  683. end
  684. values[tabname][sectorname][tabtext][text] = Element.value
  685. callback(Element.value)
  686. end
  687. Button.MouseButton1Down:Connect(function()
  688. if not binding then
  689. Element.value.Toggle = not Element.value.Toggle
  690. update()
  691. values[tabname][sectorname][tabtext][text] = Element.value
  692. callback(Element.value)
  693. end
  694. end)
  695. if data.default then
  696. update()
  697. end
  698. values[tabname][sectorname][tabtext][text] = Element.value
  699. do
  700. local Keybind = INST("TextButton")
  701. local Frame = INST("Frame")
  702. local Always = INST("TextButton")
  703. local UIListLayout = INST("UIListLayout")
  704. local Hold = INST("TextButton")
  705. local Toggle = INST("TextButton")
  706. Keybind.Name = "Keybind"
  707. Keybind.Parent = Button
  708. Keybind.BackgroundColor3 = COL3RGB(33, 35, 47)
  709. Keybind.BorderColor3 = COL3RGB(27, 27, 35)
  710. Keybind.Position = UDIM2(0, 270, 0.5, -6)
  711. Keybind.Text = "NONE"
  712. Keybind.Size = UDIM2(0, 43, 0, 12)
  713. Keybind.Size = UDIM2(0,txt:GetTextSize("NONE", 14, Enum.Font.SourceSansSemibold, Vec2(700, 12)).X + 5,0, 12)
  714. Keybind.AutoButtonColor = false
  715. Keybind.Font = Enum.Font.SourceSansSemibold
  716. Keybind.TextColor3 = COL3RGB(200, 200, 200)
  717. Keybind.TextSize = 14.000
  718. Keybind.AnchorPoint = Vec2(1,0)
  719. Keybind.ZIndex = 3
  720. Frame.Parent = Keybind
  721. Frame.BackgroundColor3 = COL3RGB(33, 35, 47)
  722. Frame.BorderColor3 = COL3RGB(27, 27, 35)
  723. Frame.Position = UDIM2(1, -49, 0, 1)
  724. Frame.Size = UDIM2(0, 49, 0, 49)
  725. Frame.Visible = false
  726. Frame.ZIndex = 3
  727. Always.Name = "Always"
  728. Always.Parent = Frame
  729. Always.BackgroundColor3 = COL3RGB(33, 35, 47)
  730. Always.BackgroundTransparency = 1.000
  731. Always.BorderColor3 = COL3RGB(27, 27, 35)
  732. Always.Position = UDIM2(-3.03289485, 231, 0.115384616, -6)
  733. Always.Size = UDIM2(1, 0, 0, 16)
  734. Always.AutoButtonColor = false
  735. Always.Font = Enum.Font.SourceSansBold
  736. Always.Text = "Always"
  737. Always.TextColor3 = COL3RGB(173, 24, 74)
  738. Always.TextSize = 14.000
  739. Always.ZIndex = 3
  740. UIListLayout.Parent = Frame
  741. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  742. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  743. Hold.Name = "Hold"
  744. Hold.Parent = Frame
  745. Hold.BackgroundColor3 = COL3RGB(33, 35, 47)
  746. Hold.BackgroundTransparency = 1.000
  747. Hold.BorderColor3 = COL3RGB(27, 27, 35)
  748. Hold.Position = UDIM2(-3.03289485, 231, 0.115384616, -6)
  749. Hold.Size = UDIM2(1, 0, 0, 16)
  750. Hold.AutoButtonColor = false
  751. Hold.Font = Enum.Font.SourceSansSemibold
  752. Hold.Text = "Hold"
  753. Hold.TextColor3 = COL3RGB(200, 200, 200)
  754. Hold.TextSize = 14.000
  755. Hold.ZIndex = 3
  756. Toggle.Name = "Toggle"
  757. Toggle.Parent = Frame
  758. Toggle.BackgroundColor3 = COL3RGB(33, 35, 47)
  759. Toggle.BackgroundTransparency = 1.000
  760. Toggle.BorderColor3 = COL3RGB(27, 27, 35)
  761. Toggle.Position = UDIM2(-3.03289485, 231, 0.115384616, -6)
  762. Toggle.Size = UDIM2(1, 0, 0, 16)
  763. Toggle.AutoButtonColor = false
  764. Toggle.Font = Enum.Font.SourceSansSemibold
  765. Toggle.Text = "Toggle"
  766. Toggle.TextColor3 = COL3RGB(200, 200, 200)
  767. Toggle.TextSize = 14.000
  768. Toggle.ZIndex = 3
  769. for _,button in pairs(Frame:GetChildren()) do
  770. if button:IsA("TextButton") then
  771. button.MouseButton1Down:Connect(function()
  772. Element.value.Type = button.Text
  773. Frame.Visible = false
  774. Element.value.Active = Element.value.Type == "Always" and true or false
  775. if Element.value.Type == "Always" then
  776. keybindremove(text)
  777. end
  778. for _,button in pairs(Frame:GetChildren()) do
  779. if button:IsA("TextButton") and button.Text ~= Element.value.Type then
  780. button.Font = Enum.Font.SourceSansSemibold
  781. library:Tween(button, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200,200,200)})
  782. end
  783. end
  784. button.Font = Enum.Font.SourceSansBold
  785. button.TextColor3 = COL3RGB(60, 0, 90)
  786. values[tabname][sectorname][tabtext][text] = Element.value
  787. callback(Element.value)
  788. end)
  789. button.MouseEnter:Connect(function()
  790. if Element.value.Type ~= button.Text then
  791. library:Tween(button, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255,255,255)})
  792. end
  793. end)
  794. button.MouseLeave:Connect(function()
  795. if Element.value.Type ~= button.Text then
  796. library:Tween(button, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200,200,200)})
  797. end
  798. end)
  799. end
  800. end
  801. Keybind.MouseButton1Down:Connect(function()
  802. if not binding then
  803. wait()
  804. binding = true
  805. Keybind.Text = "..."
  806. Keybind.Size = UDIM2(0,txt:GetTextSize("...", 14, Enum.Font.SourceSansSemibold, Vec2(700, 12)).X + 4,0, 12)
  807. end
  808. end)
  809. Keybind.MouseButton2Down:Connect(function()
  810. if not binding then
  811. Frame.Visible = not Frame.Visible
  812. end
  813. end)
  814. local Player = game.Players.LocalPlayer
  815. local Mouse = Player:GetMouse()
  816. local InFrame = false
  817. Frame.MouseEnter:Connect(function()
  818. InFrame = true
  819. end)
  820. Frame.MouseLeave:Connect(function()
  821. InFrame = false
  822. end)
  823. local InFrame2 = false
  824. Keybind.MouseEnter:Connect(function()
  825. InFrame2 = true
  826. end)
  827. Keybind.MouseLeave:Connect(function()
  828. InFrame2 = false
  829. end)
  830. game:GetService("UserInputService").InputBegan:Connect(function(input)
  831. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 and not binding then
  832. if Frame.Visible == true and not InFrame and not InFrame2 then
  833. Frame.Visible = false
  834. end
  835. end
  836. if binding then
  837. binding = false
  838. Keybind.Text = input.KeyCode.Name ~= "Unknown" and input.KeyCode.Name:upper() or input.UserInputType.Name:upper()
  839. Keybind.Size = UDIM2(0,txt:GetTextSize(Keybind.Text, 14, Enum.Font.SourceSansSemibold, Vec2(700, 12)).X + 5,0, 12)
  840. Element.value.Key = input.KeyCode.Name ~= "Unknown" and input.KeyCode.Name or input.UserInputType.Name
  841. if input.KeyCode.Name == "Backspace" then
  842. Keybind.Text = "NONE"
  843. Keybind.Size = UDIM2(0,txt:GetTextSize(Keybind.Text, 14, Enum.Font.SourceSansSemibold, Vec2(700, 12)).X + 4,0, 12)
  844. Element.value.Key = nil
  845. end
  846. else
  847. if Element.value.Key ~= nil then
  848. if FIND(Element.value.Key, "Mouse") then
  849. if input.UserInputType == Enum.UserInputType[Element.value.Key] then
  850. if Element.value.Type == "Hold" then
  851. Element.value.Active = true
  852. if Element.value.Active and Element.value.Toggle then
  853. keybindadd(text)
  854. else
  855. keybindremove(text)
  856. end
  857. elseif Element.value.Type == "Toggle" then
  858. Element.value.Active = not Element.value.Active
  859. if Element.value.Active and Element.value.Toggle then
  860. keybindadd(text)
  861. else
  862. keybindremove(text)
  863. end
  864. end
  865. end
  866. else
  867. if input.KeyCode == Enum.KeyCode[Element.value.Key] then
  868. if Element.value.Type == "Hold" then
  869. Element.value.Active = true
  870. if Element.value.Active and Element.value.Toggle then
  871. keybindadd(text)
  872. else
  873. keybindremove(text)
  874. end
  875. elseif Element.value.Type == "Toggle" then
  876. Element.value.Active = not Element.value.Active
  877. if Element.value.Active and Element.value.Toggle then
  878. keybindadd(text)
  879. else
  880. keybindremove(text)
  881. end
  882. end
  883. end
  884. end
  885. else
  886. Element.value.Active = true
  887. end
  888. end
  889. values[tabname][sectorname][tabtext][text] = Element.value
  890. callback(Element.value)
  891. end)
  892. game:GetService("UserInputService").InputEnded:Connect(function(input)
  893. if Element.value.Key ~= nil then
  894. if FIND(Element.value.Key, "Mouse") then
  895. if input.UserInputType == Enum.UserInputType[Element.value.Key] then
  896. if Element.value.Type == "Hold" then
  897. Element.value.Active = false
  898. if Element.value.Active and Element.value.Toggle then
  899. keybindadd(text)
  900. else
  901. keybindremove(text)
  902. end
  903. end
  904. end
  905. else
  906. if input.KeyCode == Enum.KeyCode[Element.value.Key] then
  907. if Element.value.Type == "Hold" then
  908. Element.value.Active = false
  909. if Element.value.Active and Element.value.Toggle then
  910. keybindadd(text)
  911. else
  912. keybindremove(text)
  913. end
  914. end
  915. end
  916. end
  917. end
  918. values[tabname][sectorname][tabtext][text] = Element.value
  919. callback(Element.value)
  920. end)
  921. end
  922. function Element:SetValue(value)
  923. Element.value = value
  924. update()
  925. end
  926. elseif type == "Toggle" then
  927. tabsize = tabsize + UDIM2(0,0,0,16)
  928. Element.value = {Toggle = data.default and data.default.Toggle or false}
  929. local Toggle = INST("Frame")
  930. local Button = INST("TextButton")
  931. local Color = INST("Frame")
  932. local TextLabel = INST("TextLabel")
  933. Toggle.Name = "Toggle"
  934. Toggle.Parent = tab1
  935. Toggle.BackgroundColor3 = COL3RGB(255, 255, 255)
  936. Toggle.BackgroundTransparency = 1.000
  937. Toggle.Size = UDIM2(1, 0, 0, 15)
  938. Button.Name = "Button"
  939. Button.Parent = Toggle
  940. Button.BackgroundColor3 = COL3RGB(255, 255, 255)
  941. Button.BackgroundTransparency = 1.000
  942. Button.Size = UDIM2(1, 0, 1, 0)
  943. Button.Font = Enum.Font.SourceSans
  944. Button.Text = ""
  945. Button.TextColor3 = COL3RGB(0, 0, 0)
  946. Button.TextSize = 14.000
  947. Color.Name = "Color"
  948. Color.Parent = Button
  949. Color.BackgroundColor3 = COL3RGB(33, 35, 47)
  950. Color.BorderColor3 = COL3RGB(27, 27, 35)
  951. Color.Position = UDIM2(0, 15, 0.5, -5)
  952. Color.Size = UDIM2(0, 8, 0, 8)
  953. TextLabel.Parent = Button
  954. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  955. TextLabel.BackgroundTransparency = 1.000
  956. TextLabel.Position = UDIM2(0, 32, 0, -1)
  957. TextLabel.Size = UDIM2(0.111913361, 208, 1, 0)
  958. TextLabel.Font = Enum.Font.SourceSansSemibold
  959. TextLabel.Text = text
  960. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  961. TextLabel.TextSize = 14.000
  962. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  963. local function update()
  964. if Element.value.Toggle then
  965. tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = COL3RGB(155, 22, 66)})
  966. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  967. else
  968. keybindremove(text)
  969. tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = COL3RGB(33, 35, 47)})
  970. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  971. end
  972. values[tabname][sectorname][tabtext][text] = Element.value
  973. end
  974. Button.MouseButton1Down:Connect(function()
  975. Element.value.Toggle = not Element.value.Toggle
  976. update()
  977. values[tabname][sectorname][tabtext][text] = Element.value
  978. callback(Element.value)
  979. end)
  980. if data.default then
  981. update()
  982. end
  983. values[tabname][sectorname][tabtext][text] = Element.value
  984. function Element:SetValue(value)
  985. Element.value = value
  986. values[tabname][sectorname][tabtext][text] = Element.value
  987. update()
  988. callback(Element.value)
  989. end
  990. elseif type == "ToggleColor" then
  991. tabsize = tabsize + UDIM2(0,0,0,16)
  992. Element.value = {Toggle = data.default and data.default.Toggle or false, Color = data.default and data.default.Color or COL3RGB(255,255,255)}
  993. local Toggle = INST("Frame")
  994. local Button = INST("TextButton")
  995. local Color = INST("Frame")
  996. local TextLabel = INST("TextLabel")
  997. Toggle.Name = "Toggle"
  998. Toggle.Parent = tab1
  999. Toggle.BackgroundColor3 = COL3RGB(255, 255, 255)
  1000. Toggle.BackgroundTransparency = 1.000
  1001. Toggle.Size = UDIM2(1, 0, 0, 15)
  1002. Button.Name = "Button"
  1003. Button.Parent = Toggle
  1004. Button.BackgroundColor3 = COL3RGB(255, 255, 255)
  1005. Button.BackgroundTransparency = 1.000
  1006. Button.Size = UDIM2(1, 0, 1, 0)
  1007. Button.Font = Enum.Font.SourceSans
  1008. Button.Text = ""
  1009. Button.TextColor3 = COL3RGB(0, 0, 0)
  1010. Button.TextSize = 14.000
  1011. Color.Name = "Color"
  1012. Color.Parent = Button
  1013. Color.BackgroundColor3 = COL3RGB(33, 35, 47)
  1014. Color.BorderColor3 = COL3RGB(27, 27, 35)
  1015. Color.Position = UDIM2(0, 15, 0.5, -5)
  1016. Color.Size = UDIM2(0, 8, 0, 8)
  1017. TextLabel.Parent = Button
  1018. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  1019. TextLabel.BackgroundTransparency = 1.000
  1020. TextLabel.Position = UDIM2(0, 32, 0, -1)
  1021. TextLabel.Size = UDIM2(0.111913361, 208, 1, 0)
  1022. TextLabel.Font = Enum.Font.SourceSansSemibold
  1023. TextLabel.Text = text
  1024. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  1025. TextLabel.TextSize = 14.000
  1026. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  1027. local function update()
  1028. if Element.value.Toggle then
  1029. tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = COL3RGB(155, 155, 155)})
  1030. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  1031. else
  1032. tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = COL3RGB(33, 35, 47)})
  1033. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  1034. end
  1035. values[tabname][sectorname][tabtext][text] = Element.value
  1036. callback(Element.value)
  1037. end
  1038. local ColorH,ColorS,ColorV
  1039. local ColorP = INST("TextButton")
  1040. local Frame = INST("Frame")
  1041. local Colorpick = INST("ImageButton")
  1042. local ColorDrag = INST("Frame")
  1043. local Huepick = INST("ImageButton")
  1044. local Huedrag = INST("Frame")
  1045. ColorP.Name = "ColorP"
  1046. ColorP.Parent = Button
  1047. ColorP.AnchorPoint = Vec2(1, 0)
  1048. ColorP.BackgroundColor3 = COL3RGB(255, 0, 0)
  1049. ColorP.BorderColor3 = COL3RGB(27, 27, 35)
  1050. ColorP.Position = UDIM2(0, 270, 0.5, -4)
  1051. ColorP.Size = UDIM2(0, 18, 0, 8)
  1052. ColorP.AutoButtonColor = false
  1053. ColorP.Font = Enum.Font.SourceSansSemibold
  1054. ColorP.Text = ""
  1055. ColorP.TextColor3 = COL3RGB(200, 200, 200)
  1056. ColorP.TextSize = 14.000
  1057. Frame.Parent = ColorP
  1058. Frame.BackgroundColor3 = COL3RGB(33, 35, 47)
  1059. Frame.BorderColor3 = COL3RGB(27, 27, 35)
  1060. Frame.Position = UDIM2(-0.666666687, -170, 1.375, 0)
  1061. Frame.Size = UDIM2(0, 200, 0, 170)
  1062. Frame.Visible = false
  1063. Frame.ZIndex = 3
  1064. Colorpick.Name = "Colorpick"
  1065. Colorpick.Parent = Frame
  1066. Colorpick.BackgroundColor3 = COL3RGB(255, 255, 255)
  1067. Colorpick.BorderColor3 = COL3RGB(27, 27, 35)
  1068. Colorpick.ClipsDescendants = false
  1069. Colorpick.Position = UDIM2(0, 40, 0, 10)
  1070. Colorpick.Size = UDIM2(0, 150, 0, 150)
  1071. Colorpick.AutoButtonColor = false
  1072. Colorpick.Image = "rbxassetid://4155801252"
  1073. Colorpick.ImageColor3 = COL3RGB(255, 0, 0)
  1074. Colorpick.ZIndex = 3
  1075. ColorDrag.Name = "ColorDrag"
  1076. ColorDrag.Parent = Colorpick
  1077. ColorDrag.AnchorPoint = Vec2(0.5, 0.5)
  1078. ColorDrag.BackgroundColor3 = COL3RGB(255, 255, 255)
  1079. ColorDrag.BorderColor3 = COL3RGB(27, 27, 35)
  1080. ColorDrag.Size = UDIM2(0, 4, 0, 4)
  1081. ColorDrag.ZIndex = 3
  1082. Huepick.Name = "Huepick"
  1083. Huepick.Parent = Frame
  1084. Huepick.BackgroundColor3 = COL3RGB(255, 255, 255)
  1085. Huepick.BorderColor3 = COL3RGB(27, 27, 35)
  1086. Huepick.ClipsDescendants = false
  1087. Huepick.Position = UDIM2(0, 10, 0, 10)
  1088. Huepick.Size = UDIM2(0, 20, 0, 150)
  1089. Huepick.AutoButtonColor = false
  1090. Huepick.Image = "rbxassetid://3641079629"
  1091. Huepick.ImageColor3 = COL3RGB(255, 0, 0)
  1092. Huepick.ImageTransparency = 1
  1093. Huepick.BackgroundTransparency = 0
  1094. Huepick.ZIndex = 3
  1095. local HueFrameGradient = INST("UIGradient")
  1096. HueFrameGradient.Rotation = 90
  1097. HueFrameGradient.Name = "HueFrameGradient"
  1098. HueFrameGradient.Parent = Huepick
  1099. HueFrameGradient.Color = ColorSequence.new {
  1100. ColorSequenceKeypoint.new(0.00, COL3RGB(255, 0, 0)),
  1101. ColorSequenceKeypoint.new(0.17, COL3RGB(255, 0, 255)),
  1102. ColorSequenceKeypoint.new(0.33, COL3RGB(0, 0, 255)),
  1103. ColorSequenceKeypoint.new(0.50, COL3RGB(0, 255, 255)),
  1104. ColorSequenceKeypoint.new(0.67, COL3RGB(0, 255, 0)),
  1105. ColorSequenceKeypoint.new(0.83, COL3RGB(255, 255, 0)),
  1106. ColorSequenceKeypoint.new(1.00, COL3RGB(255, 0, 0))
  1107. }
  1108. Huedrag.Name = "Huedrag"
  1109. Huedrag.Parent = Huepick
  1110. Huedrag.BackgroundColor3 = COL3RGB(255, 255, 255)
  1111. Huedrag.BorderColor3 = COL3RGB(27, 27, 35)
  1112. Huedrag.Size = UDIM2(1, 0, 0, 2)
  1113. Huedrag.ZIndex = 3
  1114. ColorP.MouseButton1Down:Connect(function()
  1115. Frame.Visible = not Frame.Visible
  1116. end)
  1117. local abc = false
  1118. local inCP = false
  1119. ColorP.MouseEnter:Connect(function()
  1120. abc = true
  1121. end)
  1122. ColorP.MouseLeave:Connect(function()
  1123. abc = false
  1124. end)
  1125. Frame.MouseEnter:Connect(function()
  1126. inCP = true
  1127. end)
  1128. Frame.MouseLeave:Connect(function()
  1129. inCP = false
  1130. end)
  1131. ColorH = (CLAMP(Huedrag.AbsolutePosition.Y-Huepick.AbsolutePosition.Y, 0, Huepick.AbsoluteSize.Y)/Huepick.AbsoluteSize.Y)
  1132. ColorS = 1-(CLAMP(ColorDrag.AbsolutePosition.X-Colorpick.AbsolutePosition.X, 0, Colorpick.AbsoluteSize.X)/Colorpick.AbsoluteSize.X)
  1133. ColorV = 1-(CLAMP(ColorDrag.AbsolutePosition.Y-Colorpick.AbsolutePosition.Y, 0, Colorpick.AbsoluteSize.Y)/Colorpick.AbsoluteSize.Y)
  1134. if data.default.Color ~= nil then
  1135. ColorH, ColorS, ColorV = data.default.Color:ToHSV()
  1136. ColorH = CLAMP(ColorH,0,1)
  1137. ColorS = CLAMP(ColorS,0,1)
  1138. ColorV = CLAMP(ColorV,0,1)
  1139. ColorDrag.Position = UDIM2(1-ColorS,0,1-ColorV,0)
  1140. Colorpick.ImageColor3 = COL3HSV(ColorH, 1, 1)
  1141. ColorP.BackgroundColor3 = COL3HSV(ColorH, ColorS, ColorV)
  1142. Huedrag.Position = UDIM2(0, 0, 1-ColorH, -1)
  1143. end
  1144. local mouse = LocalPlayer:GetMouse()
  1145. game:GetService("UserInputService").InputBegan:Connect(function(input)
  1146. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 then
  1147. if not dragging and not abc and not inCP then
  1148. Frame.Visible = false
  1149. end
  1150. end
  1151. end)
  1152. local function updateColor()
  1153. local ColorX = (CLAMP(mouse.X - Colorpick.AbsolutePosition.X, 0, Colorpick.AbsoluteSize.X)/Colorpick.AbsoluteSize.X)
  1154. local ColorY = (CLAMP(mouse.Y - Colorpick.AbsolutePosition.Y, 0, Colorpick.AbsoluteSize.Y)/Colorpick.AbsoluteSize.Y)
  1155. ColorDrag.Position = UDIM2(ColorX, 0, ColorY, 0)
  1156. ColorS = 1-ColorX
  1157. ColorV = 1-ColorY
  1158. Colorpick.ImageColor3 = COL3HSV(ColorH, 1, 1)
  1159. ColorP.BackgroundColor3 = COL3HSV(ColorH, ColorS, ColorV)
  1160. values[tabname][sectorname][tabtext][text] = Element.value
  1161. Element.value.Color = COL3HSV(ColorH, ColorS, ColorV)
  1162. callback(Element.value)
  1163. end
  1164. local function updateHue()
  1165. local y = CLAMP(mouse.Y - Huepick.AbsolutePosition.Y, 0, 148)
  1166. Huedrag.Position = UDIM2(0, 0, 0, y)
  1167. hue = y/148
  1168. ColorH = 1-hue
  1169. Colorpick.ImageColor3 = COL3HSV(ColorH, 1, 1)
  1170. ColorP.BackgroundColor3 = COL3HSV(ColorH, ColorS, ColorV)
  1171. values[tabname][sectorname][tabtext][text] = Element.value
  1172. Element.value.Color = COL3HSV(ColorH, ColorS, ColorV)
  1173. callback(Element.value)
  1174. end
  1175. Colorpick.MouseButton1Down:Connect(function()
  1176. updateColor()
  1177. moveconnection = mouse.Move:Connect(function()
  1178. updateColor()
  1179. end)
  1180. releaseconnection = game:GetService("UserInputService").InputEnded:Connect(function(Mouse)
  1181. if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
  1182. updateColor()
  1183. moveconnection:Disconnect()
  1184. releaseconnection:Disconnect()
  1185. end
  1186. end)
  1187. end)
  1188. Huepick.MouseButton1Down:Connect(function()
  1189. updateHue()
  1190. moveconnection = mouse.Move:Connect(function()
  1191. updateHue()
  1192. end)
  1193. releaseconnection = game:GetService("UserInputService").InputEnded:Connect(function(Mouse)
  1194. if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
  1195. updateHue()
  1196. moveconnection:Disconnect()
  1197. releaseconnection:Disconnect()
  1198. end
  1199. end)
  1200. end)
  1201. Button.MouseButton1Down:Connect(function()
  1202. Element.value.Toggle = not Element.value.Toggle
  1203. update()
  1204. values[tabname][sectorname][tabtext][text] = Element.value
  1205. callback(Element.value)
  1206. end)
  1207. if data.default then
  1208. update()
  1209. end
  1210. values[tabname][sectorname][tabtext][text] = Element.value
  1211. function Element:SetValue(value)
  1212. Element.value = value
  1213. local duplicate = COL3(value.Color.R, value.Color.G, value.Color.B)
  1214. ColorH, ColorS, ColorV = duplicate:ToHSV()
  1215. ColorH = CLAMP(ColorH,0,1)
  1216. ColorS = CLAMP(ColorS,0,1)
  1217. ColorV = CLAMP(ColorV,0,1)
  1218. ColorDrag.Position = UDIM2(1-ColorS,0,1-ColorV,0)
  1219. Colorpick.ImageColor3 = COL3HSV(ColorH, 1, 1)
  1220. ColorP.BackgroundColor3 = COL3HSV(ColorH, ColorS, ColorV)
  1221. update()
  1222. Huedrag.Position = UDIM2(0, 0, 1-ColorH, -1)
  1223. end
  1224. elseif type == "ToggleTrans" then
  1225. tabsize = tabsize + UDIM2(0,0,0,16)
  1226. Element.value = {Toggle = data.default and data.default.Toggle or false, Color = data.default and data.default.Color or COL3RGB(255,255,255), Transparency = data.default and data.default.Transparency or 0}
  1227. local Toggle = INST("Frame")
  1228. local Button = INST("TextButton")
  1229. local Color = INST("Frame")
  1230. local TextLabel = INST("TextLabel")
  1231. Toggle.Name = "Toggle"
  1232. Toggle.Parent = tab1
  1233. Toggle.BackgroundColor3 = COL3RGB(255, 255, 255)
  1234. Toggle.BackgroundTransparency = 1.000
  1235. Toggle.Size = UDIM2(1, 0, 0, 15)
  1236. Button.Name = "Button"
  1237. Button.Parent = Toggle
  1238. Button.BackgroundColor3 = COL3RGB(255, 255, 255)
  1239. Button.BackgroundTransparency = 1.000
  1240. Button.Size = UDIM2(1, 0, 1, 0)
  1241. Button.Font = Enum.Font.SourceSans
  1242. Button.Text = ""
  1243. Button.TextColor3 = COL3RGB(0, 0, 0)
  1244. Button.TextSize = 14.000
  1245. Color.Name = "Color"
  1246. Color.Parent = Button
  1247. Color.BackgroundColor3 = COL3RGB(33, 35, 47)
  1248. Color.BorderColor3 = COL3RGB(27, 27, 35)
  1249. Color.Position = UDIM2(0, 15, 0.5, -5)
  1250. Color.Size = UDIM2(0, 8, 0, 8)
  1251. TextLabel.Parent = Button
  1252. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  1253. TextLabel.BackgroundTransparency = 1.000
  1254. TextLabel.Position = UDIM2(0, 32, 0, -1)
  1255. TextLabel.Size = UDIM2(0.111913361, 208, 1, 0)
  1256. TextLabel.Font = Enum.Font.SourceSansSemibold
  1257. TextLabel.Text = text
  1258. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  1259. TextLabel.TextSize = 14.000
  1260. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  1261. local function update()
  1262. if Element.value.Toggle then
  1263. tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = COL3RGB(155, 155, 155)})
  1264. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  1265. else
  1266. tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = COL3RGB(33, 35, 47)})
  1267. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  1268. end
  1269. values[tabname][sectorname][tabtext][text] = Element.value
  1270. callback(Element.value)
  1271. end
  1272. local ColorH,ColorS,ColorV
  1273. local ColorP = INST("TextButton")
  1274. local Frame = INST("Frame")
  1275. local Colorpick = INST("ImageButton")
  1276. local ColorDrag = INST("Frame")
  1277. local Huepick = INST("ImageButton")
  1278. local Huedrag = INST("Frame")
  1279. ColorP.Name = "ColorP"
  1280. ColorP.Parent = Button
  1281. ColorP.AnchorPoint = Vec2(1, 0)
  1282. ColorP.BackgroundColor3 = COL3RGB(255, 0, 0)
  1283. ColorP.BorderColor3 = COL3RGB(27, 27, 35)
  1284. ColorP.Position = UDIM2(0, 270, 0.5, -4)
  1285. ColorP.Size = UDIM2(0, 18, 0, 8)
  1286. ColorP.AutoButtonColor = false
  1287. ColorP.Font = Enum.Font.SourceSansSemibold
  1288. ColorP.Text = ""
  1289. ColorP.TextColor3 = COL3RGB(200, 200, 200)
  1290. ColorP.TextSize = 14.000
  1291. Frame.Parent = ColorP
  1292. Frame.BackgroundColor3 = COL3RGB(33, 35, 47)
  1293. Frame.BorderColor3 = COL3RGB(27, 27, 35)
  1294. Frame.Position = UDIM2(-0.666666687, -170, 1.375, 0)
  1295. Frame.Size = UDIM2(0, 200, 0, 190)
  1296. Frame.Visible = false
  1297. Frame.ZIndex = 3
  1298. Colorpick.Name = "Colorpick"
  1299. Colorpick.Parent = Frame
  1300. Colorpick.BackgroundColor3 = COL3RGB(255, 255, 255)
  1301. Colorpick.BorderColor3 = COL3RGB(27, 27, 35)
  1302. Colorpick.ClipsDescendants = false
  1303. Colorpick.Position = UDIM2(0, 40, 0, 10)
  1304. Colorpick.Size = UDIM2(0, 150, 0, 150)
  1305. Colorpick.AutoButtonColor = false
  1306. Colorpick.Image = "rbxassetid://4155801252"
  1307. Colorpick.ImageColor3 = COL3RGB(255, 0, 0)
  1308. Colorpick.ZIndex = 3
  1309. ColorDrag.Name = "ColorDrag"
  1310. ColorDrag.Parent = Colorpick
  1311. ColorDrag.AnchorPoint = Vec2(0.5, 0.5)
  1312. ColorDrag.BackgroundColor3 = COL3RGB(255, 255, 255)
  1313. ColorDrag.BorderColor3 = COL3RGB(27, 27, 35)
  1314. ColorDrag.Size = UDIM2(0, 4, 0, 4)
  1315. ColorDrag.ZIndex = 3
  1316. Huepick.Name = "Huepick"
  1317. Huepick.Parent = Frame
  1318. Huepick.BackgroundColor3 = COL3RGB(255, 255, 255)
  1319. Huepick.BorderColor3 = COL3RGB(27, 27, 35)
  1320. Huepick.ClipsDescendants = true
  1321. Huepick.Position = UDIM2(0, 10, 0, 10)
  1322. Huepick.Size = UDIM2(0, 20, 0, 150)
  1323. Huepick.AutoButtonColor = false
  1324. Huepick.Image = "rbxassetid://3641079629"
  1325. Huepick.ImageColor3 = COL3RGB(255, 0, 0)
  1326. Huepick.ImageTransparency = 1
  1327. Huepick.BackgroundTransparency = 0
  1328. Huepick.ZIndex = 3
  1329. local HueFrameGradient = INST("UIGradient")
  1330. HueFrameGradient.Rotation = 90
  1331. HueFrameGradient.Name = "HueFrameGradient"
  1332. HueFrameGradient.Parent = Huepick
  1333. HueFrameGradient.Color = ColorSequence.new {
  1334. ColorSequenceKeypoint.new(0.00, COL3RGB(255, 0, 0)),
  1335. ColorSequenceKeypoint.new(0.17, COL3RGB(255, 0, 255)),
  1336. ColorSequenceKeypoint.new(0.33, COL3RGB(0, 0, 255)),
  1337. ColorSequenceKeypoint.new(0.50, COL3RGB(0, 255, 255)),
  1338. ColorSequenceKeypoint.new(0.67, COL3RGB(0, 255, 0)),
  1339. ColorSequenceKeypoint.new(0.83, COL3RGB(255, 255, 0)),
  1340. ColorSequenceKeypoint.new(1.00, COL3RGB(255, 0, 0))
  1341. }
  1342. Huedrag.Name = "Huedrag"
  1343. Huedrag.Parent = Huepick
  1344. Huedrag.BackgroundColor3 = COL3RGB(255, 255, 255)
  1345. Huedrag.BorderColor3 = COL3RGB(27, 27, 35)
  1346. Huedrag.Size = UDIM2(1, 0, 0, 2)
  1347. Huedrag.ZIndex = 3
  1348. local Transpick = INST("ImageButton")
  1349. local Transcolor = INST("ImageLabel")
  1350. local Transdrag = INST("Frame")
  1351. Transpick.Name = "Transpick"
  1352. Transpick.Parent = Frame
  1353. Transpick.BackgroundColor3 = COL3RGB(255, 255, 255)
  1354. Transpick.BorderColor3 = COL3RGB(27, 27, 35)
  1355. Transpick.Position = UDIM2(0, 10, 0, 167)
  1356. Transpick.Size = UDIM2(0, 180, 0, 15)
  1357. Transpick.AutoButtonColor = false
  1358. Transpick.Image = "rbxassetid://3887014957"
  1359. Transpick.ScaleType = Enum.ScaleType.Tile
  1360. Transpick.TileSize = UDIM2(0, 10, 0, 10)
  1361. Transpick.ZIndex = 3
  1362. Transcolor.Name = "Transcolor"
  1363. Transcolor.Parent = Transpick
  1364. Transcolor.BackgroundColor3 = COL3RGB(255, 255, 255)
  1365. Transcolor.BackgroundTransparency = 1.000
  1366. Transcolor.Size = UDIM2(1, 0, 1, 0)
  1367. Transcolor.Image = "rbxassetid://3887017050"
  1368. Transcolor.ImageColor3 = COL3RGB(255, 0, 4)
  1369. Transcolor.ZIndex = 3
  1370. Transdrag.Name = "Transdrag"
  1371. Transdrag.Parent = Transcolor
  1372. Transdrag.BackgroundColor3 = COL3RGB(255, 255, 255)
  1373. Transdrag.BorderColor3 = COL3RGB(27, 27, 35)
  1374. Transdrag.Position = UDIM2(0, -1, 0, 0)
  1375. Transdrag.Size = UDIM2(0, 2, 1, 0)
  1376. Transdrag.ZIndex = 3
  1377. ColorP.MouseButton1Down:Connect(function()
  1378. Frame.Visible = not Frame.Visible
  1379. end)
  1380. local abc = false
  1381. local inCP = false
  1382. ColorP.MouseEnter:Connect(function()
  1383. abc = true
  1384. end)
  1385. ColorP.MouseLeave:Connect(function()
  1386. abc = false
  1387. end)
  1388. Frame.MouseEnter:Connect(function()
  1389. inCP = true
  1390. end)
  1391. Frame.MouseLeave:Connect(function()
  1392. inCP = false
  1393. end)
  1394. ColorH = (CLAMP(Huedrag.AbsolutePosition.Y-Huepick.AbsolutePosition.Y, 0, Huepick.AbsoluteSize.Y)/Huepick.AbsoluteSize.Y)
  1395. ColorS = 1-(CLAMP(ColorDrag.AbsolutePosition.X-Colorpick.AbsolutePosition.X, 0, Colorpick.AbsoluteSize.X)/Colorpick.AbsoluteSize.X)
  1396. ColorV = 1-(CLAMP(ColorDrag.AbsolutePosition.Y-Colorpick.AbsolutePosition.Y, 0, Colorpick.AbsoluteSize.Y)/Colorpick.AbsoluteSize.Y)
  1397. if data.default.Color ~= nil then
  1398. ColorH, ColorS, ColorV = data.default.Color:ToHSV()
  1399. ColorH = CLAMP(ColorH,0,1)
  1400. ColorS = CLAMP(ColorS,0,1)
  1401. ColorV = CLAMP(ColorV,0,1)
  1402. ColorDrag.Position = UDIM2(1-ColorS,0,1-ColorV,0)
  1403. Colorpick.ImageColor3 = COL3HSV(ColorH, 1, 1)
  1404. Transcolor.ImageColor3 = COL3HSV(ColorH, 1, 1)
  1405. ColorP.BackgroundColor3 = COL3HSV(ColorH, ColorS, ColorV)
  1406. Huedrag.Position = UDIM2(0, 0, 1-ColorH, -1)
  1407. end
  1408. if data.default.Transparency ~= nil then
  1409. Transdrag.Position = UDIM2(data.default.Transparency, -1, 0, 0)
  1410. end
  1411. local mouse = LocalPlayer:GetMouse()
  1412. game:GetService("UserInputService").InputBegan:Connect(function(input)
  1413. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 then
  1414. if not dragging and not abc and not inCP then
  1415. Frame.Visible = false
  1416. end
  1417. end
  1418. end)
  1419. local function updateColor()
  1420. local ColorX = (CLAMP(mouse.X - Colorpick.AbsolutePosition.X, 0, Colorpick.AbsoluteSize.X)/Colorpick.AbsoluteSize.X)
  1421. local ColorY = (CLAMP(mouse.Y - Colorpick.AbsolutePosition.Y, 0, Colorpick.AbsoluteSize.Y)/Colorpick.AbsoluteSize.Y)
  1422. ColorDrag.Position = UDIM2(ColorX, 0, ColorY, 0)
  1423. ColorS = 1-ColorX
  1424. ColorV = 1-ColorY
  1425. Colorpick.ImageColor3 = COL3HSV(ColorH, 1, 1)
  1426. ColorP.BackgroundColor3 = COL3HSV(ColorH, ColorS, ColorV)
  1427. Transcolor.ImageColor3 = COL3HSV(ColorH, 1, 1)
  1428. values[tabname][sectorname][tabtext][text] = Element.value
  1429. Element.value.Color = COL3HSV(ColorH, ColorS, ColorV)
  1430. callback(Element.value)
  1431. end
  1432. local function updateHue()
  1433. local y = CLAMP(mouse.Y - Huepick.AbsolutePosition.Y, 0, 148)
  1434. Huedrag.Position = UDIM2(0, 0, 0, y)
  1435. hue = y/148
  1436. ColorH = 1-hue
  1437. Colorpick.ImageColor3 = COL3HSV(ColorH, 1, 1)
  1438. Transcolor.ImageColor3 = COL3HSV(ColorH, 1, 1)
  1439. ColorP.BackgroundColor3 = COL3HSV(ColorH, ColorS, ColorV)
  1440. values[tabname][sectorname][tabtext][text] = Element.value
  1441. Element.value.Color = COL3HSV(ColorH, ColorS, ColorV)
  1442. callback(Element.value)
  1443. end
  1444. local function updateTrans()
  1445. local x = CLAMP(mouse.X - Transpick.AbsolutePosition.X, 0, 178)
  1446. Transdrag.Position = UDIM2(0, x, 0, 0)
  1447. Element.value.Transparency = (x/178)
  1448. values[tabname][sectorname][tabtext][text] = Element.value
  1449. callback(Element.value)
  1450. end
  1451. Transpick.MouseButton1Down:Connect(function()
  1452. updateTrans()
  1453. moveconnection = mouse.Move:Connect(function()
  1454. updateTrans()
  1455. end)
  1456. releaseconnection = game:GetService("UserInputService").InputEnded:Connect(function(Mouse)
  1457. if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
  1458. updateTrans()
  1459. moveconnection:Disconnect()
  1460. releaseconnection:Disconnect()
  1461. end
  1462. end)
  1463. end)
  1464. Colorpick.MouseButton1Down:Connect(function()
  1465. updateColor()
  1466. moveconnection = mouse.Move:Connect(function()
  1467. updateColor()
  1468. end)
  1469. releaseconnection = game:GetService("UserInputService").InputEnded:Connect(function(Mouse)
  1470. if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
  1471. updateColor()
  1472. moveconnection:Disconnect()
  1473. releaseconnection:Disconnect()
  1474. end
  1475. end)
  1476. end)
  1477. Huepick.MouseButton1Down:Connect(function()
  1478. updateHue()
  1479. moveconnection = mouse.Move:Connect(function()
  1480. updateHue()
  1481. end)
  1482. releaseconnection = game:GetService("UserInputService").InputEnded:Connect(function(Mouse)
  1483. if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
  1484. updateHue()
  1485. moveconnection:Disconnect()
  1486. releaseconnection:Disconnect()
  1487. end
  1488. end)
  1489. end)
  1490. Button.MouseButton1Down:Connect(function()
  1491. Element.value.Toggle = not Element.value.Toggle
  1492. update()
  1493. values[tabname][sectorname][tabtext][text] = Element.value
  1494. callback(Element.value)
  1495. end)
  1496. if data.default then
  1497. update()
  1498. end
  1499. values[tabname][sectorname][tabtext][text] = Element.value
  1500. function Element:SetValue(value)
  1501. Element.value = value
  1502. local duplicate = COL3(value.Color.R, value.Color.G, value.Color.B)
  1503. ColorH, ColorS, ColorV = duplicate:ToHSV()
  1504. ColorH = CLAMP(ColorH,0,1)
  1505. ColorS = CLAMP(ColorS,0,1)
  1506. ColorV = CLAMP(ColorV,0,1)
  1507. ColorDrag.Position = UDIM2(1-ColorS,0,1-ColorV,0)
  1508. Colorpick.ImageColor3 = COL3HSV(ColorH, 1, 1)
  1509. ColorP.BackgroundColor3 = COL3HSV(ColorH, ColorS, ColorV)
  1510. update()
  1511. Huedrag.Position = UDIM2(0, 0, 1-ColorH, -1)
  1512. end
  1513. elseif type == "Dropdown" then
  1514. tabsize = tabsize + UDIM2(0,0,0,39)
  1515. Element.value = {Dropdown = data.options[1]}
  1516. local Dropdown = INST("Frame")
  1517. local Button = INST("TextButton")
  1518. local TextLabel = INST("TextLabel")
  1519. local Drop = INST("ScrollingFrame")
  1520. local Button_2 = INST("TextButton")
  1521. local TextLabel_2 = INST("TextLabel")
  1522. local UIListLayout = INST("UIListLayout")
  1523. local ImageLabel = INST("ImageLabel")
  1524. local TextLabel_3 = INST("TextLabel")
  1525. Dropdown.Name = "Dropdown"
  1526. Dropdown.Parent = tab1
  1527. Dropdown.BackgroundColor3 = COL3RGB(255, 255, 255)
  1528. Dropdown.BackgroundTransparency = 1.000
  1529. Dropdown.Position = UDIM2(0, 0, 0.255102038, 0)
  1530. Dropdown.Size = UDIM2(1, 0, 0, 39)
  1531. Button.Name = "Button"
  1532. Button.Parent = Dropdown
  1533. Button.BackgroundColor3 = COL3RGB(33, 35, 47)
  1534. Button.BorderColor3 = COL3RGB(27, 27, 35)
  1535. Button.Position = UDIM2(0, 30, 0, 16)
  1536. Button.Size = UDIM2(0, 175, 0, 17)
  1537. Button.AutoButtonColor = false
  1538. Button.Font = Enum.Font.SourceSans
  1539. Button.Text = ""
  1540. Button.TextColor3 = COL3RGB(0, 0, 0)
  1541. Button.TextSize = 14.000
  1542. TextLabel.Parent = Button
  1543. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  1544. TextLabel.BackgroundTransparency = 1.000
  1545. TextLabel.BorderColor3 = COL3RGB(27, 42, 53)
  1546. TextLabel.Position = UDIM2(0, 5, 0, 0)
  1547. TextLabel.Size = UDIM2(-0.21714285, 208, 1, 0)
  1548. TextLabel.Font = Enum.Font.SourceSansSemibold
  1549. TextLabel.Text = Element.value.Dropdown
  1550. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  1551. TextLabel.TextSize = 14.000
  1552. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  1553. local abcd = TextLabel
  1554. Drop.Name = "Drop"
  1555. Drop.Parent = Button
  1556. Drop.Active = true
  1557. Drop.BackgroundColor3 = COL3RGB(33, 35, 47)
  1558. Drop.BorderColor3 = COL3RGB(27, 27, 35)
  1559. Drop.Position = UDIM2(0, 0, 1, 1)
  1560. Drop.Size = UDIM2(1, 0, 0, 20)
  1561. Drop.Visible = false
  1562. Drop.BottomImage = "http://www.roblox.com/asset/?id=6724808282"
  1563. Drop.CanvasSize = UDIM2(0, 0, 0, 0)
  1564. Drop.ScrollBarThickness = 4
  1565. Drop.MidImage = "http://www.roblox.com/asset/?id=6724808282"
  1566. Drop.TopImage = "http://www.roblox.com/asset/?id=6724808282"
  1567. Drop.AutomaticCanvasSize = "Y"
  1568. Drop.ZIndex = 5
  1569. Drop.ScrollBarImageColor3 = COL3RGB(255, 37, 110)
  1570. UIListLayout.Parent = Drop
  1571. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  1572. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1573. local num = #data.options
  1574. if num > 5 then
  1575. Drop.Size = UDIM2(1, 0, 0, 85)
  1576. else
  1577. Drop.Size = UDIM2(1, 0, 0, 17*num)
  1578. end
  1579. Drop.CanvasSize = UDIM2(1, 0, 0, 17*num)
  1580. local first = true
  1581. for i,v in ipairs(data.options) do
  1582. do
  1583. local Button = INST("TextButton")
  1584. local TextLabel = INST("TextLabel")
  1585. Button.Name = v
  1586. Button.Parent = Drop
  1587. Button.BackgroundColor3 = COL3RGB(33, 35, 47)
  1588. Button.BorderColor3 = COL3RGB(27, 27, 35)
  1589. Button.Position = UDIM2(0, 30, 0, 16)
  1590. Button.Size = UDIM2(0, 175, 0, 17)
  1591. Button.AutoButtonColor = false
  1592. Button.Font = Enum.Font.SourceSans
  1593. Button.Text = ""
  1594. Button.TextColor3 = COL3RGB(0, 0, 0)
  1595. Button.TextSize = 14.000
  1596. Button.BorderSizePixel = 0
  1597. Button.ZIndex = 6
  1598. TextLabel.Parent = Button
  1599. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  1600. TextLabel.BackgroundTransparency = 1.000
  1601. TextLabel.BorderColor3 = COL3RGB(27, 42, 53)
  1602. TextLabel.Position = UDIM2(0, 5, 0, -1)
  1603. TextLabel.Size = UDIM2(-0.21714285, 208, 1, 0)
  1604. TextLabel.Font = Enum.Font.SourceSansSemibold
  1605. TextLabel.Text = v
  1606. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  1607. TextLabel.TextSize = 14.000
  1608. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  1609. TextLabel.ZIndex = 6
  1610. Button.MouseButton1Down:Connect(function()
  1611. Drop.Visible = false
  1612. Element.value.Dropdown = v
  1613. abcd.Text = v
  1614. values[tabname][sectorname][tabtext][text] = Element.value
  1615. callback(Element.value)
  1616. Drop.CanvasPosition = Vec2(0,0)
  1617. end)
  1618. Button.MouseEnter:Connect(function()
  1619. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  1620. end)
  1621. Button.MouseLeave:Connect(function()
  1622. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  1623. end)
  1624. first = false
  1625. end
  1626. end
  1627. function Element:SetValue(val)
  1628. Element.value = val
  1629. abcd.Text = val.Dropdown
  1630. values[tabname][sectorname][tabtext][text] = Element.value
  1631. callback(val)
  1632. end
  1633. ImageLabel.Parent = Button
  1634. ImageLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  1635. ImageLabel.BackgroundTransparency = 1.000
  1636. ImageLabel.Position = UDIM2(0, 165, 0, 6)
  1637. ImageLabel.Size = UDIM2(0, 6, 0, 4)
  1638. ImageLabel.Image = "http://www.roblox.com/asset/?id=6724771531"
  1639. TextLabel_3.Parent = Dropdown
  1640. TextLabel_3.BackgroundColor3 = COL3RGB(255, 255, 255)
  1641. TextLabel_3.BackgroundTransparency = 1.000
  1642. TextLabel_3.Position = UDIM2(0, 32, 0, -1)
  1643. TextLabel_3.Size = UDIM2(0.111913361, 208, 0.382215232, 0)
  1644. TextLabel_3.Font = Enum.Font.SourceSansSemibold
  1645. TextLabel_3.Text = text
  1646. TextLabel_3.TextColor3 = COL3RGB(200, 200, 200)
  1647. TextLabel_3.TextSize = 14.000
  1648. TextLabel_3.TextXAlignment = Enum.TextXAlignment.Left
  1649. Button.MouseButton1Down:Connect(function()
  1650. Drop.Visible = not Drop.Visible
  1651. if not Drop.Visible then
  1652. Drop.CanvasPosition = Vec2(0,0)
  1653. end
  1654. end)
  1655. local indrop = false
  1656. local ind = false
  1657. Drop.MouseEnter:Connect(function()
  1658. indrop = true
  1659. end)
  1660. Drop.MouseLeave:Connect(function()
  1661. indrop = false
  1662. end)
  1663. Button.MouseEnter:Connect(function()
  1664. ind = true
  1665. end)
  1666. Button.MouseLeave:Connect(function()
  1667. ind = false
  1668. end)
  1669. game:GetService("UserInputService").InputBegan:Connect(function(input)
  1670. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 then
  1671. if Drop.Visible == true and not indrop and not ind then
  1672. Drop.Visible = false
  1673. Drop.CanvasPosition = Vec2(0,0)
  1674. end
  1675. end
  1676. end)
  1677. values[tabname][sectorname][tabtext][text] = Element.value
  1678. elseif type == "Slider" then
  1679. tabsize = tabsize + UDIM2(0,0,0,25)
  1680. local Slider = INST("Frame")
  1681. local TextLabel = INST("TextLabel")
  1682. local Button = INST("TextButton")
  1683. local Frame = INST("Frame")
  1684. local UIGradient = INST("UIGradient")
  1685. local Value = INST("TextLabel")
  1686. Slider.Name = "Slider"
  1687. Slider.Parent = tab1
  1688. Slider.BackgroundColor3 = COL3RGB(255, 255, 255)
  1689. Slider.BackgroundTransparency = 1.000
  1690. Slider.Position = UDIM2(0, 0, 0.653061211, 0)
  1691. Slider.Size = UDIM2(1, 0, 0, 25)
  1692. TextLabel.Parent = Slider
  1693. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  1694. TextLabel.BackgroundTransparency = 1.000
  1695. TextLabel.Position = UDIM2(0, 32, 0, -2)
  1696. TextLabel.Size = UDIM2(0, 100, 0, 15)
  1697. TextLabel.Font = Enum.Font.SourceSansSemibold
  1698. TextLabel.Text = text
  1699. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  1700. TextLabel.TextSize = 14.000
  1701. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  1702. Button.Name = "Button"
  1703. Button.Parent = Slider
  1704. Button.BackgroundColor3 = COL3RGB(35, 37, 47)
  1705. Button.BorderColor3 = COL3RGB(27, 27, 35)
  1706. Button.Position = UDIM2(0, 30, 0, 15)
  1707. Button.Size = UDIM2(0, 175, 0, 5)
  1708. Button.AutoButtonColor = false
  1709. Button.Font = Enum.Font.SourceSans
  1710. Button.Text = ""
  1711. Button.TextColor3 = COL3RGB(0, 0, 0)
  1712. Button.TextSize = 14.000
  1713. Frame.Parent = Button
  1714. Frame.BackgroundColor3 = COL3RGB(255, 255, 255)
  1715. Frame.BorderSizePixel = 0
  1716. Frame.Size = UDIM2(0.5, 0, 1, 0)
  1717. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0, COL3RGB(153, 22, 65)), ColorSequenceKeypoint.new(1, COL3RGB(109, 16, 46))}
  1718. UIGradient.Rotation = 90
  1719. UIGradient.Parent = Frame
  1720. Value.Name = "Value"
  1721. Value.Parent = Slider
  1722. Value.BackgroundColor3 = COL3RGB(255, 255, 255)
  1723. Value.BackgroundTransparency = 1.000
  1724. Value.Position = UDIM2(0, 150, 0, -1)
  1725. Value.Size = UDIM2(0, 55, 0, 15)
  1726. Value.Font = Enum.Font.SourceSansSemibold
  1727. Value.Text = "50"
  1728. Value.TextColor3 = COL3RGB(200, 200, 200)
  1729. Value.TextSize = 14.000
  1730. Value.TextXAlignment = Enum.TextXAlignment.Right
  1731. local min, max, default = data.min or 0, data.max or 100, data.default or 0
  1732. Element.value = {Slider = default}
  1733. function Element:SetValue(value)
  1734. Element.value = value
  1735. local a
  1736. if min > 0 then
  1737. a = ((Element.value.Slider - min)) / (max-min)
  1738. else
  1739. a = (Element.value.Slider-min)/(max-min)
  1740. end
  1741. Value.Text = Element.value.Slider
  1742. Frame.Size = UDIM2(a,0,1,0)
  1743. values[tabname][sectorname][tabtext][text] = Element.value
  1744. callback(value)
  1745. end
  1746. local a
  1747. if min > 0 then
  1748. a = ((Element.value.Slider - min)) / (max-min)
  1749. else
  1750. a = (Element.value.Slider-min)/(max-min)
  1751. end
  1752. Value.Text = Element.value.Slider
  1753. Frame.Size = UDIM2(a,0,1,0)
  1754. values[tabname][sectorname][tabtext][text] = Element.value
  1755. local uis = game:GetService("UserInputService")
  1756. local mouse = game.Players.LocalPlayer:GetMouse()
  1757. local val
  1758. Button.MouseButton1Down:Connect(function()
  1759. Frame.Size = UDIM2(0, CLAMP(mouse.X - Frame.AbsolutePosition.X, 0, 175), 0, 5)
  1760. val = FLOOR((((tonumber(max) - tonumber(min)) / 175) * Frame.AbsoluteSize.X) + tonumber(min)) or 0
  1761. Value.Text = val
  1762. Element.value.Slider = val
  1763. values[tabname][sectorname][tabtext][text] = Element.value
  1764. callback(Element.value)
  1765. moveconnection = mouse.Move:Connect(function()
  1766. Frame.Size = UDIM2(0, CLAMP(mouse.X - Frame.AbsolutePosition.X, 0, 175), 0, 5)
  1767. val = FLOOR((((tonumber(max) - tonumber(min)) / 175) * Frame.AbsoluteSize.X) + tonumber(min))
  1768. Value.Text = val
  1769. Element.value.Slider = val
  1770. values[tabname][sectorname][tabtext][text] = Element.value
  1771. callback(Element.value)
  1772. end)
  1773. releaseconnection = uis.InputEnded:Connect(function(Mouse)
  1774. if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
  1775. Frame.Size = UDIM2(0, CLAMP(mouse.X - Frame.AbsolutePosition.X, 0, 175), 0, 5)
  1776. val = FLOOR((((tonumber(max) - tonumber(min)) / 175) * Frame.AbsoluteSize.X) + tonumber(min))
  1777. values[tabname][sectorname][tabtext][text] = Element.value
  1778. callback(Element.value)
  1779. moveconnection:Disconnect()
  1780. releaseconnection:Disconnect()
  1781. end
  1782. end)
  1783. end)
  1784. elseif type == "Button" then
  1785. tabsize = tabsize + UDIM2(0,0,0,24)
  1786. local Button = INST("Frame")
  1787. local Button_2 = INST("TextButton")
  1788. local TextLabel = INST("TextLabel")
  1789. Button.Name = "Button"
  1790. Button.Parent = tab1
  1791. Button.BackgroundColor3 = COL3RGB(255, 255, 255)
  1792. Button.BackgroundTransparency = 1.000
  1793. Button.Position = UDIM2(0, 0, 0.236059487, 0)
  1794. Button.Size = UDIM2(1, 0, 0, 24)
  1795. Button_2.Name = "Button"
  1796. Button_2.Parent = Button
  1797. Button_2.BackgroundColor3 = COL3RGB(33, 35, 47)
  1798. Button_2.BorderColor3 = COL3RGB(27, 27, 35)
  1799. Button_2.Position = UDIM2(0, 30, 0.5, -9)
  1800. Button_2.Size = UDIM2(0, 175, 0, 18)
  1801. Button_2.AutoButtonColor = false
  1802. Button_2.Font = Enum.Font.SourceSans
  1803. Button_2.Text = ""
  1804. Button_2.TextColor3 = COL3RGB(0, 0, 0)
  1805. Button_2.TextSize = 14.000
  1806. TextLabel.Parent = Button_2
  1807. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  1808. TextLabel.BackgroundTransparency = 1.000
  1809. TextLabel.BorderColor3 = COL3RGB(27, 42, 53)
  1810. TextLabel.Size = UDIM2(1, 0, 1, 0)
  1811. TextLabel.Font = Enum.Font.SourceSansSemibold
  1812. TextLabel.Text = text
  1813. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  1814. TextLabel.TextSize = 14.000
  1815. function Element:SetValue()
  1816. end
  1817. Button_2.MouseButton1Down:Connect(function()
  1818. TextLabel.TextColor3 = COL3RGB(175, 42, 86)
  1819. library:Tween(TextLabel, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  1820. callback()
  1821. end)
  1822. Button_2.MouseEnter:Connect(function()
  1823. library:Tween(TextLabel, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  1824. end)
  1825. Button_2.MouseLeave:Connect(function()
  1826. library:Tween(TextLabel, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  1827. end)
  1828. end
  1829. ConfigLoad:Connect(function(cfg)
  1830. local fix = library:ConfigFix(cfg)
  1831. if fix[tabname][sectorname][tabtext][text] ~= nil then
  1832. Element:SetValue(fix[tabname][sectorname][tabtext][text])
  1833. end
  1834. end)
  1835. return Element
  1836. end
  1837. if firs then
  1838. coroutine.wrap(function()
  1839. game:GetService("RunService").RenderStepped:Wait()
  1840. Section.Size = tabsize
  1841. end)()
  1842. selected = text
  1843. TextButton.TextColor3 = COL3RGB(255,255,255)
  1844. tab1.Visible = true
  1845. firs = false
  1846. end
  1847. return tab
  1848. end
  1849. return MSector
  1850. end
  1851. function Tab:Sector(text, side)
  1852. local sectorname = text
  1853. local Sector = {}
  1854. values[tabname][text] = {}
  1855. local Section = INST("Frame")
  1856. local SectionText = INST("TextLabel")
  1857. local Inner = INST("Frame")
  1858. local UIListLayout = INST("UIListLayout")
  1859. Section.Name = "Section"
  1860. Section.Parent = TabGui[side]
  1861. Section.BackgroundColor3 = COL3RGB(27, 27, 35)
  1862. Section.BorderColor3 = COL3RGB(27, 27, 35)
  1863. Section.BorderSizePixel = 0
  1864. Section.Position = UDIM2(0.00358422939, 0, 0, 0)
  1865. Section.Size = UDIM2(1, 0, 0, 22)
  1866. SectionText.Name = "SectionText"
  1867. SectionText.Parent = Section
  1868. SectionText.BackgroundColor3 = COL3RGB(255, 255, 255)
  1869. SectionText.BackgroundTransparency = 1.000
  1870. SectionText.Position = UDIM2(0, 7, 0, -12)
  1871. SectionText.Size = UDIM2(0, 270, 0, 19)
  1872. SectionText.ZIndex = 2
  1873. SectionText.Font = Enum.Font.SourceSansSemibold
  1874. SectionText.Text = text
  1875. SectionText.TextColor3 = COL3RGB(255, 255, 255)
  1876. SectionText.TextSize = 15.000
  1877. SectionText.TextXAlignment = Enum.TextXAlignment.Left
  1878. Inner.Name = "Inner"
  1879. Inner.Parent = Section
  1880. Inner.BackgroundColor3 = COL3RGB(30, 30, 39)
  1881. Inner.BorderColor3 = COL3RGB(27, 27, 35)
  1882. Inner.BorderSizePixel = 0
  1883. Inner.Position = UDIM2(0, 1, 0, 1)
  1884. Inner.Size = UDIM2(1, -2, 1, -2)
  1885. local UIPadding = INST("UIPadding")
  1886. UIPadding.Parent = Inner
  1887. UIPadding.PaddingTop = UDim.new(0, 10)
  1888. UIListLayout.Parent = Inner
  1889. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  1890. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1891. UIListLayout.Padding = UDim.new(0,1)
  1892. function Sector:Element(type, text, data, callback)
  1893. local Element = {}
  1894. data = data or {}
  1895. callback = callback or function() end
  1896. values[tabname][sectorname][text] = {}
  1897. if type == "ScrollDrop" then
  1898. Section.Size = Section.Size + UDIM2(0,0,0,39)
  1899. Element.value = {Scroll = {}, Dropdown = ""}
  1900. for i,v in pairs(data.options) do
  1901. Element.value.Scroll[i] = v[1]
  1902. end
  1903. local joe = {}
  1904. if data.alphabet then
  1905. local copy = {}
  1906. for i,v in pairs(data.options) do
  1907. INSERT(copy, i)
  1908. end
  1909. TBLSORT(copy, function(a,b)
  1910. return a < b
  1911. end)
  1912. joe = copy
  1913. else
  1914. for i,v in pairs(data.options) do
  1915. INSERT(joe, i)
  1916. end
  1917. end
  1918. local Dropdown = INST("Frame")
  1919. local Button = INST("TextButton")
  1920. local TextLabel = INST("TextLabel")
  1921. local Drop = INST("ScrollingFrame")
  1922. local Button_2 = INST("TextButton")
  1923. local TextLabel_2 = INST("TextLabel")
  1924. local UIListLayout = INST("UIListLayout")
  1925. local ImageLabel = INST("ImageLabel")
  1926. local TextLabel_3 = INST("TextLabel")
  1927. Dropdown.Name = "Dropdown"
  1928. Dropdown.Parent = Inner
  1929. Dropdown.BackgroundColor3 = COL3RGB(255, 255, 255)
  1930. Dropdown.BackgroundTransparency = 1.000
  1931. Dropdown.Position = UDIM2(0, 0, 0, 0)
  1932. Dropdown.Size = UDIM2(1, 0, 0, 39)
  1933. Button.Name = "Button"
  1934. Button.Parent = Dropdown
  1935. Button.BackgroundColor3 = COL3RGB(33, 35, 47)
  1936. Button.BorderColor3 = COL3RGB(27, 27, 35)
  1937. Button.Position = UDIM2(0, 30, 0, 16)
  1938. Button.Size = UDIM2(0, 175, 0, 17)
  1939. Button.AutoButtonColor = false
  1940. Button.Font = Enum.Font.SourceSans
  1941. Button.Text = ""
  1942. Button.TextColor3 = COL3RGB(0, 0, 0)
  1943. Button.TextSize = 14.000
  1944. local TextLabel = INST("TextLabel")
  1945. TextLabel.Parent = Button
  1946. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  1947. TextLabel.BackgroundTransparency = 1.000
  1948. TextLabel.BorderColor3 = COL3RGB(27, 42, 53)
  1949. TextLabel.Position = UDIM2(0, 5, 0, 0)
  1950. TextLabel.Size = UDIM2(-0.21714285, 208, 1, 0)
  1951. TextLabel.Font = Enum.Font.SourceSansSemibold
  1952. TextLabel.Text = "lol"
  1953. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  1954. TextLabel.TextSize = 14.000
  1955. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  1956. local abcd = TextLabel
  1957. Drop.Name = "Drop"
  1958. Drop.Parent = Button
  1959. Drop.Active = true
  1960. Drop.BackgroundColor3 = COL3RGB(33, 35, 47)
  1961. Drop.BorderColor3 = COL3RGB(27, 27, 35)
  1962. Drop.Position = UDIM2(0, 0, 1, 1)
  1963. Drop.Size = UDIM2(1, 0, 0, 20)
  1964. Drop.Visible = false
  1965. Drop.BottomImage = "http://www.roblox.com/asset/?id=6724808282"
  1966. Drop.CanvasSize = UDIM2(0, 0, 0, 0)
  1967. Drop.ScrollBarThickness = 4
  1968. Drop.TopImage = "http://www.roblox.com/asset/?id=6724808282"
  1969. Drop.MidImage = "http://www.roblox.com/asset/?id=6724808282"
  1970. Drop.AutomaticCanvasSize = "Y"
  1971. Drop.ZIndex = 5
  1972. Drop.ScrollBarImageColor3 = COL3RGB(255, 37, 110)
  1973. UIListLayout.Parent = Drop
  1974. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  1975. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1976. local amount = data.Amount or 6
  1977. Section.Size = Section.Size + UDIM2(0,0,0,amount * 16 + 8)
  1978. local num = #joe
  1979. if num > 5 then
  1980. Drop.Size = UDIM2(1, 0, 0, 85)
  1981. else
  1982. Drop.Size = UDIM2(1, 0, 0, 17*num)
  1983. end
  1984. local first = true
  1985. for i,v in ipairs(joe) do
  1986. do
  1987. local joell = v
  1988. local Scroll = INST("Frame")
  1989. local joe2 = data.options[v]
  1990. local Button = INST("TextButton")
  1991. local TextLabel = INST("TextLabel")
  1992. Button.Name = v
  1993. Button.Parent = Drop
  1994. Button.BackgroundColor3 = COL3RGB(33, 35, 47)
  1995. Button.BorderColor3 = COL3RGB(27, 27, 35)
  1996. Button.Position = UDIM2(0, 30, 0, 16)
  1997. Button.Size = UDIM2(0, 175, 0, 17)
  1998. Button.AutoButtonColor = false
  1999. Button.Font = Enum.Font.SourceSans
  2000. Button.Text = ""
  2001. Button.TextColor3 = COL3RGB(0, 0, 0)
  2002. Button.TextSize = 14.000
  2003. Button.BorderSizePixel = 0
  2004. Button.ZIndex = 6
  2005. TextLabel.Parent = Button
  2006. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  2007. TextLabel.BackgroundTransparency = 1.000
  2008. TextLabel.BorderColor3 = COL3RGB(27, 42, 53)
  2009. TextLabel.Position = UDIM2(0, 5, 0, -1)
  2010. TextLabel.Size = UDIM2(-0.21714285, 208, 1, 0)
  2011. TextLabel.Font = Enum.Font.SourceSansSemibold
  2012. TextLabel.Text = v
  2013. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  2014. TextLabel.TextSize = 14.000
  2015. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  2016. TextLabel.ZIndex = 6
  2017. Button.MouseButton1Down:Connect(function()
  2018. Drop.Visible = false
  2019. Drop.CanvasPosition = Vec2(0,0)
  2020. abcd.Text = v
  2021. for i,v in pairs(Scroll.Parent:GetChildren()) do
  2022. if v:IsA("Frame") then
  2023. v.Visible = false
  2024. end
  2025. end
  2026. Element.value.Dropdown = v
  2027. Scroll.Visible = true
  2028. callback(Element.value)
  2029. end)
  2030. Button.MouseEnter:Connect(function()
  2031. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  2032. end)
  2033. Button.MouseLeave:Connect(function()
  2034. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  2035. end)
  2036. if first then
  2037. abcd.Text = v
  2038. Element.value.Dropdown = v
  2039. end
  2040. local Frame = INST("ScrollingFrame")
  2041. local UIListLayout = INST("UIListLayout")
  2042. Scroll.Name = "Scroll"
  2043. Scroll.Parent = Dropdown
  2044. Scroll.BackgroundColor3 = COL3RGB(255, 255, 255)
  2045. Scroll.BackgroundTransparency = 1.000
  2046. Scroll.Position = UDIM2(0, 0, 0, 0)
  2047. Scroll.Size = UDIM2(1, 0, 0, amount * 16 + 8)
  2048. Scroll.Visible = first
  2049. Scroll.Name = v
  2050. Frame.Name = "Frame"
  2051. Frame.Parent = Scroll
  2052. Frame.Active = true
  2053. Frame.BackgroundColor3 = COL3RGB(33, 35, 47)
  2054. Frame.BorderColor3 = COL3RGB(27, 27, 35)
  2055. Frame.Position = UDIM2(0, 30, 0, 40)
  2056. Frame.Size = UDIM2(0, 175, 0, 16 * amount)
  2057. Frame.BottomImage = "http://www.roblox.com/asset/?id=6724808282"
  2058. Frame.CanvasSize = UDIM2(0, 0, 0, 0)
  2059. Frame.MidImage = "http://www.roblox.com/asset/?id=6724808282"
  2060. Frame.ScrollBarThickness = 4
  2061. Frame.TopImage = "http://www.roblox.com/asset/?id=6724808282"
  2062. Frame.AutomaticCanvasSize = "Y"
  2063. Frame.ScrollBarImageColor3 = COL3RGB(255, 37, 110)
  2064. UIListLayout.Parent = Frame
  2065. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  2066. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  2067. local joll = true
  2068. for i,v in ipairs(joe2) do
  2069. local Button = INST("TextButton")
  2070. local TextLabel = INST("TextLabel")
  2071. Button.Name = v
  2072. Button.Parent = Frame
  2073. Button.BackgroundColor3 = COL3RGB(33, 35, 47)
  2074. Button.BorderColor3 = COL3RGB(27, 27, 35)
  2075. Button.BorderSizePixel = 0
  2076. Button.Position = UDIM2(0, 30, 0, 16)
  2077. Button.Size = UDIM2(1, 0, 0, 16)
  2078. Button.AutoButtonColor = false
  2079. Button.Font = Enum.Font.SourceSans
  2080. Button.Text = ""
  2081. Button.TextColor3 = COL3RGB(0, 0, 0)
  2082. Button.TextSize = 14.000
  2083. TextLabel.Parent = Button
  2084. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  2085. TextLabel.BackgroundTransparency = 1.000
  2086. TextLabel.BorderColor3 = COL3RGB(27, 42, 53)
  2087. TextLabel.Position = UDIM2(0, 4, 0, -1)
  2088. TextLabel.Size = UDIM2(1, 1, 1, 1)
  2089. TextLabel.Font = Enum.Font.SourceSansSemibold
  2090. TextLabel.Text = v
  2091. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  2092. TextLabel.TextSize = 14.000
  2093. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  2094. if joll then
  2095. joll = false
  2096. TextLabel.TextColor3 = COL3RGB(255, 37, 110)
  2097. end
  2098. Button.MouseButton1Down:Connect(function()
  2099. for i,v in pairs(Frame:GetChildren()) do
  2100. if v:IsA("TextButton") then
  2101. library:Tween(v.TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  2102. end
  2103. end
  2104. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  2105. Element.value.Scroll[joell] = v
  2106. values[tabname][sectorname][text] = Element.value
  2107. callback(Element.value)
  2108. end)
  2109. Button.MouseEnter:Connect(function()
  2110. if Element.value.Scroll[joell] ~= v then
  2111. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  2112. end
  2113. end)
  2114. Button.MouseLeave:Connect(function()
  2115. if Element.value.Scroll[joell] ~= v then
  2116. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  2117. end
  2118. end)
  2119. end
  2120. first = false
  2121. end
  2122. end
  2123. ImageLabel.Parent = Button
  2124. ImageLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  2125. ImageLabel.BackgroundTransparency = 1.000
  2126. ImageLabel.Position = UDIM2(0, 165, 0, 6)
  2127. ImageLabel.Size = UDIM2(0, 6, 0, 4)
  2128. ImageLabel.Image = "http://www.roblox.com/asset/?id=6724771531"
  2129. TextLabel_3.Parent = Dropdown
  2130. TextLabel_3.BackgroundColor3 = COL3RGB(255, 255, 255)
  2131. TextLabel_3.BackgroundTransparency = 1.000
  2132. TextLabel_3.Position = UDIM2(0, 32, 0, -1)
  2133. TextLabel_3.Size = UDIM2(0.111913361, 208, 0.382215232, 0)
  2134. TextLabel_3.Font = Enum.Font.SourceSansSemibold
  2135. TextLabel_3.Text = text
  2136. TextLabel_3.TextColor3 = COL3RGB(200, 200, 200)
  2137. TextLabel_3.TextSize = 14.000
  2138. TextLabel_3.TextXAlignment = Enum.TextXAlignment.Left
  2139. Button.MouseButton1Down:Connect(function()
  2140. Drop.Visible = not Drop.Visible
  2141. if not Drop.Visible then
  2142. Drop.CanvasPosition = Vec2(0,0)
  2143. end
  2144. end)
  2145. local indrop = false
  2146. local ind = false
  2147. Drop.MouseEnter:Connect(function()
  2148. indrop = true
  2149. end)
  2150. Drop.MouseLeave:Connect(function()
  2151. indrop = false
  2152. end)
  2153. Button.MouseEnter:Connect(function()
  2154. ind = true
  2155. end)
  2156. Button.MouseLeave:Connect(function()
  2157. ind = false
  2158. end)
  2159. game:GetService("UserInputService").InputBegan:Connect(function(input)
  2160. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 then
  2161. if Drop.Visible == true and not indrop and not ind then
  2162. Drop.Visible = false
  2163. Drop.CanvasPosition = Vec2(0,0)
  2164. end
  2165. end
  2166. end)
  2167. function Element:SetValue(tbl)
  2168. Element.value = tbl
  2169. abcd.Text = tbl.Dropdown
  2170. values[tabname][sectorname][text] = Element.value
  2171. for i,v in pairs(Dropdown:GetChildren()) do
  2172. if v:IsA("Frame") then
  2173. if v.Name == Element.value.Dropdown then
  2174. v.Visible = true
  2175. else
  2176. v.Visible = false
  2177. end
  2178. for _,bad in pairs(v.Frame:GetChildren()) do
  2179. if bad:IsA("TextButton") then
  2180. bad.TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  2181. if bad.Name == Element.value.Scroll[v.Name] then
  2182. bad.TextLabel.TextColor3 = COL3RGB(255, 37, 110)
  2183. end
  2184. end
  2185. end
  2186. end
  2187. end
  2188. end
  2189. if data.default then
  2190. Element:SetValue(data.default)
  2191. end
  2192. values[tabname][sectorname][text] = Element.value
  2193. elseif type == "Scroll" then
  2194. local amount = data.Amount or 6
  2195. Section.Size = Section.Size + UDIM2(0,0,0,amount * 16 + 8)
  2196. if data.alphabet then
  2197. TBLSORT(data.options, function(a,b)
  2198. return a < b
  2199. end)
  2200. end
  2201. Element.value = {Scroll = data.default and data.default.Scroll or data.options[1]}
  2202. local Scroll = INST("Frame")
  2203. local Frame = INST("ScrollingFrame")
  2204. local UIListLayout = INST("UIListLayout")
  2205. Scroll.Name = "Scroll"
  2206. Scroll.Parent = Inner
  2207. Scroll.BackgroundColor3 = COL3RGB(255, 255, 255)
  2208. Scroll.BackgroundTransparency = 1.000
  2209. Scroll.Position = UDIM2(0, 0, 00, 0)
  2210. Scroll.Size = UDIM2(1, 0, 0, amount * 16 + 8)
  2211. Frame.Name = "Frame"
  2212. Frame.Parent = Scroll
  2213. Frame.Active = true
  2214. Frame.BackgroundColor3 = COL3RGB(33, 35, 47)
  2215. Frame.BorderColor3 = COL3RGB(27, 27, 35)
  2216. Frame.Position = UDIM2(0, 30, 0, 0)
  2217. Frame.Size = UDIM2(0, 175, 0, 16 * amount)
  2218. Frame.BottomImage = "http://www.roblox.com/asset/?id=6724808282"
  2219. Frame.CanvasSize = UDIM2(0, 0, 0, 0)
  2220. Frame.MidImage = "http://www.roblox.com/asset/?id=6724808282"
  2221. Frame.ScrollBarThickness = 4
  2222. Frame.TopImage = "http://www.roblox.com/asset/?id=6724808282"
  2223. Frame.AutomaticCanvasSize = "Y"
  2224. Frame.ScrollBarImageColor3 = COL3RGB(255, 37, 110)
  2225. UIListLayout.Parent = Frame
  2226. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  2227. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  2228. local first = true
  2229. for i,v in ipairs(data.options) do
  2230. local Button = INST("TextButton")
  2231. local TextLabel = INST("TextLabel")
  2232. Button.Name = v
  2233. Button.Parent = Frame
  2234. Button.BackgroundColor3 = COL3RGB(33, 35, 47)
  2235. Button.BorderColor3 = COL3RGB(27, 27, 35)
  2236. Button.BorderSizePixel = 0
  2237. Button.Position = UDIM2(0, 30, 0, 16)
  2238. Button.Size = UDIM2(1, 0, 0, 16)
  2239. Button.AutoButtonColor = false
  2240. Button.Font = Enum.Font.SourceSans
  2241. Button.Text = ""
  2242. Button.TextColor3 = COL3RGB(0, 0, 0)
  2243. Button.TextSize = 14.000
  2244. TextLabel.Parent = Button
  2245. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  2246. TextLabel.BackgroundTransparency = 1.000
  2247. TextLabel.BorderColor3 = COL3RGB(27, 42, 53)
  2248. TextLabel.Position = UDIM2(0, 4, 0, -1)
  2249. TextLabel.Size = UDIM2(1, 1, 1, 1)
  2250. TextLabel.Font = Enum.Font.SourceSansSemibold
  2251. TextLabel.Text = v
  2252. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  2253. TextLabel.TextSize = 14.000
  2254. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  2255. if first then first = false
  2256. TextLabel.TextColor3 = COL3RGB(255, 37, 110)
  2257. end
  2258. Button.MouseButton1Down:Connect(function()
  2259. for i,v in pairs(Frame:GetChildren()) do
  2260. if v:IsA("TextButton") then
  2261. library:Tween(v.TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  2262. end
  2263. end
  2264. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  2265. Element.value.Scroll = v
  2266. values[tabname][sectorname][text] = Element.value
  2267. callback(Element.value)
  2268. end)
  2269. Button.MouseEnter:Connect(function()
  2270. if Element.value.Scroll ~= v then
  2271. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  2272. end
  2273. end)
  2274. Button.MouseLeave:Connect(function()
  2275. if Element.value.Scroll ~= v then
  2276. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  2277. end
  2278. end)
  2279. end
  2280. function Element:SetValue(val)
  2281. Element.value = val
  2282. for i,v in pairs(Frame:GetChildren()) do
  2283. if v:IsA("TextButton") then
  2284. library:Tween(v.TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  2285. end
  2286. end
  2287. library:Tween(Frame[Element.value.Scroll].TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  2288. values[tabname][sectorname][text] = Element.value
  2289. callback(Element.value)
  2290. end
  2291. values[tabname][sectorname][text] = Element.value
  2292. elseif type == "Jumbobox" then
  2293. Section.Size = Section.Size + UDIM2(0,0,0,39)
  2294. Element.value = {Jumbobox = {}}
  2295. data.options = data.options or {}
  2296. local Dropdown = INST("Frame")
  2297. local Button = INST("TextButton")
  2298. local TextLabel = INST("TextLabel")
  2299. local Drop = INST("ScrollingFrame")
  2300. local Button_2 = INST("TextButton")
  2301. local TextLabel_2 = INST("TextLabel")
  2302. local UIListLayout = INST("UIListLayout")
  2303. local ImageLabel = INST("ImageLabel")
  2304. local TextLabel_3 = INST("TextLabel")
  2305. Dropdown.Name = "Dropdown"
  2306. Dropdown.Parent = Inner
  2307. Dropdown.BackgroundColor3 = COL3RGB(33, 35, 255)
  2308. Dropdown.BackgroundTransparency = 1.000
  2309. Dropdown.Position = UDIM2(0, 0, 0.255102038, 0)
  2310. Dropdown.Size = UDIM2(1, 0, 0, 39)
  2311. Button.Name = "Button"
  2312. Button.Parent = Dropdown
  2313. Button.BackgroundColor3 = COL3RGB(33, 35, 47)
  2314. Button.BorderColor3 = COL3RGB(27, 27, 35)
  2315. Button.Position = UDIM2(0, 30, 0, 16)
  2316. Button.Size = UDIM2(0, 175, 0, 17)
  2317. Button.AutoButtonColor = false
  2318. Button.Font = Enum.Font.SourceSans
  2319. Button.Text = ""
  2320. Button.TextColor3 = COL3RGB(0, 0, 0)
  2321. Button.TextSize = 14.000
  2322. TextLabel.Parent = Button
  2323. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  2324. TextLabel.BackgroundTransparency = 1.000
  2325. TextLabel.BorderColor3 = COL3RGB(27, 42, 53)
  2326. TextLabel.Position = UDIM2(0, 5, 0, 0)
  2327. TextLabel.Size = UDIM2(-0.21714285, 208, 1, 0)
  2328. TextLabel.Font = Enum.Font.SourceSansSemibold
  2329. TextLabel.Text = "..."
  2330. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  2331. TextLabel.TextSize = 14.000
  2332. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  2333. local abcd = TextLabel
  2334. Drop.Name = "Drop"
  2335. Drop.Parent = Button
  2336. Drop.Active = true
  2337. Drop.BackgroundColor3 = COL3RGB(33, 35, 47)
  2338. Drop.BorderColor3 = COL3RGB(27, 27, 35)
  2339. Drop.Position = UDIM2(0, 0, 1, 1)
  2340. Drop.Size = UDIM2(1, 0, 0, 20)
  2341. Drop.Visible = false
  2342. Drop.BottomImage = "http://www.roblox.com/asset/?id=6724808282"
  2343. Drop.CanvasSize = UDIM2(0, 0, 0, 0)
  2344. Drop.ScrollBarThickness = 4
  2345. Drop.TopImage = "http://www.roblox.com/asset/?id=6724808282"
  2346. Drop.MidImage = "http://www.roblox.com/asset/?id=6724808282"
  2347. --Drop.AutomaticCanvasSize = "Y"
  2348. for i,v in pairs(data.options) do
  2349. Drop.CanvasSize = Drop.CanvasSize + UDIM2(0, 0, 0, 17)
  2350. end
  2351. Drop.ZIndex = 5
  2352. Drop.ScrollBarImageColor3 = COL3RGB(255, 37, 110)
  2353. UIListLayout.Parent = Drop
  2354. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  2355. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  2356. values[tabname][sectorname][text] = Element.value
  2357. local num = #data.options
  2358. if num > 5 then
  2359. Drop.Size = UDIM2(1, 0, 0, 85)
  2360. else
  2361. Drop.Size = UDIM2(1, 0, 0, 17*num)
  2362. end
  2363. local first = true
  2364. local function updatetext()
  2365. local old = {}
  2366. for i,v in ipairs(data.options) do
  2367. if TBLFIND(Element.value.Jumbobox, v) then
  2368. INSERT(old, v)
  2369. else
  2370. end
  2371. end
  2372. local str = ""
  2373. if #old == 0 then
  2374. str = "..."
  2375. else
  2376. if #old == 1 then
  2377. str = old[1]
  2378. else
  2379. for i,v in ipairs(old) do
  2380. if i == 1 then
  2381. str = v
  2382. else
  2383. if i > 2 then
  2384. if i < 4 then
  2385. str = str..", ..."
  2386. end
  2387. else
  2388. str = str..", "..v
  2389. end
  2390. end
  2391. end
  2392. end
  2393. end
  2394. abcd.Text = str
  2395. end
  2396. for i,v in ipairs(data.options) do
  2397. do
  2398. local Button = INST("TextButton")
  2399. local TextLabel = INST("TextLabel")
  2400. Button.Name = v
  2401. Button.Parent = Drop
  2402. Button.BackgroundColor3 = COL3RGB(33, 35, 47)
  2403. Button.BorderColor3 = COL3RGB(27, 27, 35)
  2404. Button.Position = UDIM2(0, 30, 0, 16)
  2405. Button.Size = UDIM2(0, 175, 0, 17)
  2406. Button.AutoButtonColor = false
  2407. Button.Font = Enum.Font.SourceSans
  2408. Button.Text = ""
  2409. Button.TextColor3 = COL3RGB(0, 0, 0)
  2410. Button.TextSize = 14.000
  2411. Button.BorderSizePixel = 0
  2412. Button.ZIndex = 6
  2413. TextLabel.Parent = Button
  2414. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  2415. TextLabel.BackgroundTransparency = 1.000
  2416. TextLabel.BorderColor3 = COL3RGB(27, 42, 53)
  2417. TextLabel.Position = UDIM2(0, 5, 0, -1)
  2418. TextLabel.Size = UDIM2(-0.21714285, 208, 1, 0)
  2419. TextLabel.Font = Enum.Font.SourceSansSemibold
  2420. TextLabel.Text = v
  2421. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  2422. TextLabel.TextSize = 14.000
  2423. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  2424. TextLabel.ZIndex = 6
  2425. Button.MouseButton1Down:Connect(function()
  2426. if TBLFIND(Element.value.Jumbobox, v) then
  2427. for i,a in pairs(Element.value.Jumbobox) do
  2428. if a == v then
  2429. TBLREMOVE(Element.value.Jumbobox, i)
  2430. end
  2431. end
  2432. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  2433. else
  2434. INSERT(Element.value.Jumbobox, v)
  2435. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(175, 42, 86)})
  2436. end
  2437. updatetext()
  2438. values[tabname][sectorname][text] = Element.value
  2439. callback(Element.value)
  2440. end)
  2441. Button.MouseEnter:Connect(function()
  2442. if not TBLFIND(Element.value.Jumbobox, v) then
  2443. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  2444. end
  2445. end)
  2446. Button.MouseLeave:Connect(function()
  2447. if not TBLFIND(Element.value.Jumbobox, v) then
  2448. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  2449. end
  2450. end)
  2451. first = false
  2452. end
  2453. end
  2454. function Element:SetValue(val)
  2455. Element.value = val
  2456. for i,v in pairs(Drop:GetChildren()) do
  2457. if v.Name ~= "UIListLayout" then
  2458. if TBLFIND(val.Jumbobox, v.Name) then
  2459. v.TextLabel.TextColor3 = COL3RGB(175, 42, 86)
  2460. else
  2461. v.TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  2462. end
  2463. end
  2464. end
  2465. updatetext()
  2466. values[tabname][sectorname][text] = Element.value
  2467. callback(val)
  2468. end
  2469. if data.default then
  2470. Element:SetValue(data.default)
  2471. end
  2472. ImageLabel.Parent = Button
  2473. ImageLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  2474. ImageLabel.BackgroundTransparency = 1.000
  2475. ImageLabel.Position = UDIM2(0, 165, 0, 6)
  2476. ImageLabel.Size = UDIM2(0, 6, 0, 4)
  2477. ImageLabel.Image = "http://www.roblox.com/asset/?id=6724771531"
  2478. TextLabel_3.Parent = Dropdown
  2479. TextLabel_3.BackgroundColor3 = COL3RGB(255, 255, 255)
  2480. TextLabel_3.BackgroundTransparency = 1.000
  2481. TextLabel_3.Position = UDIM2(0, 32, 0, -1)
  2482. TextLabel_3.Size = UDIM2(0.111913361, 208, 0.382215232, 0)
  2483. TextLabel_3.Font = Enum.Font.SourceSansSemibold
  2484. TextLabel_3.Text = text
  2485. TextLabel_3.TextColor3 = COL3RGB(200, 200, 200)
  2486. TextLabel_3.TextSize = 14.000
  2487. TextLabel_3.TextXAlignment = Enum.TextXAlignment.Left
  2488. Button.MouseButton1Down:Connect(function()
  2489. Drop.Visible = not Drop.Visible
  2490. if not Drop.Visible then
  2491. Drop.CanvasPosition = Vec2(0,0)
  2492. end
  2493. end)
  2494. local indrop = false
  2495. local ind = false
  2496. Drop.MouseEnter:Connect(function()
  2497. indrop = true
  2498. end)
  2499. Drop.MouseLeave:Connect(function()
  2500. indrop = false
  2501. end)
  2502. Button.MouseEnter:Connect(function()
  2503. ind = true
  2504. end)
  2505. Button.MouseLeave:Connect(function()
  2506. ind = false
  2507. end)
  2508. game:GetService("UserInputService").InputBegan:Connect(function(input)
  2509. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 then
  2510. if Drop.Visible == true and not indrop and not ind then
  2511. Drop.Visible = false
  2512. Drop.CanvasPosition = Vec2(0,0)
  2513. end
  2514. end
  2515. end)
  2516. elseif type == "ToggleKeybind" then
  2517. Section.Size = Section.Size + UDIM2(0,0,0,16)
  2518. Element.value = {Toggle = data.default and data.default.Toggle or false, Key, Type = "Always", Active = true}
  2519. local Toggle = INST("Frame")
  2520. local Button = INST("TextButton")
  2521. local Color = INST("Frame")
  2522. local TextLabel = INST("TextLabel")
  2523. Toggle.Name = "Toggle"
  2524. Toggle.Parent = Inner
  2525. Toggle.BackgroundColor3 = COL3RGB(255, 255, 255)
  2526. Toggle.BackgroundTransparency = 1.000
  2527. Toggle.Size = UDIM2(1, 0, 0, 15)
  2528. Button.Name = "Button"
  2529. Button.Parent = Toggle
  2530. Button.BackgroundColor3 = COL3RGB(255, 255, 255)
  2531. Button.BackgroundTransparency = 1.000
  2532. Button.Size = UDIM2(1, 0, 1, 0)
  2533. Button.Font = Enum.Font.SourceSans
  2534. Button.Text = ""
  2535. Button.TextColor3 = COL3RGB(0, 0, 0)
  2536. Button.TextSize = 14.000
  2537. Color.Name = "Color"
  2538. Color.Parent = Button
  2539. Color.BackgroundColor3 = COL3RGB(33, 35, 47)
  2540. Color.BorderColor3 = COL3RGB(27, 27, 35)
  2541. Color.Position = UDIM2(0, 15, 0.5, -5)
  2542. Color.Size = UDIM2(0, 8, 0, 8)
  2543. local binding = false
  2544. TextLabel.Parent = Button
  2545. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  2546. TextLabel.BackgroundTransparency = 1.000
  2547. TextLabel.Position = UDIM2(0, 32, 0, -1)
  2548. TextLabel.Size = UDIM2(0.111913361, 208, 1, 0)
  2549. TextLabel.Font = Enum.Font.SourceSansSemibold
  2550. TextLabel.Text = text
  2551. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  2552. TextLabel.TextSize = 14.000
  2553. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  2554. local function update()
  2555. if Element.value.Toggle then
  2556. tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = COL3RGB(155, 22, 66)})
  2557. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  2558. else
  2559. keybindremove(text)
  2560. tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = COL3RGB(33, 35, 47)})
  2561. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  2562. end
  2563. values[tabname][sectorname][text] = Element.value
  2564. callback(Element.value)
  2565. end
  2566. Button.MouseButton1Down:Connect(function()
  2567. if not binding then
  2568. Element.value.Toggle = not Element.value.Toggle
  2569. update()
  2570. values[tabname][sectorname][text] = Element.value
  2571. callback(Element.value)
  2572. end
  2573. end)
  2574. if data.default then
  2575. update()
  2576. end
  2577. values[tabname][sectorname][text] = Element.value
  2578. do
  2579. local Keybind = INST("TextButton")
  2580. local Frame = INST("Frame")
  2581. local Always = INST("TextButton")
  2582. local UIListLayout = INST("UIListLayout")
  2583. local Hold = INST("TextButton")
  2584. local Toggle = INST("TextButton")
  2585. Keybind.Name = "Keybind"
  2586. Keybind.Parent = Button
  2587. Keybind.BackgroundColor3 = COL3RGB(33, 35, 47)
  2588. Keybind.BorderColor3 = COL3RGB(27, 27, 35)
  2589. Keybind.Position = UDIM2(0, 270, 0.5, -6)
  2590. Keybind.Text = "NONE"
  2591. Keybind.Size = UDIM2(0, 43, 0, 12)
  2592. Keybind.Size = UDIM2(0,txt:GetTextSize("NONE", 14, Enum.Font.SourceSansSemibold, Vec2(700, 12)).X + 5,0, 12)
  2593. Keybind.AutoButtonColor = false
  2594. Keybind.Font = Enum.Font.SourceSansSemibold
  2595. Keybind.TextColor3 = COL3RGB(200, 200, 200)
  2596. Keybind.TextSize = 14.000
  2597. Keybind.AnchorPoint = Vec2(1,0)
  2598. Keybind.ZIndex = 3
  2599. Frame.Parent = Keybind
  2600. Frame.BackgroundColor3 = COL3RGB(33, 35, 47)
  2601. Frame.BorderColor3 = COL3RGB(27, 27, 35)
  2602. Frame.Position = UDIM2(1, -49, 0, 1)
  2603. Frame.Size = UDIM2(0, 49, 0, 49)
  2604. Frame.Visible = false
  2605. Frame.ZIndex = 3
  2606. Always.Name = "Always"
  2607. Always.Parent = Frame
  2608. Always.BackgroundColor3 = COL3RGB(33, 35, 47)
  2609. Always.BackgroundTransparency = 1.000
  2610. Always.BorderColor3 = COL3RGB(27, 27, 35)
  2611. Always.Position = UDIM2(-3.03289485, 231, 0.115384616, -6)
  2612. Always.Size = UDIM2(1, 0, 0, 16)
  2613. Always.AutoButtonColor = false
  2614. Always.Font = Enum.Font.SourceSansBold
  2615. Always.Text = "Always"
  2616. Always.TextColor3 = COL3RGB(173, 24, 72)
  2617. Always.TextSize = 14.000
  2618. Always.ZIndex = 3
  2619. UIListLayout.Parent = Frame
  2620. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  2621. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  2622. Hold.Name = "Hold"
  2623. Hold.Parent = Frame
  2624. Hold.BackgroundColor3 = COL3RGB(33, 35, 47)
  2625. Hold.BackgroundTransparency = 1.000
  2626. Hold.BorderColor3 = COL3RGB(27, 27, 35)
  2627. Hold.Position = UDIM2(-3.03289485, 231, 0.115384616, -6)
  2628. Hold.Size = UDIM2(1, 0, 0, 16)
  2629. Hold.AutoButtonColor = false
  2630. Hold.Font = Enum.Font.SourceSansSemibold
  2631. Hold.Text = "Hold"
  2632. Hold.TextColor3 = COL3RGB(200, 200, 200)
  2633. Hold.TextSize = 14.000
  2634. Hold.ZIndex = 3
  2635. Toggle.Name = "Toggle"
  2636. Toggle.Parent = Frame
  2637. Toggle.BackgroundColor3 = COL3RGB(33, 35, 47)
  2638. Toggle.BackgroundTransparency = 1.000
  2639. Toggle.BorderColor3 = COL3RGB(27, 27, 35)
  2640. Toggle.Position = UDIM2(-3.03289485, 231, 0.115384616, -6)
  2641. Toggle.Size = UDIM2(1, 0, 0, 16)
  2642. Toggle.AutoButtonColor = false
  2643. Toggle.Font = Enum.Font.SourceSansSemibold
  2644. Toggle.Text = "Toggle"
  2645. Toggle.TextColor3 = COL3RGB(200, 200, 200)
  2646. Toggle.TextSize = 14.000
  2647. Toggle.ZIndex = 3
  2648. for _,button in pairs(Frame:GetChildren()) do
  2649. if button:IsA("TextButton") then
  2650. button.MouseButton1Down:Connect(function()
  2651. Element.value.Type = button.Text
  2652. Frame.Visible = false
  2653. if Element.value.Active ~= (Element.value.Type == "Always" and true or false) then
  2654. Element.value.Active = Element.value.Type == "Always" and true or false
  2655. callback(Element.value)
  2656. end
  2657. if button.Text == "Always" then
  2658. keybindremove(text)
  2659. end
  2660. for _,button in pairs(Frame:GetChildren()) do
  2661. if button:IsA("TextButton") and button.Text ~= Element.value.Type then
  2662. button.Font = Enum.Font.SourceSansSemibold
  2663. library:Tween(button, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200,200,200)})
  2664. end
  2665. end
  2666. button.Font = Enum.Font.SourceSansBold
  2667. button.TextColor3 = COL3RGB(173, 24, 74)
  2668. values[tabname][sectorname][text] = Element.value
  2669. end)
  2670. button.MouseEnter:Connect(function()
  2671. if Element.value.Type ~= button.Text then
  2672. library:Tween(button, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255,255,255)})
  2673. end
  2674. end)
  2675. button.MouseLeave:Connect(function()
  2676. if Element.value.Type ~= button.Text then
  2677. library:Tween(button, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200,200,200)})
  2678. end
  2679. end)
  2680. end
  2681. end
  2682. Keybind.MouseButton1Down:Connect(function()
  2683. if not binding then
  2684. wait()
  2685. binding = true
  2686. Keybind.Text = "..."
  2687. Keybind.Size = UDIM2(0,txt:GetTextSize("...", 14, Enum.Font.SourceSansSemibold, Vec2(700, 12)).X + 4,0, 12)
  2688. end
  2689. end)
  2690. Keybind.MouseButton2Down:Connect(function()
  2691. if not binding then
  2692. Frame.Visible = not Frame.Visible
  2693. end
  2694. end)
  2695. local Player = game.Players.LocalPlayer
  2696. local Mouse = Player:GetMouse()
  2697. local InFrame = false
  2698. Frame.MouseEnter:Connect(function()
  2699. InFrame = true
  2700. end)
  2701. Frame.MouseLeave:Connect(function()
  2702. InFrame = false
  2703. end)
  2704. local InFrame2 = false
  2705. Keybind.MouseEnter:Connect(function()
  2706. InFrame2 = true
  2707. end)
  2708. Keybind.MouseLeave:Connect(function()
  2709. InFrame2 = false
  2710. end)
  2711. game:GetService("UserInputService").InputBegan:Connect(function(input)
  2712. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 and not binding then
  2713. if Frame.Visible == true and not InFrame and not InFrame2 then
  2714. Frame.Visible = false
  2715. end
  2716. end
  2717. if binding then
  2718. binding = false
  2719. Keybind.Text = input.KeyCode.Name ~= "Unknown" and input.KeyCode.Name:upper() or input.UserInputType.Name:upper()
  2720. Keybind.Size = UDIM2(0,txt:GetTextSize(Keybind.Text, 14, Enum.Font.SourceSansSemibold, Vec2(700, 12)).X + 5,0, 12)
  2721. Element.value.Key = input.KeyCode.Name ~= "Unknown" and input.KeyCode.Name or input.UserInputType.Name
  2722. if input.KeyCode.Name == "Backspace" then
  2723. Keybind.Text = "NONE"
  2724. Keybind.Size = UDIM2(0,txt:GetTextSize(Keybind.Text, 14, Enum.Font.SourceSansSemibold, Vec2(700, 12)).X + 4,0, 12)
  2725. Element.value.Key = nil
  2726. Element.value.Active = true
  2727. end
  2728. callback(Element.value)
  2729. else
  2730. if Element.value.Key ~= nil then
  2731. if FIND(Element.value.Key, "Mouse") then
  2732. if input.UserInputType == Enum.UserInputType[Element.value.Key] then
  2733. if Element.value.Type == "Hold" then
  2734. Element.value.Active = true
  2735. callback(Element.value)
  2736. if Element.value.Active and Element.value.Toggle then
  2737. keybindadd(text)
  2738. else
  2739. keybindremove(text)
  2740. end
  2741. elseif Element.value.Type == "Toggle" then
  2742. Element.value.Active = not Element.value.Active
  2743. callback(Element.value)
  2744. if Element.value.Active and Element.value.Toggle then
  2745. keybindadd(text)
  2746. else
  2747. keybindremove(text)
  2748. end
  2749. end
  2750. end
  2751. else
  2752. if input.KeyCode == Enum.KeyCode[Element.value.Key] then
  2753. if Element.value.Type == "Hold" then
  2754. Element.value.Active = true
  2755. callback(Element.value)
  2756. if Element.value.Active and Element.value.Toggle then
  2757. keybindadd(text)
  2758. else
  2759. keybindremove(text)
  2760. end
  2761. elseif Element.value.Type == "Toggle" then
  2762. Element.value.Active = not Element.value.Active
  2763. callback(Element.value)
  2764. if Element.value.Active and Element.value.Toggle then
  2765. keybindadd(text)
  2766. else
  2767. keybindremove(text)
  2768. end
  2769. end
  2770. end
  2771. end
  2772. else
  2773. Element.value.Active = true
  2774. end
  2775. end
  2776. values[tabname][sectorname][text] = Element.value
  2777. end)
  2778. game:GetService("UserInputService").InputEnded:Connect(function(input)
  2779. if Element.value.Key ~= nil then
  2780. if FIND(Element.value.Key, "Mouse") then
  2781. if input.UserInputType == Enum.UserInputType[Element.value.Key] then
  2782. if Element.value.Type == "Hold" then
  2783. Element.value.Active = false
  2784. callback(Element.value)
  2785. if Element.value.Active then
  2786. keybindadd(text)
  2787. else
  2788. keybindremove(text)
  2789. end
  2790. end
  2791. end
  2792. else
  2793. if input.KeyCode == Enum.KeyCode[Element.value.Key] then
  2794. if Element.value.Type == "Hold" then
  2795. Element.value.Active = false
  2796. callback(Element.value)
  2797. if Element.value.Active then
  2798. keybindadd(text)
  2799. else
  2800. keybindremove(text)
  2801. end
  2802. end
  2803. end
  2804. end
  2805. end
  2806. values[tabname][sectorname][text] = Element.value
  2807. end)
  2808. end
  2809. function Element:SetValue(value)
  2810. Element.value = value
  2811. update()
  2812. end
  2813. elseif type == "Toggle" then
  2814. Section.Size = Section.Size + UDIM2(0,0,0,16)
  2815. Element.value = {Toggle = data.default and data.default.Toggle or false}
  2816. local Toggle = INST("Frame")
  2817. local Button = INST("TextButton")
  2818. local Color = INST("Frame")
  2819. local TextLabel = INST("TextLabel")
  2820. Toggle.Name = "Toggle"
  2821. Toggle.Parent = Inner
  2822. Toggle.BackgroundColor3 = COL3RGB(255, 255, 255)
  2823. Toggle.BackgroundTransparency = 1.000
  2824. Toggle.Size = UDIM2(1, 0, 0, 15)
  2825. Button.Name = "Button"
  2826. Button.Parent = Toggle
  2827. Button.BackgroundColor3 = COL3RGB(255, 255, 255)
  2828. Button.BackgroundTransparency = 1.000
  2829. Button.Size = UDIM2(1, 0, 1, 0)
  2830. Button.Font = Enum.Font.SourceSans
  2831. Button.Text = ""
  2832. Button.TextColor3 = COL3RGB(0, 0, 0)
  2833. Button.TextSize = 14.000
  2834. Color.Name = "Color"
  2835. Color.Parent = Button
  2836. Color.BackgroundColor3 = COL3RGB(33, 35, 47)
  2837. Color.BorderColor3 = COL3RGB(27, 27, 35)
  2838. Color.Position = UDIM2(0, 15, 0.5, -5)
  2839. Color.Size = UDIM2(0, 8, 0, 8)
  2840. TextLabel.Parent = Button
  2841. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  2842. TextLabel.BackgroundTransparency = 1.000
  2843. TextLabel.Position = UDIM2(0, 32, 0, -1)
  2844. TextLabel.Size = UDIM2(0.111913361, 208, 1, 0)
  2845. TextLabel.Font = Enum.Font.SourceSansSemibold
  2846. TextLabel.Text = text
  2847. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  2848. TextLabel.TextSize = 14.000
  2849. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  2850. local function update()
  2851. if Element.value.Toggle then
  2852. tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = COL3RGB(155, 26, 66)})
  2853. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  2854. else
  2855. tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = COL3RGB(33, 35, 47)})
  2856. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  2857. end
  2858. values[tabname][sectorname][text] = Element.value
  2859. end
  2860. Button.MouseButton1Down:Connect(function()
  2861. Element.value.Toggle = not Element.value.Toggle
  2862. update()
  2863. values[tabname][sectorname][text] = Element.value
  2864. callback(Element.value)
  2865. end)
  2866. if data.default then
  2867. update()
  2868. end
  2869. values[tabname][sectorname][text] = Element.value
  2870. function Element:SetValue(value)
  2871. Element.value = value
  2872. values[tabname][sectorname][text] = Element.value
  2873. update()
  2874. callback(Element.value)
  2875. end
  2876. elseif type == "ToggleColor" then
  2877. Section.Size = Section.Size + UDIM2(0,0,0,16)
  2878. Element.value = {Toggle = data.default and data.default.Toggle or false, Color = data.default and data.default.Color or COL3RGB(255,255,255)}
  2879. local Toggle = INST("Frame")
  2880. local Button = INST("TextButton")
  2881. local Color = INST("Frame")
  2882. local TextLabel = INST("TextLabel")
  2883. Toggle.Name = "Toggle"
  2884. Toggle.Parent = Inner
  2885. Toggle.BackgroundColor3 = COL3RGB(255, 255, 255)
  2886. Toggle.BackgroundTransparency = 1.000
  2887. Toggle.Size = UDIM2(1, 0, 0, 15)
  2888. Button.Name = "Button"
  2889. Button.Parent = Toggle
  2890. Button.BackgroundColor3 = COL3RGB(255, 255, 255)
  2891. Button.BackgroundTransparency = 1.000
  2892. Button.Size = UDIM2(1, 0, 1, 0)
  2893. Button.Font = Enum.Font.SourceSans
  2894. Button.Text = ""
  2895. Button.TextColor3 = COL3RGB(0, 0, 0)
  2896. Button.TextSize = 14.000
  2897. Color.Name = "Color"
  2898. Color.Parent = Button
  2899. Color.BackgroundColor3 = COL3RGB(33, 35, 47)
  2900. Color.BorderColor3 = COL3RGB(27, 27, 35)
  2901. Color.Position = UDIM2(0, 15, 0.5, -5)
  2902. Color.Size = UDIM2(0, 8, 0, 8)
  2903. TextLabel.Parent = Button
  2904. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  2905. TextLabel.BackgroundTransparency = 1.000
  2906. TextLabel.Position = UDIM2(0, 32, 0, -1)
  2907. TextLabel.Size = UDIM2(0.111913361, 208, 1, 0)
  2908. TextLabel.Font = Enum.Font.SourceSansSemibold
  2909. TextLabel.Text = text
  2910. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  2911. TextLabel.TextSize = 14.000
  2912. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  2913. local function update()
  2914. if Element.value.Toggle then
  2915. tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = COL3RGB(155, 26, 66)})
  2916. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  2917. else
  2918. tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = COL3RGB(33, 35, 47)})
  2919. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  2920. end
  2921. values[tabname][sectorname][text] = Element.value
  2922. end
  2923. local ColorH,ColorS,ColorV
  2924. local ColorP = INST("TextButton")
  2925. local Frame = INST("Frame")
  2926. local Colorpick = INST("ImageButton")
  2927. local ColorDrag = INST("Frame")
  2928. local Huepick = INST("ImageButton")
  2929. local Huedrag = INST("Frame")
  2930. ColorP.Name = "ColorP"
  2931. ColorP.Parent = Button
  2932. ColorP.AnchorPoint = Vec2(1, 0)
  2933. ColorP.BackgroundColor3 = COL3RGB(255, 0, 0)
  2934. ColorP.BorderColor3 = COL3RGB(27, 27, 35)
  2935. ColorP.Position = UDIM2(0, 270, 0.5, -4)
  2936. ColorP.Size = UDIM2(0, 18, 0, 8)
  2937. ColorP.AutoButtonColor = false
  2938. ColorP.Font = Enum.Font.SourceSansSemibold
  2939. ColorP.Text = ""
  2940. ColorP.TextColor3 = COL3RGB(200, 200, 200)
  2941. ColorP.TextSize = 14.000
  2942. Frame.Parent = ColorP
  2943. Frame.BackgroundColor3 = COL3RGB(33, 35, 47)
  2944. Frame.BorderColor3 = COL3RGB(27, 27, 35)
  2945. Frame.Position = UDIM2(-0.666666687, -170, 1.375, 0)
  2946. Frame.Size = UDIM2(0, 200, 0, 170)
  2947. Frame.Visible = false
  2948. Frame.ZIndex = 3
  2949. Colorpick.Name = "Colorpick"
  2950. Colorpick.Parent = Frame
  2951. Colorpick.BackgroundColor3 = COL3RGB(255, 255, 255)
  2952. Colorpick.BorderColor3 = COL3RGB(27, 27, 35)
  2953. Colorpick.ClipsDescendants = false
  2954. Colorpick.Position = UDIM2(0, 40, 0, 10)
  2955. Colorpick.Size = UDIM2(0, 150, 0, 150)
  2956. Colorpick.AutoButtonColor = false
  2957. Colorpick.Image = "rbxassetid://4155801252"
  2958. Colorpick.ImageColor3 = COL3RGB(255, 0, 0)
  2959. Colorpick.ZIndex = 3
  2960. ColorDrag.Name = "ColorDrag"
  2961. ColorDrag.Parent = Colorpick
  2962. ColorDrag.AnchorPoint = Vec2(0.5, 0.5)
  2963. ColorDrag.BackgroundColor3 = COL3RGB(255, 255, 255)
  2964. ColorDrag.BorderColor3 = COL3RGB(27, 27, 35)
  2965. ColorDrag.Size = UDIM2(0, 4, 0, 4)
  2966. ColorDrag.ZIndex = 3
  2967. Huepick.Name = "Huepick"
  2968. Huepick.Parent = Frame
  2969. Huepick.BackgroundColor3 = COL3RGB(255, 255, 255)
  2970. Huepick.BorderColor3 = COL3RGB(27, 27, 35)
  2971. Huepick.ClipsDescendants = false
  2972. Huepick.Position = UDIM2(0, 10, 0, 10)
  2973. Huepick.Size = UDIM2(0, 20, 0, 150)
  2974. Huepick.AutoButtonColor = false
  2975. Huepick.Image = "rbxassetid://3641079629"
  2976. Huepick.ImageColor3 = COL3RGB(255, 0, 0)
  2977. Huepick.ImageTransparency = 1
  2978. Huepick.BackgroundTransparency = 0
  2979. Huepick.ZIndex = 3
  2980. local HueFrameGradient = INST("UIGradient")
  2981. HueFrameGradient.Rotation = 90
  2982. HueFrameGradient.Name = "HueFrameGradient"
  2983. HueFrameGradient.Parent = Huepick
  2984. HueFrameGradient.Color = ColorSequence.new {
  2985. ColorSequenceKeypoint.new(0.00, COL3RGB(255, 0, 0)),
  2986. ColorSequenceKeypoint.new(0.17, COL3RGB(255, 0, 255)),
  2987. ColorSequenceKeypoint.new(0.33, COL3RGB(0, 0, 255)),
  2988. ColorSequenceKeypoint.new(0.50, COL3RGB(0, 255, 255)),
  2989. ColorSequenceKeypoint.new(0.67, COL3RGB(0, 255, 0)),
  2990. ColorSequenceKeypoint.new(0.83, COL3RGB(255, 255, 0)),
  2991. ColorSequenceKeypoint.new(1.00, COL3RGB(255, 0, 0))
  2992. }
  2993. Huedrag.Name = "Huedrag"
  2994. Huedrag.Parent = Huepick
  2995. Huedrag.BackgroundColor3 = COL3RGB(255, 255, 255)
  2996. Huedrag.BorderColor3 = COL3RGB(27, 27, 35)
  2997. Huedrag.Size = UDIM2(1, 0, 0, 2)
  2998. Huedrag.ZIndex = 3
  2999. ColorP.MouseButton1Down:Connect(function()
  3000. Frame.Visible = not Frame.Visible
  3001. end)
  3002. local abc = false
  3003. local inCP = false
  3004. ColorP.MouseEnter:Connect(function()
  3005. abc = true
  3006. end)
  3007. ColorP.MouseLeave:Connect(function()
  3008. abc = false
  3009. end)
  3010. Frame.MouseEnter:Connect(function()
  3011. inCP = true
  3012. end)
  3013. Frame.MouseLeave:Connect(function()
  3014. inCP = false
  3015. end)
  3016. ColorH = (CLAMP(Huedrag.AbsolutePosition.Y-Huepick.AbsolutePosition.Y, 0, Huepick.AbsoluteSize.Y)/Huepick.AbsoluteSize.Y)
  3017. ColorS = 1-(CLAMP(ColorDrag.AbsolutePosition.X-Colorpick.AbsolutePosition.X, 0, Colorpick.AbsoluteSize.X)/Colorpick.AbsoluteSize.X)
  3018. ColorV = 1-(CLAMP(ColorDrag.AbsolutePosition.Y-Colorpick.AbsolutePosition.Y, 0, Colorpick.AbsoluteSize.Y)/Colorpick.AbsoluteSize.Y)
  3019. if data.default and data.default.Color ~= nil then
  3020. ColorH, ColorS, ColorV = data.default.Color:ToHSV()
  3021. ColorH = CLAMP(ColorH,0,1)
  3022. ColorS = CLAMP(ColorS,0,1)
  3023. ColorV = CLAMP(ColorV,0,1)
  3024. ColorDrag.Position = UDIM2(1-ColorS,0,1-ColorV,0)
  3025. Colorpick.ImageColor3 = COL3HSV(ColorH, 1, 1)
  3026. ColorP.BackgroundColor3 = COL3HSV(ColorH, ColorS, ColorV)
  3027. Huedrag.Position = UDIM2(0, 0, 1-ColorH, -1)
  3028. values[tabname][sectorname][text] = data.default.Color
  3029. end
  3030. local mouse = LocalPlayer:GetMouse()
  3031. game:GetService("UserInputService").InputBegan:Connect(function(input)
  3032. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 then
  3033. if not dragging and not abc and not inCP then
  3034. Frame.Visible = false
  3035. end
  3036. end
  3037. end)
  3038. local function updateColor()
  3039. local ColorX = (CLAMP(mouse.X - Colorpick.AbsolutePosition.X, 0, Colorpick.AbsoluteSize.X)/Colorpick.AbsoluteSize.X)
  3040. local ColorY = (CLAMP(mouse.Y - Colorpick.AbsolutePosition.Y, 0, Colorpick.AbsoluteSize.Y)/Colorpick.AbsoluteSize.Y)
  3041. ColorDrag.Position = UDIM2(ColorX, 0, ColorY, 0)
  3042. ColorS = 1-ColorX
  3043. ColorV = 1-ColorY
  3044. Colorpick.ImageColor3 = COL3HSV(ColorH, 1, 1)
  3045. ColorP.BackgroundColor3 = COL3HSV(ColorH, ColorS, ColorV)
  3046. values[tabname][sectorname][text] = Element.value
  3047. Element.value.Color = COL3HSV(ColorH, ColorS, ColorV)
  3048. callback(Element.value)
  3049. end
  3050. local function updateHue()
  3051. local y = CLAMP(mouse.Y - Huepick.AbsolutePosition.Y, 0, 148)
  3052. Huedrag.Position = UDIM2(0, 0, 0, y)
  3053. hue = y/148
  3054. ColorH = 1-hue
  3055. Colorpick.ImageColor3 = COL3HSV(ColorH, 1, 1)
  3056. ColorP.BackgroundColor3 = COL3HSV(ColorH, ColorS, ColorV)
  3057. values[tabname][sectorname][text] = Element.value
  3058. Element.value.Color = COL3HSV(ColorH, ColorS, ColorV)
  3059. callback(Element.value)
  3060. end
  3061. Colorpick.MouseButton1Down:Connect(function()
  3062. updateColor()
  3063. moveconnection = mouse.Move:Connect(function()
  3064. updateColor()
  3065. end)
  3066. releaseconnection = game:GetService("UserInputService").InputEnded:Connect(function(Mouse)
  3067. if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
  3068. updateColor()
  3069. moveconnection:Disconnect()
  3070. releaseconnection:Disconnect()
  3071. end
  3072. end)
  3073. end)
  3074. Huepick.MouseButton1Down:Connect(function()
  3075. updateHue()
  3076. moveconnection = mouse.Move:Connect(function()
  3077. updateHue()
  3078. end)
  3079. releaseconnection = game:GetService("UserInputService").InputEnded:Connect(function(Mouse)
  3080. if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
  3081. updateHue()
  3082. moveconnection:Disconnect()
  3083. releaseconnection:Disconnect()
  3084. end
  3085. end)
  3086. end)
  3087. Button.MouseButton1Down:Connect(function()
  3088. Element.value.Toggle = not Element.value.Toggle
  3089. update()
  3090. values[tabname][sectorname][text] = Element.value
  3091. callback(Element.value)
  3092. end)
  3093. if data.default then
  3094. update()
  3095. end
  3096. values[tabname][sectorname][text] = Element.value
  3097. function Element:SetValue(value)
  3098. Element.value = value
  3099. local duplicate = COL3(value.Color.R, value.Color.G, value.Color.B)
  3100. ColorH, ColorS, ColorV = duplicate:ToHSV()
  3101. ColorH = CLAMP(ColorH,0,1)
  3102. ColorS = CLAMP(ColorS,0,1)
  3103. ColorV = CLAMP(ColorV,0,1)
  3104. ColorDrag.Position = UDIM2(1-ColorS,0,1-ColorV,0)
  3105. Colorpick.ImageColor3 = COL3HSV(ColorH, 1, 1)
  3106. ColorP.BackgroundColor3 = COL3HSV(ColorH, ColorS, ColorV)
  3107. update()
  3108. Huedrag.Position = UDIM2(0, 0, 1-ColorH, -1)
  3109. callback(value)
  3110. end
  3111. elseif type == "ToggleTrans" then
  3112. Section.Size = Section.Size + UDIM2(0,0,0,16)
  3113. Element.value = {Toggle = data.default and data.default.Toggle or false, Color = data.default and data.default.Color or COL3RGB(255,255,255), Transparency = data.default and data.default.Transparency or 0}
  3114. local Toggle = INST("Frame")
  3115. local Button = INST("TextButton")
  3116. local Color = INST("Frame")
  3117. local TextLabel = INST("TextLabel")
  3118. Toggle.Name = "Toggle"
  3119. Toggle.Parent = Inner
  3120. Toggle.BackgroundColor3 = COL3RGB(255, 255, 255)
  3121. Toggle.BackgroundTransparency = 1.000
  3122. Toggle.Size = UDIM2(1, 0, 0, 15)
  3123. Button.Name = "Button"
  3124. Button.Parent = Toggle
  3125. Button.BackgroundColor3 = COL3RGB(255, 255, 255)
  3126. Button.BackgroundTransparency = 1.000
  3127. Button.Size = UDIM2(1, 0, 1, 0)
  3128. Button.Font = Enum.Font.SourceSans
  3129. Button.Text = ""
  3130. Button.TextColor3 = COL3RGB(0, 0, 0)
  3131. Button.TextSize = 14.000
  3132. Color.Name = "Color"
  3133. Color.Parent = Button
  3134. Color.BackgroundColor3 = COL3RGB(33, 35, 47)
  3135. Color.BorderColor3 = COL3RGB(27, 27, 35)
  3136. Color.Position = UDIM2(0, 15, 0.5, -5)
  3137. Color.Size = UDIM2(0, 8, 0, 8)
  3138. TextLabel.Parent = Button
  3139. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  3140. TextLabel.BackgroundTransparency = 1.000
  3141. TextLabel.Position = UDIM2(0, 32, 0, -1)
  3142. TextLabel.Size = UDIM2(0.111913361, 208, 1, 0)
  3143. TextLabel.Font = Enum.Font.SourceSansSemibold
  3144. TextLabel.Text = text
  3145. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  3146. TextLabel.TextSize = 14.000
  3147. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  3148. local function update()
  3149. if Element.value.Toggle then
  3150. tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = COL3RGB(155, 155, 155)})
  3151. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  3152. else
  3153. tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = COL3RGB(33, 35, 47)})
  3154. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  3155. end
  3156. values[tabname][sectorname][text] = Element.value
  3157. callback(Element.value)
  3158. end
  3159. local ColorH,ColorS,ColorV
  3160. local ColorP = INST("TextButton")
  3161. local Frame = INST("Frame")
  3162. local Colorpick = INST("ImageButton")
  3163. local ColorDrag = INST("Frame")
  3164. local Huepick = INST("ImageButton")
  3165. local Huedrag = INST("Frame")
  3166. ColorP.Name = "ColorP"
  3167. ColorP.Parent = Button
  3168. ColorP.AnchorPoint = Vec2(1, 0)
  3169. ColorP.BackgroundColor3 = COL3RGB(255, 0, 0)
  3170. ColorP.BorderColor3 = COL3RGB(27, 27, 35)
  3171. ColorP.Position = UDIM2(0, 270, 0.5, -4)
  3172. ColorP.Size = UDIM2(0, 18, 0, 8)
  3173. ColorP.AutoButtonColor = false
  3174. ColorP.Font = Enum.Font.SourceSansSemibold
  3175. ColorP.Text = ""
  3176. ColorP.TextColor3 = COL3RGB(200, 200, 200)
  3177. ColorP.TextSize = 14.000
  3178. Frame.Parent = ColorP
  3179. Frame.BackgroundColor3 = COL3RGB(33, 35, 47)
  3180. Frame.BorderColor3 = COL3RGB(27, 27, 35)
  3181. Frame.Position = UDIM2(-0.666666687, -170, 1.375, 0)
  3182. Frame.Size = UDIM2(0, 200, 0, 190)
  3183. Frame.Visible = false
  3184. Frame.ZIndex = 3
  3185. Colorpick.Name = "Colorpick"
  3186. Colorpick.Parent = Frame
  3187. Colorpick.BackgroundColor3 = COL3RGB(255, 255, 255)
  3188. Colorpick.BorderColor3 = COL3RGB(27, 27, 35)
  3189. Colorpick.ClipsDescendants = false
  3190. Colorpick.Position = UDIM2(0, 40, 0, 10)
  3191. Colorpick.Size = UDIM2(0, 150, 0, 150)
  3192. Colorpick.AutoButtonColor = false
  3193. Colorpick.Image = "rbxassetid://4155801252"
  3194. Colorpick.ImageColor3 = COL3RGB(255, 0, 0)
  3195. Colorpick.ZIndex = 3
  3196. ColorDrag.Name = "ColorDrag"
  3197. ColorDrag.Parent = Colorpick
  3198. ColorDrag.AnchorPoint = Vec2(0.5, 0.5)
  3199. ColorDrag.BackgroundColor3 = COL3RGB(255, 255, 255)
  3200. ColorDrag.BorderColor3 = COL3RGB(27, 27, 35)
  3201. ColorDrag.Size = UDIM2(0, 4, 0, 4)
  3202. ColorDrag.ZIndex = 3
  3203. Huepick.Name = "Huepick"
  3204. Huepick.Parent = Frame
  3205. Huepick.BackgroundColor3 = COL3RGB(255, 255, 255)
  3206. Huepick.BorderColor3 = COL3RGB(27, 27, 35)
  3207. Huepick.ClipsDescendants = true
  3208. Huepick.Position = UDIM2(0, 10, 0, 10)
  3209. Huepick.Size = UDIM2(0, 20, 0, 150)
  3210. Huepick.AutoButtonColor = false
  3211. Huepick.Image = "rbxassetid://3641079629"
  3212. Huepick.ImageColor3 = COL3RGB(255, 0, 0)
  3213. Huepick.ImageTransparency = 1
  3214. Huepick.BackgroundTransparency = 0
  3215. Huepick.ZIndex = 3
  3216. local HueFrameGradient = INST("UIGradient")
  3217. HueFrameGradient.Rotation = 90
  3218. HueFrameGradient.Name = "HueFrameGradient"
  3219. HueFrameGradient.Parent = Huepick
  3220. HueFrameGradient.Color = ColorSequence.new {
  3221. ColorSequenceKeypoint.new(0.00, COL3RGB(255, 0, 0)),
  3222. ColorSequenceKeypoint.new(0.17, COL3RGB(255, 0, 255)),
  3223. ColorSequenceKeypoint.new(0.33, COL3RGB(0, 0, 255)),
  3224. ColorSequenceKeypoint.new(0.50, COL3RGB(0, 255, 255)),
  3225. ColorSequenceKeypoint.new(0.67, COL3RGB(0, 255, 0)),
  3226. ColorSequenceKeypoint.new(0.83, COL3RGB(255, 255, 0)),
  3227. ColorSequenceKeypoint.new(1.00, COL3RGB(255, 0, 0))
  3228. }
  3229. Huedrag.Name = "Huedrag"
  3230. Huedrag.Parent = Huepick
  3231. Huedrag.BackgroundColor3 = COL3RGB(255, 255, 255)
  3232. Huedrag.BorderColor3 = COL3RGB(27, 27, 35)
  3233. Huedrag.Size = UDIM2(1, 0, 0, 2)
  3234. Huedrag.ZIndex = 3
  3235. local Transpick = INST("ImageButton")
  3236. local Transcolor = INST("ImageLabel")
  3237. local Transdrag = INST("Frame")
  3238. Transpick.Name = "Transpick"
  3239. Transpick.Parent = Frame
  3240. Transpick.BackgroundColor3 = COL3RGB(255, 255, 255)
  3241. Transpick.BorderColor3 = COL3RGB(27, 27, 35)
  3242. Transpick.Position = UDIM2(0, 10, 0, 167)
  3243. Transpick.Size = UDIM2(0, 180, 0, 15)
  3244. Transpick.AutoButtonColor = false
  3245. Transpick.Image = "rbxassetid://3887014957"
  3246. Transpick.ScaleType = Enum.ScaleType.Tile
  3247. Transpick.TileSize = UDIM2(0, 10, 0, 10)
  3248. Transpick.ZIndex = 3
  3249. Transcolor.Name = "Transcolor"
  3250. Transcolor.Parent = Transpick
  3251. Transcolor.BackgroundColor3 = COL3RGB(255, 255, 255)
  3252. Transcolor.BackgroundTransparency = 1.000
  3253. Transcolor.Size = UDIM2(1, 0, 1, 0)
  3254. Transcolor.Image = "rbxassetid://3887017050"
  3255. Transcolor.ImageColor3 = COL3RGB(255, 0, 4)
  3256. Transcolor.ZIndex = 3
  3257. Transdrag.Name = "Transdrag"
  3258. Transdrag.Parent = Transcolor
  3259. Transdrag.BackgroundColor3 = COL3RGB(255, 255, 255)
  3260. Transdrag.BorderColor3 = COL3RGB(27, 27, 35)
  3261. Transdrag.Position = UDIM2(0, -1, 0, 0)
  3262. Transdrag.Size = UDIM2(0, 2, 1, 0)
  3263. Transdrag.ZIndex = 3
  3264. ColorP.MouseButton1Down:Connect(function()
  3265. Frame.Visible = not Frame.Visible
  3266. end)
  3267. local abc = false
  3268. local inCP = false
  3269. ColorP.MouseEnter:Connect(function()
  3270. abc = true
  3271. end)
  3272. ColorP.MouseLeave:Connect(function()
  3273. abc = false
  3274. end)
  3275. Frame.MouseEnter:Connect(function()
  3276. inCP = true
  3277. end)
  3278. Frame.MouseLeave:Connect(function()
  3279. inCP = false
  3280. end)
  3281. ColorH = (CLAMP(Huedrag.AbsolutePosition.Y-Huepick.AbsolutePosition.Y, 0, Huepick.AbsoluteSize.Y)/Huepick.AbsoluteSize.Y)
  3282. ColorS = 1-(CLAMP(ColorDrag.AbsolutePosition.X-Colorpick.AbsolutePosition.X, 0, Colorpick.AbsoluteSize.X)/Colorpick.AbsoluteSize.X)
  3283. ColorV = 1-(CLAMP(ColorDrag.AbsolutePosition.Y-Colorpick.AbsolutePosition.Y, 0, Colorpick.AbsoluteSize.Y)/Colorpick.AbsoluteSize.Y)
  3284. if data.default and data.default.Color ~= nil then
  3285. ColorH, ColorS, ColorV = data.default.Color:ToHSV()
  3286. ColorH = CLAMP(ColorH,0,1)
  3287. ColorS = CLAMP(ColorS,0,1)
  3288. ColorV = CLAMP(ColorV,0,1)
  3289. ColorDrag.Position = UDIM2(1-ColorS,0,1-ColorV,0)
  3290. Colorpick.ImageColor3 = COL3HSV(ColorH, 1, 1)
  3291. Transcolor.ImageColor3 = COL3HSV(ColorH, 1, 1)
  3292. ColorP.BackgroundColor3 = COL3HSV(ColorH, ColorS, ColorV)
  3293. Huedrag.Position = UDIM2(0, 0, 1-ColorH, -1)
  3294. end
  3295. if data.default and data.default.Transparency ~= nil then
  3296. Transdrag.Position = UDIM2(data.default.Transparency, -1, 0, 0)
  3297. end
  3298. local mouse = LocalPlayer:GetMouse()
  3299. game:GetService("UserInputService").InputBegan:Connect(function(input)
  3300. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 then
  3301. if not dragging and not abc and not inCP then
  3302. Frame.Visible = false
  3303. end
  3304. end
  3305. end)
  3306. local function updateColor()
  3307. local ColorX = (CLAMP(mouse.X - Colorpick.AbsolutePosition.X, 0, Colorpick.AbsoluteSize.X)/Colorpick.AbsoluteSize.X)
  3308. local ColorY = (CLAMP(mouse.Y - Colorpick.AbsolutePosition.Y, 0, Colorpick.AbsoluteSize.Y)/Colorpick.AbsoluteSize.Y)
  3309. ColorDrag.Position = UDIM2(ColorX, 0, ColorY, 0)
  3310. ColorS = 1-ColorX
  3311. ColorV = 1-ColorY
  3312. Colorpick.ImageColor3 = COL3HSV(ColorH, 1, 1)
  3313. ColorP.BackgroundColor3 = COL3HSV(ColorH, ColorS, ColorV)
  3314. Transcolor.ImageColor3 = COL3HSV(ColorH, 1, 1)
  3315. values[tabname][sectorname][text] = Element.value
  3316. Element.value.Color = COL3HSV(ColorH, ColorS, ColorV)
  3317. callback(Element.value)
  3318. end
  3319. local function updateHue()
  3320. local y = CLAMP(mouse.Y - Huepick.AbsolutePosition.Y, 0, 148)
  3321. Huedrag.Position = UDIM2(0, 0, 0, y)
  3322. hue = y/148
  3323. ColorH = 1-hue
  3324. Colorpick.ImageColor3 = COL3HSV(ColorH, 1, 1)
  3325. Transcolor.ImageColor3 = COL3HSV(ColorH, 1, 1)
  3326. ColorP.BackgroundColor3 = COL3HSV(ColorH, ColorS, ColorV)
  3327. values[tabname][sectorname][text] = Element.value
  3328. Element.value.Color = COL3HSV(ColorH, ColorS, ColorV)
  3329. callback(Element.value)
  3330. end
  3331. local function updateTrans()
  3332. local x = CLAMP(mouse.X - Transpick.AbsolutePosition.X, 0, 178)
  3333. Transdrag.Position = UDIM2(0, x, 0, 0)
  3334. Element.value.Transparency = (x/178)
  3335. values[tabname][sectorname][text] = Element.value
  3336. callback(Element.value)
  3337. end
  3338. Transpick.MouseButton1Down:Connect(function()
  3339. updateTrans()
  3340. moveconnection = mouse.Move:Connect(function()
  3341. updateTrans()
  3342. end)
  3343. releaseconnection = game:GetService("UserInputService").InputEnded:Connect(function(Mouse)
  3344. if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
  3345. updateTrans()
  3346. moveconnection:Disconnect()
  3347. releaseconnection:Disconnect()
  3348. end
  3349. end)
  3350. end)
  3351. Colorpick.MouseButton1Down:Connect(function()
  3352. updateColor()
  3353. moveconnection = mouse.Move:Connect(function()
  3354. updateColor()
  3355. end)
  3356. releaseconnection = game:GetService("UserInputService").InputEnded:Connect(function(Mouse)
  3357. if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
  3358. updateColor()
  3359. moveconnection:Disconnect()
  3360. releaseconnection:Disconnect()
  3361. end
  3362. end)
  3363. end)
  3364. Huepick.MouseButton1Down:Connect(function()
  3365. updateHue()
  3366. moveconnection = mouse.Move:Connect(function()
  3367. updateHue()
  3368. end)
  3369. releaseconnection = game:GetService("UserInputService").InputEnded:Connect(function(Mouse)
  3370. if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
  3371. updateHue()
  3372. moveconnection:Disconnect()
  3373. releaseconnection:Disconnect()
  3374. end
  3375. end)
  3376. end)
  3377. Button.MouseButton1Down:Connect(function()
  3378. Element.value.Toggle = not Element.value.Toggle
  3379. update()
  3380. values[tabname][sectorname][text] = Element.value
  3381. callback(Element.value)
  3382. end)
  3383. if data.default then
  3384. if Element.value.Toggle then
  3385. tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = COL3RGB(155, 155, 155)})
  3386. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  3387. else
  3388. tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = COL3RGB(33, 35, 47)})
  3389. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  3390. end
  3391. values[tabname][sectorname][text] = Element.value
  3392. end
  3393. values[tabname][sectorname][text] = Element.value
  3394. function Element:SetValue(value)
  3395. Element.value = value
  3396. local duplicate = COL3(value.Color.R, value.Color.G, value.Color.B)
  3397. ColorH, ColorS, ColorV = duplicate:ToHSV()
  3398. ColorH = CLAMP(ColorH,0,1)
  3399. ColorS = CLAMP(ColorS,0,1)
  3400. ColorV = CLAMP(ColorV,0,1)
  3401. ColorDrag.Position = UDIM2(1-ColorS,0,1-ColorV,0)
  3402. Colorpick.ImageColor3 = COL3HSV(ColorH, 1, 1)
  3403. ColorP.BackgroundColor3 = COL3HSV(ColorH, ColorS, ColorV)
  3404. update()
  3405. Huedrag.Position = UDIM2(0, 0, 1-ColorH, -1)
  3406. end
  3407. elseif type == "TextBox" then
  3408. Section.Size = Section.Size + UDIM2(0,0,0,30)
  3409. Element.value = {Text = data.default and data.default.text or ""}
  3410. local Box = INST("Frame")
  3411. local TextBox = INST("TextBox")
  3412. Box.Name = "Box"
  3413. Box.Parent = Inner
  3414. Box.BackgroundColor3 = COL3RGB(255, 255, 255)
  3415. Box.BackgroundTransparency = 1.000
  3416. Box.Position = UDIM2(0, 0, 0.542059898, 0)
  3417. Box.Size = UDIM2(1, 0, 0, 30)
  3418. TextBox.Parent = Box
  3419. TextBox.BackgroundColor3 = COL3RGB(33, 35, 47)
  3420. TextBox.BorderColor3 = COL3RGB(27, 27, 35)
  3421. TextBox.Position = UDIM2(0.108303241, 0, 0.224465579, 0)
  3422. TextBox.Size = UDIM2(0, 175, 0, 20)
  3423. TextBox.Font = Enum.Font.SourceSans
  3424. TextBox.PlaceholderText = data.placeholder
  3425. TextBox.Text = Element.value.Text
  3426. TextBox.TextColor3 = COL3RGB(255, 255, 255)
  3427. TextBox.TextSize = 14.000
  3428. values[tabname][sectorname][text] = Element.value
  3429. TextBox:GetPropertyChangedSignal("Text"):Connect(function()
  3430. if LEN(TextBox.Text) > 10 then
  3431. TextBox.Text = SUB(TextBox.Text, 1, 10)
  3432. end
  3433. Element.value.Text = TextBox.Text
  3434. values[tabname][sectorname][text] = Element.value
  3435. callback(Element.value)
  3436. end)
  3437. function Element:SetValue(value)
  3438. Element.value = value
  3439. values[tabname][sectorname][text] = Element.value
  3440. TextBox.Text = Element.value.Text
  3441. end
  3442. elseif type == "Dropdown" then
  3443. Section.Size = Section.Size + UDIM2(0,0,0,39)
  3444. Element.value = {Dropdown = data.options[1]}
  3445. local Dropdown = INST("Frame")
  3446. local Button = INST("TextButton")
  3447. local TextLabel = INST("TextLabel")
  3448. local Drop = INST("ScrollingFrame")
  3449. local Button_2 = INST("TextButton")
  3450. local TextLabel_2 = INST("TextLabel")
  3451. local UIListLayout = INST("UIListLayout")
  3452. local ImageLabel = INST("ImageLabel")
  3453. local TextLabel_3 = INST("TextLabel")
  3454. Dropdown.Name = "Dropdown"
  3455. Dropdown.Parent = Inner
  3456. Dropdown.BackgroundColor3 = COL3RGB(255, 255, 255)
  3457. Dropdown.BackgroundTransparency = 1.000
  3458. Dropdown.Position = UDIM2(0, 0, 0.255102038, 0)
  3459. Dropdown.Size = UDIM2(1, 0, 0, 39)
  3460. Button.Name = "Button"
  3461. Button.Parent = Dropdown
  3462. Button.BackgroundColor3 = COL3RGB(33, 35, 47)
  3463. Button.BorderColor3 = COL3RGB(27, 27, 35)
  3464. Button.Position = UDIM2(0, 30, 0, 16)
  3465. Button.Size = UDIM2(0, 175, 0, 17)
  3466. Button.AutoButtonColor = false
  3467. Button.Font = Enum.Font.SourceSans
  3468. Button.Text = ""
  3469. Button.TextColor3 = COL3RGB(0, 0, 0)
  3470. Button.TextSize = 14.000
  3471. TextLabel.Parent = Button
  3472. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  3473. TextLabel.BackgroundTransparency = 1.000
  3474. TextLabel.BorderColor3 = COL3RGB(27, 42, 53)
  3475. TextLabel.Position = UDIM2(0, 5, 0, 0)
  3476. TextLabel.Size = UDIM2(-0.21714285, 208, 1, 0)
  3477. TextLabel.Font = Enum.Font.SourceSansSemibold
  3478. TextLabel.Text = Element.value.Dropdown
  3479. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  3480. TextLabel.TextSize = 14.000
  3481. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  3482. local abcd = TextLabel
  3483. Drop.Name = "Drop"
  3484. Drop.Parent = Button
  3485. Drop.Active = true
  3486. Drop.BackgroundColor3 = COL3RGB(33, 35, 47)
  3487. Drop.BorderColor3 = COL3RGB(27, 27, 35)
  3488. Drop.Position = UDIM2(0, 0, 1, 1)
  3489. Drop.Size = UDIM2(1, 0, 0, 20)
  3490. Drop.Visible = false
  3491. Drop.BottomImage = "http://www.roblox.com/asset/?id=6724808282"
  3492. Drop.CanvasSize = UDIM2(0, 0, 0, 0)
  3493. Drop.ScrollBarThickness = 4
  3494. Drop.TopImage = "http://www.roblox.com/asset/?id=6724808282"
  3495. Drop.MidImage = "http://www.roblox.com/asset/?id=6724808282"
  3496. Drop.AutomaticCanvasSize = "Y"
  3497. Drop.ZIndex = 5
  3498. Drop.ScrollBarImageColor3 = COL3RGB(255, 37, 110)
  3499. UIListLayout.Parent = Drop
  3500. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  3501. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  3502. local num = #data.options
  3503. if num > 5 then
  3504. Drop.Size = UDIM2(1, 0, 0, 85)
  3505. else
  3506. Drop.Size = UDIM2(1, 0, 0, 17*num)
  3507. end
  3508. local first = true
  3509. for i,v in ipairs(data.options) do
  3510. do
  3511. local Button = INST("TextButton")
  3512. local TextLabel = INST("TextLabel")
  3513. Button.Name = v
  3514. Button.Parent = Drop
  3515. Button.BackgroundColor3 = COL3RGB(33, 35, 47)
  3516. Button.BorderColor3 = COL3RGB(27, 27, 35)
  3517. Button.Position = UDIM2(0, 30, 0, 16)
  3518. Button.Size = UDIM2(0, 175, 0, 17)
  3519. Button.AutoButtonColor = false
  3520. Button.Font = Enum.Font.SourceSans
  3521. Button.Text = ""
  3522. Button.TextColor3 = COL3RGB(0, 0, 0)
  3523. Button.TextSize = 14.000
  3524. Button.BorderSizePixel = 0
  3525. Button.ZIndex = 6
  3526. TextLabel.Parent = Button
  3527. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  3528. TextLabel.BackgroundTransparency = 1.000
  3529. TextLabel.BorderColor3 = COL3RGB(27, 42, 53)
  3530. TextLabel.Position = UDIM2(0, 5, 0, -1)
  3531. TextLabel.Size = UDIM2(-0.21714285, 208, 1, 0)
  3532. TextLabel.Font = Enum.Font.SourceSansSemibold
  3533. TextLabel.Text = v
  3534. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  3535. TextLabel.TextSize = 14.000
  3536. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  3537. TextLabel.ZIndex = 6
  3538. Button.MouseButton1Down:Connect(function()
  3539. Drop.Visible = false
  3540. Element.value.Dropdown = v
  3541. abcd.Text = v
  3542. values[tabname][sectorname][text] = Element.value
  3543. callback(Element.value)
  3544. Drop.CanvasPosition = Vec2(0,0)
  3545. end)
  3546. Button.MouseEnter:Connect(function()
  3547. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  3548. end)
  3549. Button.MouseLeave:Connect(function()
  3550. library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  3551. end)
  3552. first = false
  3553. end
  3554. end
  3555. function Element:SetValue(val)
  3556. Element.value = val
  3557. abcd.Text = val.Dropdown
  3558. values[tabname][sectorname][text] = Element.value
  3559. callback(val)
  3560. end
  3561. ImageLabel.Parent = Button
  3562. ImageLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  3563. ImageLabel.BackgroundTransparency = 1.000
  3564. ImageLabel.Position = UDIM2(0, 165, 0, 6)
  3565. ImageLabel.Size = UDIM2(0, 6, 0, 4)
  3566. ImageLabel.Image = "http://www.roblox.com/asset/?id=6724771531"
  3567. TextLabel_3.Parent = Dropdown
  3568. TextLabel_3.BackgroundColor3 = COL3RGB(255, 255, 255)
  3569. TextLabel_3.BackgroundTransparency = 1.000
  3570. TextLabel_3.Position = UDIM2(0, 32, 0, -1)
  3571. TextLabel_3.Size = UDIM2(0.111913361, 208, 0.382215232, 0)
  3572. TextLabel_3.Font = Enum.Font.SourceSansSemibold
  3573. TextLabel_3.Text = text
  3574. TextLabel_3.TextColor3 = COL3RGB(200, 200, 200)
  3575. TextLabel_3.TextSize = 14.000
  3576. TextLabel_3.TextXAlignment = Enum.TextXAlignment.Left
  3577. Button.MouseButton1Down:Connect(function()
  3578. Drop.Visible = not Drop.Visible
  3579. if not Drop.Visible then
  3580. Drop.CanvasPosition = Vec2(0,0)
  3581. end
  3582. end)
  3583. local indrop = false
  3584. local ind = false
  3585. Drop.MouseEnter:Connect(function()
  3586. indrop = true
  3587. end)
  3588. Drop.MouseLeave:Connect(function()
  3589. indrop = false
  3590. end)
  3591. Button.MouseEnter:Connect(function()
  3592. ind = true
  3593. end)
  3594. Button.MouseLeave:Connect(function()
  3595. ind = false
  3596. end)
  3597. game:GetService("UserInputService").InputBegan:Connect(function(input)
  3598. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 then
  3599. if Drop.Visible == true and not indrop and not ind then
  3600. Drop.Visible = false
  3601. Drop.CanvasPosition = Vec2(0,0)
  3602. end
  3603. end
  3604. end)
  3605. values[tabname][sectorname][text] = Element.value
  3606. elseif type == "Slider" then
  3607. Section.Size = Section.Size + UDIM2(0,0,0,25)
  3608. local Slider = INST("Frame")
  3609. local TextLabel = INST("TextLabel")
  3610. local Button = INST("TextButton")
  3611. local Frame = INST("Frame")
  3612. local UIGradient = INST("UIGradient")
  3613. local Value = INST("TextLabel")
  3614. Slider.Name = "Slider"
  3615. Slider.Parent = Inner
  3616. Slider.BackgroundColor3 = COL3RGB(255, 255, 255)
  3617. Slider.BackgroundTransparency = 1.000
  3618. Slider.Position = UDIM2(0, 0, 0.653061211, 0)
  3619. Slider.Size = UDIM2(1, 0, 0, 25)
  3620. TextLabel.Parent = Slider
  3621. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  3622. TextLabel.BackgroundTransparency = 1.000
  3623. TextLabel.Position = UDIM2(0, 32, 0, -2)
  3624. TextLabel.Size = UDIM2(0, 100, 0, 15)
  3625. TextLabel.Font = Enum.Font.SourceSansSemibold
  3626. TextLabel.Text = text
  3627. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  3628. TextLabel.TextSize = 14.000
  3629. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  3630. Button.Name = "Button"
  3631. Button.Parent = Slider
  3632. Button.BackgroundColor3 = COL3RGB(33, 35, 47)
  3633. Button.BorderColor3 = COL3RGB(27, 27, 35)
  3634. Button.Position = UDIM2(0, 30, 0, 15)
  3635. Button.Size = UDIM2(0, 175, 0, 5)
  3636. Button.AutoButtonColor = false
  3637. Button.Font = Enum.Font.SourceSans
  3638. Button.Text = ""
  3639. Button.TextColor3 = COL3RGB(0, 0, 0)
  3640. Button.TextSize = 14.000
  3641. Frame.Parent = Button
  3642. Frame.BackgroundColor3 = COL3RGB(255, 255, 255)
  3643. Frame.BorderSizePixel = 0
  3644. Frame.Size = UDIM2(0.5, 0, 1, 0)
  3645. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0, COL3RGB(153, 22, 65)), ColorSequenceKeypoint.new(1, COL3RGB(109, 16, 46))}
  3646. UIGradient.Rotation = 90
  3647. UIGradient.Parent = Frame
  3648. Value.Name = "Value"
  3649. Value.Parent = Slider
  3650. Value.BackgroundColor3 = COL3RGB(255, 255, 255)
  3651. Value.BackgroundTransparency = 1.000
  3652. Value.Position = UDIM2(0, 150, 0, -1)
  3653. Value.Size = UDIM2(0, 55, 0, 15)
  3654. Value.Font = Enum.Font.SourceSansSemibold
  3655. Value.Text = "50"
  3656. Value.TextColor3 = COL3RGB(200, 200, 200)
  3657. Value.TextSize = 14.000
  3658. Value.TextXAlignment = Enum.TextXAlignment.Right
  3659. local min, max, default = data.min or 0, data.max or 100, data.default or 0
  3660. Element.value = {Slider = default}
  3661. function Element:SetValue(value)
  3662. Element.value = value
  3663. local a
  3664. if min > 0 then
  3665. a = ((Element.value.Slider - min)) / (max-min)
  3666. else
  3667. a = (Element.value.Slider-min)/(max-min)
  3668. end
  3669. Value.Text = Element.value.Slider
  3670. Frame.Size = UDIM2(a,0,1,0)
  3671. values[tabname][sectorname][text] = Element.value
  3672. callback(value)
  3673. end
  3674. local a
  3675. if min > 0 then
  3676. a = ((Element.value.Slider - min)) / (max-min)
  3677. else
  3678. a = (Element.value.Slider-min)/(max-min)
  3679. end
  3680. Value.Text = Element.value.Slider
  3681. Frame.Size = UDIM2(a,0,1,0)
  3682. values[tabname][sectorname][text] = Element.value
  3683. local uis = game:GetService("UserInputService")
  3684. local mouse = game.Players.LocalPlayer:GetMouse()
  3685. local val
  3686. Button.MouseButton1Down:Connect(function()
  3687. Frame.Size = UDIM2(0, CLAMP(mouse.X - Frame.AbsolutePosition.X, 0, 175), 0, 5)
  3688. val = FLOOR((((tonumber(max) - tonumber(min)) / 175) * Frame.AbsoluteSize.X) + tonumber(min)) or 0
  3689. Value.Text = val
  3690. Element.value.Slider = val
  3691. values[tabname][sectorname][text] = Element.value
  3692. callback(Element.value)
  3693. moveconnection = mouse.Move:Connect(function()
  3694. Frame.Size = UDIM2(0, CLAMP(mouse.X - Frame.AbsolutePosition.X, 0, 175), 0, 5)
  3695. val = FLOOR((((tonumber(max) - tonumber(min)) / 175) * Frame.AbsoluteSize.X) + tonumber(min))
  3696. Value.Text = val
  3697. Element.value.Slider = val
  3698. values[tabname][sectorname][text] = Element.value
  3699. callback(Element.value)
  3700. end)
  3701. releaseconnection = uis.InputEnded:Connect(function(Mouse)
  3702. if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
  3703. Frame.Size = UDIM2(0, CLAMP(mouse.X - Frame.AbsolutePosition.X, 0, 175), 0, 5)
  3704. val = FLOOR((((tonumber(max) - tonumber(min)) / 175) * Frame.AbsoluteSize.X) + tonumber(min))
  3705. values[tabname][sectorname][text] = Element.value
  3706. callback(Element.value)
  3707. moveconnection:Disconnect()
  3708. releaseconnection:Disconnect()
  3709. end
  3710. end)
  3711. end)
  3712. elseif type == "Button" then
  3713. Section.Size = Section.Size + UDIM2(0,0,0,24)
  3714. local Button = INST("Frame")
  3715. local Button_2 = INST("TextButton")
  3716. local TextLabel = INST("TextLabel")
  3717. Button.Name = "Button"
  3718. Button.Parent = Inner
  3719. Button.BackgroundColor3 = COL3RGB(255, 255, 255)
  3720. Button.BackgroundTransparency = 1.000
  3721. Button.Position = UDIM2(0, 0, 0.236059487, 0)
  3722. Button.Size = UDIM2(1, 0, 0, 24)
  3723. Button_2.Name = "Button"
  3724. Button_2.Parent = Button
  3725. Button_2.BackgroundColor3 = COL3RGB(33, 35, 47)
  3726. Button_2.BorderColor3 = COL3RGB(27, 27, 35)
  3727. Button_2.Position = UDIM2(0, 30, 0.5, -9)
  3728. Button_2.Size = UDIM2(0, 175, 0, 18)
  3729. Button_2.AutoButtonColor = false
  3730. Button_2.Font = Enum.Font.SourceSans
  3731. Button_2.Text = ""
  3732. Button_2.TextColor3 = COL3RGB(0, 0, 0)
  3733. Button_2.TextSize = 14.000
  3734. TextLabel.Parent = Button_2
  3735. TextLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  3736. TextLabel.BackgroundTransparency = 1.000
  3737. TextLabel.BorderColor3 = COL3RGB(27, 42, 53)
  3738. TextLabel.Size = UDIM2(1, 0, 1, 0)
  3739. TextLabel.Font = Enum.Font.SourceSansSemibold
  3740. TextLabel.Text = text
  3741. TextLabel.TextColor3 = COL3RGB(200, 200, 200)
  3742. TextLabel.TextSize = 14.000
  3743. function Element:SetValue()
  3744. end
  3745. Button_2.MouseButton1Down:Connect(function()
  3746. TextLabel.TextColor3 = COL3RGB(175, 42, 86)
  3747. library:Tween(TextLabel, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  3748. callback()
  3749. end)
  3750. Button_2.MouseEnter:Connect(function()
  3751. library:Tween(TextLabel, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(255, 255, 255)})
  3752. end)
  3753. Button_2.MouseLeave:Connect(function()
  3754. library:Tween(TextLabel, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = COL3RGB(200, 200, 200)})
  3755. end)
  3756. end
  3757. ConfigLoad:Connect(function(cfg)
  3758. pcall(function()
  3759. local fix = library:ConfigFix(cfg)
  3760. if fix[tabname][sectorname][text] ~= nil then
  3761. Element:SetValue(fix[tabname][sectorname][text])
  3762. end
  3763. end)
  3764. end)
  3765. return Element
  3766. end
  3767. return Sector
  3768. end
  3769. return Tab
  3770. end
  3771. Ova.Parent = game.CoreGui
  3772. return menu
  3773. end
  3774. local UserInputService = game:GetService("UserInputService")
  3775. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  3776. local RunService = game:GetService("RunService")
  3777. local Lighting = game:GetService("Lighting")
  3778. local Players = game:GetService("Players")
  3779. local LocalPlayer = Players.LocalPlayer
  3780. local PlayerGui = LocalPlayer.PlayerGui
  3781. local Mouse = LocalPlayer:GetMouse()
  3782. local Camera = workspace.CurrentCamera
  3783. local ClientScript = LocalPlayer.PlayerGui.Client
  3784. local Client = getsenv(ClientScript)
  3785. repeat RunService.RenderStepped:Wait() until game:IsLoaded()
  3786. local Crosshairs = PlayerGui.GUI.Crosshairs
  3787. local Crosshair = PlayerGui.GUI.Crosshairs.Crosshair
  3788. local oldcreatebullethole = Client.createbullethole
  3789. local LGlove, RGlove, LSleeve, RSleeve, RArm, LArm
  3790. local WeaponObj = {}
  3791. local SelfObj = {}
  3792. local Viewmodels = ReplicatedStorage.Viewmodels
  3793. local Weapons = ReplicatedStorage.Weapons
  3794. local ViewmodelOffset = CF(0,0,0)
  3795. local Smokes = {}
  3796. local Mollies = {}
  3797. local RayIgnore = workspace.Ray_Ignore
  3798. local RageTarget
  3799. local GetIcon = require(game.ReplicatedStorage.GetIcon)
  3800. local BodyVelocity = INST("BodyVelocity")
  3801. BodyVelocity.MaxForce = Vec3(HUGE, 0, HUGE)
  3802. local Collision = {Camera, workspace.Ray_Ignore, workspace.Debris}
  3803. local FakelagFolder = INST("Folder", workspace)
  3804. FakelagFolder.Name = "Fakelag"
  3805. local FakeAnim = INST("Animation", workspace)
  3806. FakeAnim.AnimationId = "rbxassetid://0"
  3807. local Gloves = ReplicatedStorage.Gloves
  3808. if Gloves:FindFirstChild("ImageLabel") then
  3809. Gloves.ImageLabel:Destroy()
  3810. end
  3811. local GloveModels = Gloves.Models
  3812. local Multipliers = {
  3813. ["Head"] = 4,
  3814. ["FakeHead"] = 4,
  3815. ["HeadHB"] = 4,
  3816. ["UpperTorso"] = 1,
  3817. ["LowerTorso"] = 1.25,
  3818. ["LeftUpperArm"] = 1,
  3819. ["LeftLowerArm"] = 1,
  3820. ["LeftHand"] = 1,
  3821. ["RightUpperArm"] = 1,
  3822. ["RightLowerArm"] = 1,
  3823. ["RightHand"] = 1,
  3824. ["LeftUpperLeg"] = 0.75,
  3825. ["LeftLowerLeg"] = 0.75,
  3826. ["LeftFoot"] = 0.75,
  3827. ["RightUpperLeg"] = 0.75,
  3828. ["RightLowerLeg"] = 0.75,
  3829. ["RightFoot"] = 0.75,
  3830. }
  3831. local ChamItems = {}
  3832. local Skyboxes = {
  3833. ["nebula"] = {
  3834. SkyboxLf = "rbxassetid://159454286",
  3835. SkyboxBk = "rbxassetid://159454299",
  3836. SkyboxDn = "rbxassetid://159454296",
  3837. SkyboxFt = "rbxassetid://159454293",
  3838. SkyboxLf = "rbxassetid://159454286",
  3839. SkyboxRt = "rbxassetid://159454300",
  3840. SkyboxUp = "rbxassetid://159454288",
  3841. },
  3842. ["vaporwave"] = {
  3843. SkyboxLf = "rbxassetid://1417494402",
  3844. SkyboxBk = "rbxassetid://1417494030",
  3845. SkyboxDn = "rbxassetid://1417494146",
  3846. SkyboxFt = "rbxassetid://1417494253",
  3847. SkyboxLf = "rbxassetid://1417494402",
  3848. SkyboxRt = "rbxassetid://1417494499",
  3849. SkyboxUp = "rbxassetid://1417494643",
  3850. },
  3851. ["clouds"] = {
  3852. SkyboxLf = "rbxassetid://570557620",
  3853. SkyboxBk = "rbxassetid://570557514",
  3854. SkyboxDn = "rbxassetid://570557775",
  3855. SkyboxFt = "rbxassetid://570557559",
  3856. SkyboxLf = "rbxassetid://570557620",
  3857. SkyboxRt = "rbxassetid://570557672",
  3858. SkyboxUp = "rbxassetid://570557727",
  3859. },
  3860. ["twilight"] = {
  3861. SkyboxLf = "rbxassetid://264909758",
  3862. SkyboxBk = "rbxassetid://264908339",
  3863. SkyboxDn = "rbxassetid://264907909",
  3864. SkyboxFt = "rbxassetid://264909420",
  3865. SkyboxLf = "rbxassetid://264909758",
  3866. SkyboxRt = "rbxassetid://264908886",
  3867. SkyboxUp = "rbxassetid://264907379",
  3868. },
  3869. }
  3870. local NewScope
  3871. do
  3872. local ScreenGui = INST("ScreenGui")
  3873. local Frame = INST("Frame")
  3874. local Frame_2 = INST("Frame")
  3875. ScreenGui.Enabled = false
  3876. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Global
  3877. ScreenGui.IgnoreGuiInset = true
  3878. Frame.Parent = ScreenGui
  3879. Frame.BackgroundColor3 = COL3RGB(0, 0, 0)
  3880. Frame.BorderSizePixel = 0
  3881. Frame.Position = UDIM2(0, 0, 0.5, 0)
  3882. Frame.Size = UDIM2(1, 0, 0, 1)
  3883. Frame_2.Parent = ScreenGui
  3884. Frame_2.BackgroundColor3 = COL3RGB(0, 0, 0)
  3885. Frame_2.BorderSizePixel = 0
  3886. Frame_2.Position = UDIM2(0.5, 0, 0, 0)
  3887. Frame_2.Size = UDIM2(0, 1, 1, 0)
  3888. ScreenGui.Parent = game.CoreGui
  3889. NewScope = ScreenGui
  3890. end
  3891. local oldSkybox
  3892. local function VectorRGB(RGB)
  3893. return Vec3(RGB.R, RGB.G, RGB.B)
  3894. end
  3895. local function new(name, prop)
  3896. local obj = INST(name)
  3897. for i,v in pairs(prop) do
  3898. if i ~= "Parent" then
  3899. obj[i] = v
  3900. end
  3901. end
  3902. if prop["Parent"] ~= nil then
  3903. obj.Parent = prop["Parent"]
  3904. end
  3905. end
  3906. local function UpdateAccessory(Accessory)
  3907. Accessory.Material = values.visuals.effects["accessory material"].Dropdown == "Smooth" and "SmoothPlastic" or "ForceField"
  3908. Accessory.Mesh.VertexColor = VectorRGB(values.visuals.effects["accessory chams"].Color)
  3909. Accessory.Color = values.visuals.effects["accessory chams"].Color
  3910. Accessory.Transparency = values.visuals.effects["accessory chams"].Transparency
  3911. if values.visuals.effects["accessory material"].Dropdown ~= "ForceField" then
  3912. Accessory.Mesh.TextureId = ""
  3913. else
  3914. Accessory.Mesh.TextureId = Accessory.StringValue.Value
  3915. end
  3916. end
  3917. local function ReverseAccessory(Accessory)
  3918. Accessory.Material = "SmoothPlastic"
  3919. Accessory.Mesh.VertexColor = Vec3(1,1,1)
  3920. Accessory.Mesh.TextureId = Accessory.StringValue.Value
  3921. Accessory.Transparency = 0
  3922. end
  3923. local function UpdateWeapon(obj)
  3924. local selected = values.visuals.effects["weapon material"].Dropdown
  3925. if obj:IsA("MeshPart") then obj.TextureID = "" end
  3926. if obj:IsA("Part") and obj:FindFirstChild("Mesh") and not obj:IsA("BlockMesh") then
  3927. obj.Mesh.VertexColor = VectorRGB(values.visuals.effects["weapon chams"].Color)
  3928. if selected == "Smooth" or selected == "Glass" then
  3929. obj.Mesh.TextureId = ""
  3930. else
  3931. pcall(function()
  3932. obj.Mesh.TextureId = obj.Mesh.OriginalTexture.Value
  3933. obj.Mesh.TextureID = obj.Mesh.OriginalTexture.Value
  3934. end)
  3935. end
  3936. end
  3937. obj.Color = values.visuals.effects["weapon chams"].Color
  3938. obj.Material = selected == "Smooth" and "SmoothPlastic" or selected == "Flat" and "Neon" or selected == "ForceField" and "ForceField" or "Glass"
  3939. obj.Reflectance = values.visuals.effects["reflectance"].Slider/10
  3940. obj.Transparency = values.visuals.effects["weapon chams"].Transparency
  3941. end
  3942. local Skins = ReplicatedStorage.Skins
  3943. local function MapSkin(Gun, Skin, CustomSkin)
  3944. if CustomSkin ~= nil then
  3945. for _,Data in pairs(CustomSkin) do
  3946. local Obj = Camera.Arms:FindFirstChild(Data.Name)
  3947. if Obj ~= nil and Obj.Transparency ~= 1 then
  3948. Obj.TextureId = Data.Value
  3949. end
  3950. end
  3951. else
  3952. local SkinData = Skins:FindFirstChild(Gun):FindFirstChild(Skin)
  3953. if not SkinData:FindFirstChild("Animated") then
  3954. for _,Data in pairs(SkinData:GetChildren()) do
  3955. local Obj = Camera.Arms:FindFirstChild(Data.Name)
  3956. if Obj ~= nil and Obj.Transparency ~= 1 then
  3957. if Obj:FindFirstChild("Mesh") then
  3958. Obj.Mesh.TextureId = v.Value
  3959. elseif not Obj:FindFirstChild("Mesh") then
  3960. Obj.TextureID = Data.Value
  3961. end
  3962. end
  3963. end
  3964. end
  3965. end
  3966. end
  3967. local function ChangeCharacter(NewCharacter)
  3968. for _,Part in pairs (LocalPlayer.Character:GetChildren()) do
  3969. if Part:IsA("Accessory") then
  3970. Part:Destroy()
  3971. end
  3972. if Part:IsA("BasePart") then
  3973. if NewCharacter:FindFirstChild(Part.Name) then
  3974. Part.Color = NewCharacter:FindFirstChild(Part.Name).Color
  3975. Part.Transparency = NewCharacter:FindFirstChild(Part.Name).Transparency
  3976. end
  3977. if Part.Name == "FakeHead" then
  3978. Part.Color = NewCharacter:FindFirstChild("Head").Color
  3979. Part.Transparency = NewCharacter:FindFirstChild("Head").Transparency
  3980. end
  3981. end
  3982. if (Part.Name == "Head" or Part.Name == "FakeHead") and Part:FindFirstChildOfClass("Decal") and NewCharacter.Head:FindFirstChildOfClass("Decal") then
  3983. Part:FindFirstChildOfClass("Decal").Texture = NewCharacter.Head:FindFirstChildOfClass("Decal").Texture
  3984. end
  3985. end
  3986. if NewCharacter:FindFirstChildOfClass("Shirt") then
  3987. if LocalPlayer.Character:FindFirstChildOfClass("Shirt") then
  3988. LocalPlayer.Character:FindFirstChildOfClass("Shirt"):Destroy()
  3989. end
  3990. local Clone = NewCharacter:FindFirstChildOfClass("Shirt"):Clone()
  3991. Clone.Parent = LocalPlayer.Character
  3992. end
  3993. if NewCharacter:FindFirstChildOfClass("Pants") then
  3994. if LocalPlayer.Character:FindFirstChildOfClass("Pants") then
  3995. LocalPlayer.Character:FindFirstChildOfClass("Pants"):Destroy()
  3996. end
  3997. local Clone = NewCharacter:FindFirstChildOfClass("Pants"):Clone()
  3998. Clone.Parent = LocalPlayer.Character
  3999. end
  4000. for _,Part in pairs (NewCharacter:GetChildren()) do
  4001. if Part:IsA("Accessory") then
  4002. local Clone = Part:Clone()
  4003. for _,Weld in pairs (Clone.Handle:GetChildren()) do
  4004. if Weld:IsA("Weld") and Weld.Part1 ~= nil then
  4005. Weld.Part1 = LocalPlayer.Character[Weld.Part1.Name]
  4006. end
  4007. end
  4008. Clone.Parent = LocalPlayer.Character
  4009. end
  4010. end
  4011. if LocalPlayer.Character:FindFirstChildOfClass("Shirt") then
  4012. local String = INST("StringValue")
  4013. String.Name = "OriginalTexture"
  4014. String.Value = LocalPlayer.Character:FindFirstChildOfClass("Shirt").ShirtTemplate
  4015. String.Parent = LocalPlayer.Character:FindFirstChildOfClass("Shirt")
  4016. if TBLFIND(values.visuals.effects.removals.Jumbobox, "clothes") then
  4017. LocalPlayer.Character:FindFirstChildOfClass("Shirt").ShirtTemplate = ""
  4018. end
  4019. end
  4020. if LocalPlayer.Character:FindFirstChildOfClass("Pants") then
  4021. local String = INST("StringValue")
  4022. String.Name = "OriginalTexture"
  4023. String.Value = LocalPlayer.Character:FindFirstChildOfClass("Pants").PantsTemplate
  4024. String.Parent = LocalPlayer.Character:FindFirstChildOfClass("Pants")
  4025. if TBLFIND(values.visuals.effects.removals.Jumbobox, "clothes") then
  4026. LocalPlayer.Character:FindFirstChildOfClass("Pants").PantsTemplate = ""
  4027. end
  4028. end
  4029. for i,v in pairs(LocalPlayer.Character:GetChildren()) do
  4030. if v:IsA("BasePart") and v.Transparency ~= 1 then
  4031. INSERT(SelfObj, v)
  4032. local Color = INST("Color3Value")
  4033. Color.Name = "OriginalColor"
  4034. Color.Value = v.Color
  4035. Color.Parent = v
  4036. local String = INST("StringValue")
  4037. String.Name = "OriginalMaterial"
  4038. String.Value = v.Material.Name
  4039. String.Parent = v
  4040. elseif v:IsA("Accessory") and v.Handle.Transparency ~= 1 then
  4041. INSERT(SelfObj, v.Handle)
  4042. local Color = INST("Color3Value")
  4043. Color.Name = "OriginalColor"
  4044. Color.Value = v.Handle.Color
  4045. Color.Parent = v.Handle
  4046. local String = INST("StringValue")
  4047. String.Name = "OriginalMaterial"
  4048. String.Value = v.Handle.Material.Name
  4049. String.Parent = v.Handle
  4050. end
  4051. end
  4052. if values.visuals.self["self chams"].Toggle then
  4053. for _,obj in pairs(SelfObj) do
  4054. if obj.Parent ~= nil then
  4055. obj.Material = Enum.Material.ForceField
  4056. obj.Color = values.visuals.self["self chams"].Color
  4057. end
  4058. end
  4059. end
  4060. end
  4061. local function GetDeg(pos1, pos2)
  4062. local start = pos1.LookVector
  4063. local vector = CF(pos1.Position, pos2).LookVector
  4064. local angle = ACOS(start:Dot(vector))
  4065. local deg = DEG(angle)
  4066. return deg
  4067. end
  4068. local Ping = game.Stats.PerformanceStats.Ping:GetValue()
  4069. for i,v in pairs(Viewmodels:GetChildren()) do
  4070. if v:FindFirstChild("HumanoidRootPart") and v.HumanoidRootPart.Transparency ~= 1 then
  4071. v.HumanoidRootPart.Transparency = 1
  4072. end
  4073. end
  4074. local Models = game:GetObjects("rbxassetid://7285197035")[1]
  4075. repeat wait() until Models ~= nil
  4076. local ChrModels = game:GetObjects("rbxassetid://7265740528")[1]
  4077. repeat wait() until ChrModels ~= nil
  4078. local AllKnives = {
  4079. "CT Knife",
  4080. "T Knife",
  4081. "Banana",
  4082. "Bayonet",
  4083. "Bearded Axe",
  4084. "Butterfly Knife",
  4085. "Cleaver",
  4086. "Crowbar",
  4087. "Falchion Knife",
  4088. "Flip Knife",
  4089. "Gut Knife",
  4090. "Huntsman Knife",
  4091. "Karambit",
  4092. "Sickle",
  4093. }
  4094. local AllGloves = {}
  4095. for _,fldr in pairs(Gloves:GetChildren()) do
  4096. if fldr ~= GloveModels and fldr.Name ~= "Racer" then
  4097. AllGloves[fldr.Name] = {}
  4098. for _2,modl in pairs(fldr:GetChildren()) do
  4099. INSERT(AllGloves[fldr.Name], modl.Name)
  4100. end
  4101. end
  4102. end
  4103. for i,v in pairs(Models.Knives:GetChildren()) do
  4104. INSERT(AllKnives, v.Name)
  4105. end
  4106. local AllSkins = {}
  4107. local AllWeapons = {}
  4108. local AllCharacters = {}
  4109. for i,v in pairs(ChrModels:GetChildren()) do
  4110. INSERT(AllCharacters, v.Name)
  4111. end
  4112. local skins = {
  4113. {["Weapon"] = "AWP", ["SkinName"] = "Bot", ["Skin"] = {["Scope"] = "6572594838", ["Handle"] = "6572594077"}}
  4114. }
  4115. for _,skin in pairs (skins) do
  4116. local Folder = INST("Folder")
  4117. Folder.Name = skin["SkinName"]
  4118. Folder.Parent = Skins[skin["Weapon"]]
  4119. for _,model in pairs (skin["Skin"]) do
  4120. local val = INST("StringValue")
  4121. val.Name = _
  4122. val.Value = "rbxassetid://"..model
  4123. val.Parent = Folder
  4124. end
  4125. end
  4126. for i,v in pairs(Skins:GetChildren()) do
  4127. INSERT(AllWeapons, v.Name)
  4128. end
  4129. TBLSORT(AllWeapons, function(a,b)
  4130. return a < b
  4131. end)
  4132. for i,v in ipairs(AllWeapons) do
  4133. AllSkins[v] = {}
  4134. INSERT(AllSkins[v], "Inventory")
  4135. for _,v2 in pairs(Skins[v]:GetChildren()) do
  4136. if not v2:FindFirstChild("Animated") then
  4137. INSERT(AllSkins[v], v2.Name)
  4138. end
  4139. end
  4140. end
  4141. makefolder("ovalua")
  4142. local allluas = {}
  4143. for _,lua in pairs(listfiles("ovalua")) do
  4144. local luaname = GSUB(lua, "ovalua\\", "")
  4145. INSERT(allluas, luaname)
  4146. end
  4147. RunService.RenderStepped:Wait()
  4148. local gui = library:New("Ova.rocks")
  4149. local legit = gui:Tab("legit")
  4150. local rage = gui:Tab("rage")
  4151. local visuals = gui:Tab("visuals")
  4152. local misc = gui:Tab("misc")
  4153. local skins = gui:Tab("skins")
  4154. local luas = gui:Tab("luas")
  4155. getgenv().api = {}
  4156. api.newtab = function(name)
  4157. return gui:Tab(name)
  4158. end
  4159. api.newsection = function(tab, name, side)
  4160. return tab:Sector(name, side)
  4161. end
  4162. api.newelement = function(section, type, name, data, callback)
  4163. section:Element(type, name, data, callback)
  4164. end
  4165. local luascripts = luas:Sector("lua scripts", "Left")
  4166. luascripts:Element("Scroll", "lua", {options = allluas, Amount = 5})
  4167. luascripts:Element("Button", "load", {}, function()
  4168. loadstring(readfile("ovalua\\"..values.luas["lua scripts"].lua.Scroll))()
  4169. end)
  4170. local knife = skins:Sector("knife", "Left")
  4171. knife:Element("Toggle", "knife changer")
  4172. knife:Element("Scroll", "model", {options = AllKnives, Amount = 15})
  4173. local glove = skins:Sector("glove", "Left")
  4174. glove:Element("Toggle", "glove changer")
  4175. glove:Element("ScrollDrop", "model", {options = AllGloves, Amount = 9})
  4176. local skin = skins:Sector("skins", "Right")
  4177. skin:Element("Toggle", "skin changer")
  4178. skin:Element("ScrollDrop", "skin", {options = AllSkins, Amount = 15, alphabet = true})
  4179. local characters = skins:Sector("characters", "Right")
  4180. characters:Element("Toggle", "character changer", nil, function(tbl)
  4181. if tbl.Toggle then
  4182. if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Gun") then
  4183. ChangeCharacter(ChrModels:FindFirstChild(values.skins.characters.skin.Scroll))
  4184. end
  4185. end
  4186. end)
  4187. characters:Element("Scroll", "skin", {options = AllCharacters, Amount = 9, alphabet = true}, function(tbl)
  4188. if values.skins.characters["character changer"].Toggle then
  4189. if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Gun") then
  4190. ChangeCharacter(ChrModels:FindFirstChild(tbl.Scroll))
  4191. end
  4192. end
  4193. end)
  4194. local aimbot = legit:Sector("aimbot", "Left")
  4195. aimbot:Element("ToggleKeybind", "aim assist")
  4196. aimbot:Element("ToggleKeybind", "silent aim")
  4197. aimbot:Element("ToggleKeybind", "triggerbot")
  4198. local main = legit:MSector("main", "Left")
  4199. local default = main:Tab("default")
  4200. local pistol = main:Tab("pistol")
  4201. local smg = main:Tab("smg")
  4202. local rifle = main:Tab("rifle")
  4203. local sniper = main:Tab("sniper")
  4204. local function AddLegit(Tab)
  4205. Tab:Element("Jumbobox", "conditions", {options = {"visible", "standing", "blind", "smoke"}})
  4206. Tab:Element("Dropdown", "target", {options = {"crosshair", "health", "distance"}})
  4207. Tab:Element("Dropdown", "hitbox", {options = {"closest", "head", "chest"}})
  4208. Tab:Element("Slider", "field of view", {min = 30, max = 420, default = 120})
  4209. Tab:Element("Slider", "smoothing", {min = 1, max = 50, default = 1})
  4210. Tab:Element("Toggle", "silent aim")
  4211. Tab:Element("Slider", "hitchance", {min = 1, max = 100, default = 100})
  4212. Tab:Element("Dropdown", "priority", {options = {"closest", "head", "chest"}})
  4213. Tab:Element("Toggle", "triggerbot")
  4214. Tab:Element("Slider", "delay (ms)", {min = 0, max = 300, default = 200})
  4215. Tab:Element("Slider", "minimum dmg", {min = 0, max = 100, default = 15})
  4216. end
  4217. AddLegit(default)
  4218. pistol:Element("Toggle", "override default")
  4219. AddLegit(pistol)
  4220. smg:Element("Toggle", "override default")
  4221. AddLegit(smg)
  4222. rifle:Element("Toggle", "override default")
  4223. AddLegit(rifle)
  4224. sniper:Element("Toggle", "override default")
  4225. AddLegit(sniper)
  4226. local settings = legit:Sector("settings", "Right")
  4227. settings:Element("Toggle", "free for all")
  4228. settings:Element("Toggle", "forcefield check")
  4229. settings:Element("ToggleColor", "draw fov")
  4230. local aimbot = rage:Sector("aimbot", "Left")
  4231. aimbot:Element("Toggle", "enabled")
  4232. aimbot:Element("Dropdown", "origin", {options = {"character", "camera"}})
  4233. aimbot:Element("Toggle", "silent aim")
  4234. aimbot:Element("Dropdown", "automatic fire", {options = {"off", "standard", "hitpart"}})
  4235. aimbot:Element("Toggle", "automatic penetration")
  4236. aimbot:Element("Jumbobox", "resolver", {options = {"pitch", "roll"}})
  4237. aimbot:Element("Toggle", "delay shot")
  4238. aimbot:Element("Toggle", "force hit")
  4239. aimbot:Element("Toggle", "sex package")
  4240. aimbot:Element("Toggle", "teammates")
  4241. aimbot:Element("Toggle", "auto baim")
  4242. aimbot:Element("Toggle", "knifebot")
  4243. local weapons = rage:MSector("weapons", "Left")
  4244. local default = weapons:Tab("default")
  4245. local pistol = weapons:Tab("pistol")
  4246. local rifle = weapons:Tab("rifle")
  4247. local scout = weapons:Tab("scout")
  4248. local awp = weapons:Tab("awp")
  4249. local auto = weapons:Tab("auto")
  4250. local function AddRage(Tab)
  4251. Tab:Element("Jumbobox", "hitboxes", {options = {"head", "torso", "pelvis"}})
  4252. Tab:Element("Toggle", "prefer body")
  4253. Tab:Element("Slider", "minimum damage", {min = 1, max = 100, default = 20})
  4254. Tab:Element("Slider", "max fov", {min = 1, max = 180, default = 180})
  4255. end
  4256. AddRage(default)
  4257. pistol:Element("Toggle", "override default")
  4258. AddRage(pistol)
  4259. rifle:Element("Toggle", "override default")
  4260. AddRage(rifle)
  4261. scout:Element("Toggle", "override default")
  4262. AddRage(scout)
  4263. awp:Element("Toggle", "override default")
  4264. AddRage(awp)
  4265. auto:Element("Toggle", "override default")
  4266. AddRage(auto)
  4267. local antiaim = rage:Sector("angles", "Right")
  4268. antiaim:Element("Toggle", "enabled")
  4269. antiaim:Element("Dropdown", "yaw base", {options = {"camera", "targets", "spin", "random"}})
  4270. antiaim:Element("Slider", "yaw offset", {min = -180, max = 180, default = 0})
  4271. antiaim:Element("Toggle", "jitter")
  4272. antiaim:Element("Slider", "jitter offset", {min = -180, max = 180, default = 0})
  4273. antiaim:Element("Dropdown", "pitch", {options = {"none", "up", "down", "zero", "180", "random"}})
  4274. antiaim:Element("Toggle", "extend pitch")
  4275. antiaim:Element("Dropdown", "body roll", {options = {"off", "180"}})
  4276. antiaim:Element("Slider", "spin speed", {min = 1, max = 48, default = 4})
  4277. local others = rage:Sector("others", "Right")
  4278. others:Element("Toggle", "remove head")
  4279. others:Element("Toggle", "no animations")
  4280. others:Element("Dropdown", "leg movement", {options = {"off", "slide"}})
  4281. local LagTick = 0
  4282. local fakelag = rage:Sector("fakelag", "Right")
  4283. fakelag:Element("Toggle", "enabled", {default = {Toggle = false}}, function(tbl)
  4284. if tbl.Toggle then
  4285. else
  4286. FakelagFolder:ClearAllChildren()
  4287. game:GetService("NetworkClient"):SetOutgoingKBPSLimit(9e9)
  4288. end
  4289. end)
  4290. fakelag:Element("Dropdown", "amount", {options = {"static", "dynamic"}})
  4291. fakelag:Element("Slider", "limit", {min = 1, max = 16, default = 8})
  4292. fakelag:Element("ToggleColor", "visualize lag", {default = {Toggle = false, Color = COL3RGB(255,255,255)}}, function(tbl)
  4293. if tbl.Toggle then
  4294. for _,obj in pairs(FakelagFolder:GetChildren()) do
  4295. obj.Color = tbl.Color
  4296. end
  4297. else
  4298. FakelagFolder:ClearAllChildren()
  4299. end
  4300. end)
  4301. fakelag:Element("ToggleKeybind", "ping spike")
  4302. coroutine.wrap(function()
  4303. while wait(1/16) do
  4304. LagTick = CLAMP(LagTick + 1, 0, values.rage.fakelag.limit.Slider)
  4305. if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("UpperTorso") and values.rage.fakelag.enabled.Toggle then
  4306. if LagTick == (values.rage.fakelag.amount.Dropdown == "static" and values.rage.fakelag.limit.Slider or RANDOM(1, values.rage.fakelag.limit.Slider)) then
  4307. game:GetService("NetworkClient"):SetOutgoingKBPSLimit(9e9)
  4308. FakelagFolder:ClearAllChildren()
  4309. LagTick = 0
  4310. if values.rage.fakelag["visualize lag"].Toggle then
  4311. for _,hitbox in pairs(LocalPlayer.Character:GetChildren()) do
  4312. if hitbox:IsA("BasePart") and hitbox.Name ~= "HumanoidRootPart" then
  4313. local part = INST("Part")
  4314. part.CFrame = hitbox.CFrame
  4315. part.Anchored = true
  4316. part.CanCollide = false
  4317. part.Material = Enum.Material.ForceField
  4318. part.Color = values.rage.fakelag["visualize lag"].Color
  4319. part.Name = hitbox.Name
  4320. part.Transparency = 0
  4321. part.Size = hitbox.Size
  4322. part.Parent = FakelagFolder
  4323. end
  4324. end
  4325. end
  4326. else
  4327. if values.rage.fakelag.enabled.Toggle then
  4328. game:GetService("NetworkClient"):SetOutgoingKBPSLimit(1)
  4329. end
  4330. end
  4331. else
  4332. FakelagFolder:ClearAllChildren()
  4333. game:GetService("NetworkClient"):SetOutgoingKBPSLimit(9e9)
  4334. end
  4335. end
  4336. end)()
  4337. local exploits = rage:Sector("exploits", "Left")
  4338. exploits:Element("ToggleKeybind", "double tap")
  4339. exploits:Element("ToggleKeybind", "kill all")
  4340. local players = visuals:Sector("players", "Left")
  4341. players:Element("Toggle", "teammates")
  4342. players:Element("ToggleColor", "box", {default = {Color = COL3RGB(255,255,255)}})
  4343. players:Element("ToggleColor", "name", {default = {Color = COL3RGB(255,255,255)}})
  4344. players:Element("Toggle", "health")
  4345. players:Element("ToggleColor", "weapon", {default = {Color = COL3RGB(255,255,255)}})
  4346. players:Element("ToggleColor", "weapon icon", {default = {Color = COL3RGB(255,255,255)}})
  4347. players:Element("Jumbobox", "indicators", {options = {"armor"}})
  4348. players:Element("Jumbobox", "outlines", {options = {"drawings", "text"}, default = {Jumbobox = {"drawings", "text"}}})
  4349. players:Element("Dropdown", "font", {options = {"Plex", "Monospace", "System", "UI"}})
  4350. players:Element("Slider", "size", {min = 12, max = 16, default = 13})
  4351. players:Element("ToggleColor", "chams", nil, function(tbl)
  4352. for _,Player in pairs(Players:GetPlayers()) do
  4353. if Player.Character then
  4354. for _2,Obj in pairs(Player.Character:GetDescendants()) do
  4355. if Obj.Name == "VisibleCham" or Obj.Name == "WallCham" then
  4356. if tbl.Toggle then
  4357. if values.visuals.players.teammates.Toggle or Player.Team ~= LocalPlayer.Team then
  4358. Obj.Visible = true
  4359. else
  4360. Obj.Visible = false
  4361. end
  4362. else
  4363. Obj.Visible = false
  4364. end
  4365. Obj.Color3 = tbl.Color
  4366. end
  4367. end
  4368. end
  4369. end
  4370. end)
  4371. local effects = visuals:Sector("effects", "Right")
  4372. effects:Element("ToggleTrans", "weapon chams", {default = {Color = COL3RGB(255,255,255), Transparency = 0}}, function(tbl)
  4373. if WeaponObj == nil then return end
  4374. if tbl.Toggle then
  4375. for i,v in pairs(WeaponObj) do
  4376. UpdateWeapon(v)
  4377. end
  4378. else
  4379. for i,v in pairs(WeaponObj) do
  4380. if v:IsA("MeshPart") then v.TextureID = v.OriginalTexture.Value end
  4381. if v:IsA("Part") and v:FindFirstChild("Mesh") and not v:IsA("BlockMesh") then
  4382. v.Mesh.TextureId = v.Mesh.OriginalTexture.Value
  4383. v.Mesh.VertexColor = Vec3(1,1,1)
  4384. end
  4385. v.Color = v.OriginalColor.Value
  4386. v.Material = v.OriginalMaterial.Value
  4387. v.Transparency = 0
  4388. end
  4389. end
  4390. end)
  4391. effects:Element("Dropdown", "weapon material", {options = {"Smooth", "Flat", "ForceField", "Glass"}}, function(tbl)
  4392. if WeaponObj == nil then return end
  4393. if values.visuals.effects["weapon chams"].Toggle then
  4394. for i,v in pairs(WeaponObj) do
  4395. UpdateWeapon(v)
  4396. end
  4397. end
  4398. end)
  4399. effects:Element("Slider", "reflectance", {min = 0, max = 100, default = 0}, function(tbl)
  4400. if values.visuals.effects["weapon chams"].Toggle then
  4401. for i,v in pairs(WeaponObj) do
  4402. UpdateWeapon(v)
  4403. end
  4404. end
  4405. end)
  4406. effects:Element("ToggleTrans", "accessory chams", {default = {Color = COL3RGB(255,255,255)}}, function(val)
  4407. if RArm == nil or LArm == nil then return end
  4408. if val.Toggle then
  4409. if RGlove ~= nil then
  4410. UpdateAccessory(RGlove)
  4411. end
  4412. if RSleeve ~= nil then
  4413. UpdateAccessory(RSleeve)
  4414. end
  4415. if LGlove ~= nil then
  4416. UpdateAccessory(LGlove)
  4417. end
  4418. if LSleeve ~= nil then
  4419. UpdateAccessory(LSleeve)
  4420. end
  4421. else
  4422. if RGlove then
  4423. ReverseAccessory(RGlove)
  4424. end
  4425. if LGlove then
  4426. ReverseAccessory(LGlove)
  4427. end
  4428. if RSleeve then
  4429. ReverseAccessory(RSleeve)
  4430. end
  4431. if LSleeve then
  4432. ReverseAccessory(LSleeve)
  4433. end
  4434. end
  4435. end)
  4436. effects:Element("Dropdown", "accessory material", {options = {"Smooth","ForceField"}}, function(val)
  4437. if RArm == nil or LArm == nil then return end
  4438. if values.visuals.effects["accessory chams"].Toggle then
  4439. if RGlove ~= nil then
  4440. UpdateAccessory(RGlove)
  4441. end
  4442. if RSleeve ~= nil then
  4443. UpdateAccessory(RSleeve)
  4444. end
  4445. if LGlove ~= nil then
  4446. UpdateAccessory(LGlove)
  4447. end
  4448. if LSleeve ~= nil then
  4449. UpdateAccessory(LSleeve)
  4450. end
  4451. end
  4452. end)
  4453. effects:Element("ToggleTrans", "arm chams", {default = {Color = COL3RGB(255,255,255)}}, function(val)
  4454. if RArm == nil then return end
  4455. if LArm == nil then return end
  4456. if val.Toggle then
  4457. RArm.Color = val.Color
  4458. LArm.Color = val.Color
  4459. RArm.Transparency = val.Transparency
  4460. LArm.Transparency = val.Transparency
  4461. else
  4462. RArm.Color = RArm.Color3Value.Value
  4463. LArm.Color = RArm.Color3Value.Value
  4464. RArm.Transparency = 0
  4465. LArm.Transparency = 0
  4466. end
  4467. end)
  4468. effects:Element("Jumbobox", "removals", {options = {"scope", "scope lines", "flash", "smoke", "decals", "shadows", "clothes"}}, function(val)
  4469. local tbl = val.Jumbobox
  4470. if TBLFIND(tbl, "decals") then
  4471. Client.createbullethole = function() end
  4472. for i,v in pairs(workspace.Debris:GetChildren()) do
  4473. if v.Name == "Bullet" or v.Name == "SurfaceGui" then
  4474. v:Destroy()
  4475. end
  4476. end
  4477. else
  4478. Client.createbullethole = oldcreatebullethole
  4479. end
  4480. if TBLFIND(tbl, "clothes") then
  4481. if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("UpperTorso") then
  4482. if LocalPlayer.Character:FindFirstChild("Shirt") then
  4483. LocalPlayer.Character:FindFirstChild("Shirt").ShirtTemplate = ""
  4484. end
  4485. if LocalPlayer.Character:FindFirstChild("Pants") then
  4486. LocalPlayer.Character:FindFirstChild("Pants").PantsTemplate = ""
  4487. end
  4488. end
  4489. else
  4490. if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("UpperTorso") then
  4491. if LocalPlayer.Character:FindFirstChild("Shirt") then
  4492. LocalPlayer.Character:FindFirstChild("Shirt").ShirtTemplate = LocalPlayer.Character:FindFirstChild("Shirt").OriginalTexture.Value
  4493. end
  4494. if LocalPlayer.Character:FindFirstChild("Pants") then
  4495. LocalPlayer.Character:FindFirstChild("Pants").PantsTemplate = LocalPlayer.Character:FindFirstChild("Pants").OriginalTexture.Value
  4496. end
  4497. end
  4498. end
  4499. if TBLFIND(tbl, "scope") then
  4500. Crosshairs.Scope.ImageTransparency = 1
  4501. Crosshairs.Scope.Scope.ImageTransparency = 1
  4502. Crosshairs.Frame1.Transparency = 1
  4503. Crosshairs.Frame2.Transparency = 1
  4504. Crosshairs.Frame3.Transparency = 1
  4505. Crosshairs.Frame4.Transparency = 1
  4506. else
  4507. Crosshairs.Scope.ImageTransparency = 0
  4508. Crosshairs.Scope.Scope.ImageTransparency = 0
  4509. Crosshairs.Frame1.Transparency = 0
  4510. Crosshairs.Frame2.Transparency = 0
  4511. Crosshairs.Frame3.Transparency = 0
  4512. Crosshairs.Frame4.Transparency = 0
  4513. end
  4514. PlayerGui.Blnd.Enabled = not TBLFIND(tbl, "flash") and true or false
  4515. Lighting.GlobalShadows = not TBLFIND(tbl, "shadows") and true or false
  4516. if RayIgnore:FindFirstChild("Smokes") then
  4517. if TBLFIND(tbl, "smoke") then
  4518. for i,smoke in pairs(RayIgnore.Smokes:GetChildren()) do
  4519. smoke.ParticleEmitter.Rate = 0
  4520. end
  4521. else
  4522. for i,smoke in pairs(RayIgnore.Smokes:GetChildren()) do
  4523. smoke.ParticleEmitter.Rate = smoke.OriginalRate.Value
  4524. end
  4525. end
  4526. end
  4527. end)
  4528. effects:Element("Toggle", "force crosshair")
  4529. effects:Element("ToggleColor", "world color", {default = {Color = COL3RGB(255,255,255)}}, function(val)
  4530. if val.Toggle then
  4531. Camera.ColorCorrection.TintColor = val.Color
  4532. else
  4533. Camera.ColorCorrection.TintColor = COL3RGB(255,255,255)
  4534. end
  4535. end)
  4536. effects:Element("Toggle", "shadowmap technology", nil, function(val) sethiddenproperty(Lighting, "Technology", val.Toggle and "ShadowMap" or "Legacy") end)
  4537. local self = visuals:Sector("self", "Right")
  4538. self:Element("ToggleKeybind", "third person", {}, function(tbl)
  4539. if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
  4540. if tbl.Toggle then
  4541. if tbl.Active then
  4542. LocalPlayer.CameraMaxZoomDistance = values.visuals.self.distance.Slider
  4543. LocalPlayer.CameraMinZoomDistance = values.visuals.self.distance.Slider
  4544. LocalPlayer.CameraMaxZoomDistance = values.visuals.self.distance.Slider
  4545. LocalPlayer.CameraMinZoomDistance = values.visuals.self.distance.Slider
  4546. else
  4547. LocalPlayer.CameraMaxZoomDistance = 0
  4548. LocalPlayer.CameraMinZoomDistance = 0
  4549. LocalPlayer.CameraMaxZoomDistance = 0
  4550. LocalPlayer.CameraMinZoomDistance = 0
  4551. end
  4552. else
  4553. LocalPlayer.CameraMaxZoomDistance = 0
  4554. LocalPlayer.CameraMinZoomDistance = 0
  4555. end
  4556. end
  4557. end)
  4558. self:Element("Slider", "distance", {min = 6, max = 18, default = 12}, function(tbl)
  4559. if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
  4560. if values.visuals.self["third person"].Toggle then
  4561. if values.visuals.self["third person"].Active then
  4562. LocalPlayer.CameraMaxZoomDistance = tbl.Slider
  4563. LocalPlayer.CameraMinZoomDistance = tbl.Slider
  4564. LocalPlayer.CameraMaxZoomDistance = tbl.Slider
  4565. LocalPlayer.CameraMinZoomDistance = tbl.Slider
  4566. else
  4567. LocalPlayer.CameraMaxZoomDistance = 0
  4568. LocalPlayer.CameraMinZoomDistance = 0
  4569. end
  4570. else
  4571. LocalPlayer.CameraMaxZoomDistance = 0
  4572. LocalPlayer.CameraMinZoomDistance = 0
  4573. end
  4574. end
  4575. end)
  4576. LocalPlayer:GetPropertyChangedSignal("CameraMinZoomDistance"):Connect(function(current)
  4577. if values.visuals.self["third person"].Toggle then
  4578. if values.visuals.self["third person"].Active then
  4579. if current ~= values.visuals.self.distance.Slider then
  4580. LocalPlayer.CameraMinZoomDistance = values.visuals.self.distance.Slider
  4581. end
  4582. end
  4583. end
  4584. end)
  4585. self:Element("Slider", "fov changer", {min = 0, max = 120, default = 80}, function(value)
  4586. RunService.RenderStepped:Wait()
  4587. if LocalPlayer.Character == nil then return end
  4588. if fov == value.Slider then return end
  4589. if values.visuals.self["on scope"].Toggle or not LocalPlayer.Character:FindFirstChild("AIMING") then
  4590. Camera.FieldOfView = value.Slider
  4591. end
  4592. end)
  4593. self:Element("Toggle", "on scope")
  4594. self:Element("Toggle", "viewmodel changer")
  4595. self:Element("Slider", "viewmodel x", {min = -10, max = 10}, function(val)
  4596. ViewmodelOffset = CF(values.visuals.self["viewmodel x"].Slider/7, values.visuals.self["viewmodel y"].Slider/7, values.visuals.self["viewmodel z"].Slider/7) * CFAngles(0, 0, values.visuals.self.roll.Slider/50)
  4597. end)
  4598. self:Element("Slider", "viewmodel y", {min = -10, max = 10}, function(val)
  4599. ViewmodelOffset = CF(values.visuals.self["viewmodel x"].Slider/7, values.visuals.self["viewmodel y"].Slider/7, values.visuals.self["viewmodel z"].Slider/7) * CFAngles(0, 0, values.visuals.self.roll.Slider/50)
  4600. end)
  4601. self:Element("Slider", "viewmodel z", {min = -10, max = 10}, function(val)
  4602. ViewmodelOffset = CF(values.visuals.self["viewmodel x"].Slider/7, values.visuals.self["viewmodel y"].Slider/7, values.visuals.self["viewmodel z"].Slider/7) * CFAngles(0, 0, values.visuals.self.roll.Slider/50)
  4603. end)
  4604. self:Element("Slider", "roll", {min = -100, max = 100}, function(val)
  4605. ViewmodelOffset = CF(values.visuals.self["viewmodel x"].Slider/7, values.visuals.self["viewmodel y"].Slider/7, values.visuals.self["viewmodel z"].Slider/7) * CFAngles(0, 0, values.visuals.self.roll.Slider/50)
  4606. end)
  4607. self:Element("ToggleColor", "self chams", {default = {Color = COL3RGB(255,255,255)}}, function(tbl)
  4608. if tbl.Toggle then
  4609. for _,obj in pairs(SelfObj) do
  4610. if obj.Parent ~= nil then
  4611. obj.Material = Enum.Material.ForceField
  4612. obj.Color = tbl.Color
  4613. end
  4614. end
  4615. else
  4616. for _,obj in pairs(SelfObj) do
  4617. if obj.Parent ~= nil then
  4618. obj.Material = obj.OriginalMaterial.Value
  4619. obj.Color = obj.OriginalColor.Value
  4620. end
  4621. end
  4622. end
  4623. end)
  4624. self:Element("Slider", "scope blend", {min = 0, max = 100, default = 0})
  4625. local ads = Client.updateads
  4626. Client.updateads = function(self, ...)
  4627. local args = {...}
  4628. coroutine.wrap(function()
  4629. wait()
  4630. if LocalPlayer.Character ~= nil then
  4631. for _,part in pairs(LocalPlayer.Character:GetDescendants()) do
  4632. if part:IsA("Part") or part:IsA("MeshPart") then
  4633. if part.Transparency ~= 1 then
  4634. part.Transparency = LocalPlayer.Character:FindFirstChild("AIMING") and values.visuals.self["scope blend"].Slider/100 or 0
  4635. end
  4636. end
  4637. if part:IsA("Accessory") then
  4638. part.Handle.Transparency = LocalPlayer.Character:FindFirstChild("AIMING") and values.visuals.self["scope blend"].Slider/100 or 0
  4639. end
  4640. end
  4641. end
  4642. end)()
  4643. return ads(self, ...)
  4644. end
  4645. local world = visuals:Sector("world", "Left")
  4646. world:Element("ToggleTrans", "molly radius", {default = {Color = COL3RGB(255,0,0)}}, function(tbl)
  4647. if RayIgnore:FindFirstChild("Fires") == nil then return end
  4648. if tbl.Toggle then
  4649. for i,fire in pairs(RayIgnore:FindFirstChild("Fires"):GetChildren()) do
  4650. fire.Transparency = tbl.Transparency
  4651. fire.Color = tbl.Color
  4652. end
  4653. else
  4654. for i,fire in pairs(RayIgnore:FindFirstChild("Fires"):GetChildren()) do
  4655. fire.Transparency = 1
  4656. end
  4657. end
  4658. end)
  4659. world:Element("ToggleColor", "smoke radius", {default = {Color = COL3RGB(0, 255, 0)}}, function(tbl)
  4660. if RayIgnore:FindFirstChild("Smokes") == nil then return end
  4661. if tbl.Toggle then
  4662. for i,smoke in pairs(RayIgnore:FindFirstChild("Smokes"):GetChildren()) do
  4663. smoke.Transparency = 0
  4664. smoke.Color = tbl.Color
  4665. end
  4666. else
  4667. for i,smoke in pairs(RayIgnore:FindFirstChild("Smokes"):GetChildren()) do
  4668. smoke.Transparency = 1
  4669. end
  4670. end
  4671. end)
  4672. world:Element("ToggleColor", "bullet tracers", {default = {Color = COL3RGB(0, 0, 255)}})
  4673. world:Element("ToggleColor", "impacts", {default = {Color = COL3RGB(255, 0, 0)}})
  4674. world:Element("ToggleColor", "hit chams", {default = {Color = COL3RGB(0, 0, 255)}})
  4675. world:Element("Dropdown", "hitsound", {options = {"none", "skeet", "neverlose", "rust", "bag", "baimware"}})
  4676. world:Element("Slider", "sound volume", {min = 1, max = 5, default = 3})
  4677. world:Element("Dropdown", "skybox", {options = {"none", "nebula", "vaporwave", "clouds"}}, function(tbl)
  4678. local sky = tbl.Dropdown
  4679. if sky ~= "none" then
  4680. if Lighting:FindFirstChildOfClass("Sky") then Lighting:FindFirstChildOfClass("Sky"):Destroy() end
  4681. local skybox = INST("Sky")
  4682. skybox.SkyboxLf = Skyboxes[sky].SkyboxLf
  4683. skybox.SkyboxBk = Skyboxes[sky].SkyboxBk
  4684. skybox.SkyboxDn = Skyboxes[sky].SkyboxDn
  4685. skybox.SkyboxFt = Skyboxes[sky].SkyboxFt
  4686. skybox.SkyboxRt = Skyboxes[sky].SkyboxRt
  4687. skybox.SkyboxUp = Skyboxes[sky].SkyboxUp
  4688. skybox.Name = "override"
  4689. skybox.Parent = Lighting
  4690. else
  4691. if Lighting:FindFirstChildOfClass("Sky") then Lighting:FindFirstChildOfClass("Sky"):Destroy() end
  4692. if oldSkybox ~= nil then oldSkybox:Clone().Parent = Lighting end
  4693. end
  4694. end)
  4695. world:Element("ToggleColor", "item esp", {default = {Color = COL3RGB(255, 255, 255)}}, function(tbl)
  4696. for i,weapon in pairs(workspace.Debris:GetChildren()) do
  4697. if weapon:IsA("BasePart") and Weapons:FindFirstChild(weapon.Name) then
  4698. weapon.BillboardGui.ImageLabel.Visible = tbl.Toggle and TBLFIND(values.visuals.world["types"].Jumbobox, "icon") and true or false
  4699. end
  4700. end
  4701. end)
  4702. world:Element("Jumbobox", "types", {options = {"icon"}}, function(tbl)
  4703. for i,weapon in pairs(workspace.Debris:GetChildren()) do
  4704. if weapon:IsA("BasePart") and Weapons:FindFirstChild(weapon.Name) then
  4705. weapon.BillboardGui.ImageLabel.Visible = values.visuals.world["item esp"].Toggle and TBLFIND(tbl.Jumbobox, "icon") and true or false
  4706. weapon.BillboardGui.ImageLabel.ImageColor3 = values.visuals.world["item esp"].Color
  4707. end
  4708. end
  4709. end)
  4710. local configs = misc:Sector("configs", "Left")
  4711. configs:Element("TextBox", "config", {placeholder = "config name"})
  4712. configs:Element("Button", "save", {}, function() if values.misc.configs.config.Text ~= "" then library:SaveConfig(values.misc.configs.config.Text) end end)
  4713. configs:Element("Button", "load", {}, function() if values.misc.configs.config.Text ~= "" then ConfigLoad:Fire(values.misc.configs.config.Text) end end)
  4714. configs:Element("Toggle", "keybind list", nil, function(tbl)
  4715. library:SetKeybindVisible(tbl.Toggle)
  4716. end)
  4717. local crosshaireditor = misc:Sector("crosshair editor", "Right")
  4718. local function UpdateCrosshair()
  4719. if values.misc["crosshair editor"].enabled.Toggle then
  4720. local length = values.misc["crosshair editor"].length.Slider
  4721. Crosshair.LeftFrame.Size = UDIM2(0, length, 0, 2)
  4722. Crosshair.RightFrame.Size = UDIM2(0, length, 0, 2)
  4723. Crosshair.TopFrame.Size = UDIM2(0, 2, 0, length)
  4724. Crosshair.BottomFrame.Size = UDIM2(0, 2, 0, length)
  4725. for _,frame in pairs(Crosshair:GetChildren()) do
  4726. if FIND(frame.Name, "Frame") then
  4727. frame.BorderColor3 = COL3(0,0,0)
  4728. if values.misc["crosshair editor"].border.Toggle then
  4729. frame.BorderSizePixel = 1
  4730. else
  4731. frame.BorderSizePixel = 0
  4732. end
  4733. end
  4734. end
  4735. else
  4736. Crosshair.LeftFrame.Size = UDIM2(0, 10, 0, 2)
  4737. Crosshair.RightFrame.Size = UDIM2(0, 10, 0, 2)
  4738. Crosshair.TopFrame.Size = UDIM2(0, 2, 0, 10)
  4739. Crosshair.BottomFrame.Size = UDIM2(0, 2, 0, 10)
  4740. for _,frame in pairs(Crosshair:GetChildren()) do
  4741. if FIND(frame.Name, "Frame") then
  4742. frame.BorderSizePixel = 0
  4743. end
  4744. end
  4745. end
  4746. end
  4747. crosshaireditor:Element("Toggle", "enabled", nil, UpdateCrosshair)
  4748. crosshaireditor:Element("Slider", "length", {min = 1, max = 15, default = 10}, UpdateCrosshair)
  4749. crosshaireditor:Element("Toggle", "border", nil, UpdateCrosshair)
  4750. local client = misc:Sector("client", "Right")
  4751. client:Element("Toggle", "infinite cash", nil, function(tbl)
  4752. if tbl.Toggle then
  4753. LocalPlayer.Cash.Value = 8000
  4754. end
  4755. end)
  4756. client:Element("Toggle", "infinite crouch")
  4757. client:Element("Jumbobox", "damage bypass", {options = {"fire", "fall"}})
  4758. client:Element("Jumbobox", "gun modifiers", {options = {"recoil", "spread", "reload", "equip", "ammo", "automatic", "penetration", "firerate"}})
  4759. client:Element("Toggle", "remove killers", {}, function(tbl)
  4760. if tbl.Toggle then
  4761. if workspace:FindFirstChild("Map") and workspace:FindFirstChild("Map"):FindFirstChild("Killers") then
  4762. local clone = workspace:FindFirstChild("Map"):FindFirstChild("Killers"):Clone()
  4763. clone.Name = "KillersClone"
  4764. clone.Parent = workspace:FindFirstChild("Map")
  4765. workspace:FindFirstChild("Map"):FindFirstChild("Killers"):Destroy()
  4766. end
  4767. else
  4768. if workspace:FindFirstChild("Map") and workspace:FindFirstChild("Map"):FindFirstChild("KillersClone") then
  4769. workspace:FindFirstChild("Map"):FindFirstChild("KillersClone").Name = "Killers"
  4770. end
  4771. end
  4772. end)
  4773. client:Element("ToggleColor", "hitmarker", {default = {Color = COL3RGB(255,255,255)}})
  4774. client:Element("Toggle", "buy any grenade")
  4775. client:Element("Toggle", "chat alive")
  4776. client:Element("Jumbobox", "shop", {options = {"inf time", "anywhere"}})
  4777. client:Element("Toggle", "anti spectate")
  4778. local oldgrenadeallowed = Client.grenadeallowed
  4779. Client.grenadeallowed = function(...)
  4780. if values.misc.client["buy any grenade"].Toggle then
  4781. return true
  4782. end
  4783. return oldgrenadeallowed(...)
  4784. end
  4785. local movement = misc:Sector("movement", "Left")
  4786. movement:Element("Toggle", "bunny hop")
  4787. movement:Element("Dropdown", "direction", {options = {"forward", "directional", "directional 2"}})
  4788. movement:Element("Dropdown", "type", {options = {"gyro", "cframe"}})
  4789. movement:Element("Slider", "speed", {min = 15, max = 100, default = 40})
  4790. movement:Element("ToggleKeybind", "jump bug")
  4791. movement:Element("ToggleKeybind", "edge jump")
  4792. movement:Element("ToggleKeybind", "edge bug")
  4793. local chat = misc:Sector("chat", "Left")
  4794. chat:Element("Toggle", "chat spam", nil, function(tbl)
  4795. if tbl.Toggle then
  4796. while values.misc.chat["chat spam"].Toggle do
  4797. game:GetService("ReplicatedStorage").Events.PlayerChatted:FireServer(values.misc.chat.type.Dropdown == "standard" and "hi" or "buy stormy.solutions", false, "Innocent", false, true)
  4798. wait(values.misc.chat["speed (ms)"].Slider/1000)
  4799. end
  4800. end
  4801. end)
  4802. chat:Element("Dropdown", "type", {options = {"standard", "stormy"}})
  4803. chat:Element("Slider", "speed (ms)", {min = 150, max = 1000, default = 500})
  4804. chat:Element("Toggle", "kill say")
  4805. chat:Element("TextBox", "message", {placeholder = "message"})
  4806. chat:Element("Toggle", "no filter")
  4807. local grenades = misc:Sector("grenades", "Right")
  4808. grenades:Element("ToggleKeybind", "spam grenades")
  4809. coroutine.wrap(function()
  4810. while true do
  4811. wait(0.5)
  4812. if values.misc.grenades["spam grenades"].Toggle and values.misc.grenades["spam grenades"].Active then
  4813. local oh1 = game:GetService("ReplicatedStorage").Weapons[values.misc.grenades.grenade.Dropdown].Model
  4814. local oh3 = 25
  4815. local oh4 = 35
  4816. local oh6 = ""
  4817. local oh7 = ""
  4818. game:GetService("ReplicatedStorage").Events.ThrowGrenade:FireServer(oh1, nil, oh3, oh4, Vec3(0,-100,0), oh6, oh7)
  4819. end
  4820. end
  4821. end)()
  4822. grenades:Element("Dropdown", "grenade", {options = {"Flashbang", "Smoke Grenade", "Molotov", "HE Grenade", "Decoy Grenade"}})
  4823. grenades:Element("Button", "crash server", {}, function()
  4824. RunService.RenderStepped:Connect(function()
  4825. if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("UpperTorso") then
  4826. local oh1 = game:GetService("ReplicatedStorage").Weapons[values.misc.grenades.grenade.Dropdown].Model
  4827. local oh3 = 25
  4828. local oh4 = 35
  4829. local oh6 = ""
  4830. local oh7 = ""
  4831. game:GetService("ReplicatedStorage").Events.ThrowGrenade:FireServer(oh1, nil, oh3, oh4, Vec3(0,-100,0), oh6, oh7)
  4832. game:GetService("ReplicatedStorage").Events.ThrowGrenade:FireServer(oh1, nil, oh3, oh4, Vec3(0,-100,0), oh6, oh7)
  4833. game:GetService("ReplicatedStorage").Events.ThrowGrenade:FireServer(oh1, nil, oh3, oh4, Vec3(0,-100,0), oh6, oh7)
  4834. end
  4835. end)
  4836. end)
  4837. local Dance = INST("Animation")
  4838. Dance.AnimationId = "rbxassetid://5917459365"
  4839. local LoadedAnim
  4840. local animations = misc:Sector("animations", "Right")
  4841. animations:Element("ToggleKeybind", "enabled", nil, function(tbl)
  4842. pcall(function()
  4843. LoadedAnim:Stop()
  4844. end)
  4845. if not tbl.Toggle or tbl.Toggle and not tbl.Active then
  4846. else
  4847. if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
  4848. LoadedAnim = LocalPlayer.Character.Humanoid:LoadAnimation(Dance)
  4849. LoadedAnim.Priority = Enum.AnimationPriority.Action
  4850. LoadedAnim:Play()
  4851. end
  4852. end
  4853. end)
  4854. animations:Element("Dropdown", "animation", {options = {"floss", "default", "lil nas x", "dolphin", "monkey"}}, function(tbl)
  4855. Dance.AnimationId = tbl.Dropdown == "floss" and "rbxassetid://5917459365" or tbl.Dropdown == "default" and "rbxassetid://3732699835" or tbl.Dropdown == "lil nas x" and "rbxassetid://5938396308" or tbl.Dropdown == "dolphin" and "rbxassetid://5938365243" or tbl.Dropdown == "monkey" and "rbxassetid://3716636630"
  4856. pcall(function()
  4857. LoadedAnim:Stop()
  4858. end)
  4859. if values.misc.animations.enabled.Toggle and values.misc.animations.enabled.Active then
  4860. if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
  4861. LoadedAnim = LocalPlayer.Character.Humanoid:LoadAnimation(Dance)
  4862. LoadedAnim.Priority = Enum.AnimationPriority.Action
  4863. LoadedAnim:Play()
  4864. end
  4865. end
  4866. end)
  4867. local ui = misc:Sector("ui", "Left")
  4868. ui:Element("Toggle", "scaling")
  4869. ui:Element("Slider", "amount", {min = 5, max = 11, default = 10})
  4870. local objects = {}
  4871. local utility = {}
  4872. do
  4873. utility.default = {
  4874. Line = {
  4875. Thickness = 1.5,
  4876. Color = COL3RGB(255, 255, 255),
  4877. Visible = false
  4878. },
  4879. Text = {
  4880. Size = 13,
  4881. Center = true,
  4882. Outline = true,
  4883. Font = Drawing.Fonts.Plex,
  4884. Color = COL3RGB(255, 255, 255),
  4885. Visible = false
  4886. },
  4887. Square = {
  4888. Thickness = 1.5,
  4889. Filled = false,
  4890. Color = COL3RGB(255, 255, 255),
  4891. Visible = false
  4892. },
  4893. }
  4894. function utility.create(type, isOutline)
  4895. local drawing = Drawing.new(type)
  4896. for i, v in pairs(utility.default[type]) do
  4897. drawing[i] = v
  4898. end
  4899. if isOutline then
  4900. drawing.Color = COL3(0,0,0)
  4901. drawing.Thickness = 3
  4902. end
  4903. return drawing
  4904. end
  4905. function utility.add(plr)
  4906. if not objects[plr] then
  4907. objects[plr] = {
  4908. Name = utility.create("Text"),
  4909. Weapon = utility.create("Text"),
  4910. Armor = utility.create("Text"),
  4911. BoxOutline = utility.create("Square", true),
  4912. Box = utility.create("Square"),
  4913. HealthOutline = utility.create("Line", true),
  4914. Health = utility.create("Line"),
  4915. }
  4916. end
  4917. end
  4918. for _,plr in pairs(Players:GetPlayers()) do
  4919. if Player ~= LocalPlayer then
  4920. utility.add(plr)
  4921. end
  4922. end
  4923. Players.PlayerAdded:Connect(utility.add)
  4924. Players.PlayerRemoving:Connect(function(plr)
  4925. wait()
  4926. if objects[plr] then
  4927. for i,v in pairs(objects[plr]) do
  4928. for i2,v2 in pairs(v) do
  4929. if v then
  4930. v:Remove()
  4931. end
  4932. end
  4933. end
  4934. objects[plr] = nil
  4935. end
  4936. end)
  4937. end
  4938. local Items = INST("ScreenGui")
  4939. Items.Name = "Items"
  4940. Items.Parent = game.CoreGui
  4941. Items.ResetOnSpawn = false
  4942. Items.ZIndexBehavior = "Global"
  4943. do
  4944. function add(plr)
  4945. local ImageLabel = INST("ImageLabel")
  4946. ImageLabel.BackgroundColor3 = COL3RGB(255, 255, 255)
  4947. ImageLabel.BackgroundTransparency = 1.000
  4948. ImageLabel.Size = UDIM2(0, 62, 0, 25)
  4949. ImageLabel.Visible = false
  4950. ImageLabel.Image = "rbxassetid://1784884358"
  4951. ImageLabel.ScaleType = Enum.ScaleType.Fit
  4952. ImageLabel.Name = plr.Name
  4953. ImageLabel.AnchorPoint = Vec2(0.5,0.5)
  4954. ImageLabel.Parent = Items
  4955. end
  4956. for _,plr in pairs(Players:GetPlayers()) do
  4957. if Player ~= LocalPlayer then
  4958. add(plr)
  4959. end
  4960. end
  4961. Players.PlayerAdded:Connect(add)
  4962. Players.PlayerRemoving:Connect(function(plr)
  4963. wait()
  4964. Items[plr.Name]:Destroy()
  4965. end)
  4966. end
  4967. local debrisitems = {}
  4968. workspace.Debris.ChildAdded:Connect(function(obj)
  4969. if obj:IsA("BasePart") and Weapons:FindFirstChild(obj.Name) then
  4970. RunService.RenderStepped:Wait()
  4971. local BillboardGui = INST("BillboardGui")
  4972. BillboardGui.AlwaysOnTop = true
  4973. BillboardGui.Size = UDIM2(0, 40, 0, 40)
  4974. BillboardGui.Adornee = obj
  4975. local ImageLabel = INST("ImageLabel")
  4976. ImageLabel.Parent = BillboardGui
  4977. ImageLabel.BackgroundTransparency = 1
  4978. ImageLabel.Size = UDIM2(1, 0, 1, 0)
  4979. ImageLabel.ImageColor3 = values.visuals.world["item esp"].Color
  4980. ImageLabel.Image = GetIcon.getWeaponOfKiller(obj.Name)
  4981. ImageLabel.ScaleType = Enum.ScaleType.Fit
  4982. ImageLabel.Visible = values.visuals.world["item esp"].Toggle and TBLFIND(values.visuals.world["types"].Jumbobox, "icon") and true or false
  4983. BillboardGui.Parent = obj
  4984. end
  4985. end)
  4986. for _, obj in pairs(workspace.Debris:GetChildren()) do
  4987. if obj:IsA("BasePart") and Weapons:FindFirstChild(obj.Name) then
  4988. RunService.RenderStepped:Wait()
  4989. local BillboardGui = INST("BillboardGui")
  4990. BillboardGui.AlwaysOnTop = true
  4991. BillboardGui.Size = UDIM2(0, 40, 0, 40)
  4992. BillboardGui.Adornee = obj
  4993. local ImageLabel = INST("ImageLabel")
  4994. ImageLabel.Parent = BillboardGui
  4995. ImageLabel.BackgroundTransparency = 1
  4996. ImageLabel.Size = UDIM2(1, 0, 1, 0)
  4997. ImageLabel.ImageColor3 = values.visuals.world["item esp"].Color
  4998. ImageLabel.Image = GetIcon.getWeaponOfKiller(obj.Name)
  4999. ImageLabel.ScaleType = Enum.ScaleType.Fit
  5000. ImageLabel.Visible = values.visuals.world["item esp"].Toggle and TBLFIND(values.visuals.world["types"].Jumbobox, "icon") and true or false
  5001. BillboardGui.Parent = obj
  5002. end
  5003. end
  5004. local function YROTATION(cframe)
  5005. local x, y, z = cframe:ToOrientation()
  5006. return CF(cframe.Position) * CFAngles(0,y,0)
  5007. end
  5008. local function XYROTATION(cframe)
  5009. local x, y, z = cframe:ToOrientation()
  5010. return CF(cframe.Position) * CFAngles(x,y,0)
  5011. end
  5012. local weps = {
  5013. Pistol = {"USP", "P2000", "Glock", "DualBerettas", "P250", "FiveSeven", "Tec9", "CZ", "DesertEagle", "R8"},
  5014. SMG = {"MP9", "MAC10", "MP7", "UMP", "P90", "Bizon"},
  5015. Rifle = {"M4A4", "M4A1", "AK47", "Famas", "Galil", "AUG", "SG"},
  5016. Sniper = {"AWP", "Scout", "G3SG1"}
  5017. }
  5018. local weps2 = {
  5019. Pistol = {"USP", "P2000", "Glock", "DualBerettas", "P250", "FiveSeven", "Tec9", "CZ", "DesertEagle", "R8"},
  5020. SMG = {"MP9", "MAC10", "MP7", "UMP", "P90", "Bizon"},
  5021. Rifle = {"M4A4", "M4A1", "AK47", "Famas", "Galil", "AUG", "SG"},
  5022. Sniper = {"AWP", "Scout", "G3SG1"}
  5023. }
  5024. local function GetWeaponRage(weapon)
  5025. return TBLFIND(weps.Pistol, weapon) and "pistol" or TBLFIND(weps.Rifle, weapon) and "rifle" or weapon == "AWP" and "awp" or weapon == "G3SG1" and "auto" or weapon == "Scout" and "scout" or "default"
  5026. end
  5027. local function GetStatsRage(weapon)
  5028. if weapon == "default" then
  5029. return values.rage.weapons.default
  5030. else
  5031. if values.rage.weapons[weapon]["override default"].Toggle then
  5032. return values.rage.weapons[weapon]
  5033. else
  5034. return values.rage.weapons.default
  5035. end
  5036. end
  5037. end
  5038. local function GetWeaponLegit(weapon)
  5039. return TBLFIND(weps2.Pistol, weapon) and "pistol" or TBLFIND(weps2.Rifle, weapon) and "rifle" or TBLFIND(weps2.SMG, weapon) and "smg" or TBLFIND(weps2.Sniper, weapon) and "sniper" or "default"
  5040. end
  5041. local function GetStatsLegit(weapon)
  5042. if weapon == "default" then
  5043. return values.legit.main.default
  5044. else
  5045. if values.legit.main[weapon]["override default"].Toggle then
  5046. return values.legit.main[weapon]
  5047. else
  5048. return values.legit.main.default
  5049. end
  5050. end
  5051. end
  5052. local Jitter = false
  5053. local Spin = 0
  5054. local RageTarget
  5055. local Filter = false
  5056. local LastStep
  5057. local TriggerDebounce = false
  5058. local DisableAA = false
  5059. local Fov = Drawing.new("Circle")
  5060. Fov.Filled = true
  5061. Fov.Color = COL3RGB(15,15,15)
  5062. Fov.Transparency = 0.5
  5063. Fov.Position = Vec2(Mouse.X, Mouse.Y + 16)
  5064. Fov.Radius = 120
  5065. RunService.RenderStepped:Connect(function(step)
  5066. Fov.Visible = false
  5067. LastStep = step
  5068. Ping = game.Stats.PerformanceStats.Ping:GetValue()
  5069. RageTarget = nil
  5070. local CamCFrame = Camera.CFrame
  5071. local CamLook = CamCFrame.LookVector
  5072. local PlayerIsAlive = false
  5073. local Character = LocalPlayer.Character
  5074. RageTarget = nil
  5075. Spin = CLAMP(Spin + values.rage.angles["spin speed"].Slider, 0, 360)
  5076. if Spin == 360 then Spin = 0 end
  5077. if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") and LocalPlayer.Character:FindFirstChild("Humanoid").Health > 0 and LocalPlayer.Character:FindFirstChild("UpperTorso") then
  5078. PlayerIsAlive = true
  5079. end
  5080. for i,v in pairs(ChamItems) do
  5081. if v.Parent == nil then
  5082. TBLREMOVE(ChamItems, i)
  5083. end
  5084. end
  5085. Fov.Position = Vec2(Camera.ViewportSize.X/2, Camera.ViewportSize.Y/2)
  5086. if PlayerIsAlive then
  5087. local SelfVelocity = LocalPlayer.Character.HumanoidRootPart.Velocity
  5088. if values.rage.fakelag["ping spike"].Toggle and values.rage.fakelag["ping spike"].Active then
  5089. for count = 1, 20 do
  5090. game:GetService("ReplicatedStorage").Events.RemoteEvent:FireServer({[1] = "createparticle", [2] = "bullethole", [3] = LocalPlayer.Character.Head, [4] = Vec3(0,0,0)})
  5091. end
  5092. end
  5093. local Root = LocalPlayer.Character.HumanoidRootPart
  5094. if values.misc.client["infinite crouch"].Toggle then
  5095. Client.crouchcooldown = 0
  5096. end
  5097. if TBLFIND(values.misc.client["gun modifiers"].Jumbobox, "firerate") then
  5098. Client.DISABLED = false
  5099. end
  5100. if values.rage.exploits["kill all"].Toggle and values.rage.exploits["kill all"].Active and LocalPlayer.Character:FindFirstChild("UpperTorso") and LocalPlayer.Character:FindFirstChild("Gun") then
  5101. for _,Player in pairs(Players:GetPlayers()) do
  5102. if Player.Character and Player.Team ~= LocalPlayer.Team and Player.Character:FindFirstChild("UpperTorso") then
  5103. local oh1 = Player.Character.Head
  5104. local oh2 = Player.Character.Head.CFrame.p
  5105. local oh3 = Client.gun.Name
  5106. local oh4 = 4096
  5107. local oh5 = LocalPlayer.Character.Gun
  5108. local oh8 = 15
  5109. local oh9 = false
  5110. local oh10 = false
  5111. local oh11 = Vec3(0,0,0)
  5112. local oh12 = 16868
  5113. local oh13 = Vec3(0, 0, 0)
  5114. game:GetService("ReplicatedStorage").Events.HitPart:FireServer(oh1, oh2, oh3, oh4, oh5, oh6, oh7, oh8, oh9, oh10, oh11, oh12, oh13)
  5115. end
  5116. end
  5117. end
  5118. if TBLFIND(values.visuals.effects.removals.Jumbobox, "scope lines") then
  5119. NewScope.Enabled = LocalPlayer.Character:FindFirstChild("AIMING") and true or false
  5120. Crosshairs.Scope.Visible = false
  5121. else
  5122. NewScope.Enabled = false
  5123. end
  5124. local RageGuy
  5125. if workspace:FindFirstChild("Map") and Client.gun ~= "none" and Client.gun.Name ~= "C4" then
  5126. if values.rage.aimbot.enabled.Toggle then
  5127. local Origin = values.rage.aimbot.origin.Dropdown == "character" and LocalPlayer.Character.LowerTorso.Position + Vec3(0, 2.5, 0) or CamCFrame.p
  5128. local Stats = GetStatsRage(GetWeaponRage(Client.gun.Name))
  5129. for _,Player in pairs(Players:GetPlayers()) do
  5130. if TBLFIND(values.misc.client["gun modifiers"].Jumbobox, "firerate") then
  5131. Client.DISABLED = false
  5132. end
  5133. if Player.Character and Player.Character:FindFirstChild("Humanoid") and Player.Character:FindFirstChild("Humanoid").Health > 0 and Player.Team ~= "TTT" and Player ~= LocalPlayer then
  5134. if TBLFIND(values.rage.aimbot.resolver.Jumbobox, "pitch") then
  5135. Player.Character.UpperTorso.Waist.C0 = CFAngles(0, 0, 0)
  5136. end
  5137. if TBLFIND(values.rage.aimbot.resolver.Jumbobox, "roll") then
  5138. Player.Character.Humanoid.MaxSlopeAngle = 0
  5139. end
  5140. end
  5141. if Player.Character and Player.Character:FindFirstChild("Humanoid") and not Client.DISABLED and Player.Character:FindFirstChild("Humanoid").Health > 0 and Player.Team ~= "TTT" and not Player.Character:FindFirstChildOfClass("ForceField") and GetDeg(CamCFrame, Player.Character.Head.Position) <= Stats["max fov"].Slider and Player ~= LocalPlayer then
  5142. if Player.Team ~= LocalPlayer.Team or values.rage.aimbot.teammates.Toggle and Player:FindFirstChild("Status") and Player.Status.Team.Value ~= LocalPlayer.Status.Team.Value and Player.Status.Alive.Value then
  5143. if Client.gun:FindFirstChild("Melee") and values.rage.aimbot["knifebot"].Toggle then
  5144. local Ignore = {unpack(Collision)}
  5145. INSERT(Ignore, workspace.Map.Clips)
  5146. INSERT(Ignore, workspace.Map.SpawnPoints)
  5147. INSERT(Ignore, LocalPlayer.Character)
  5148. INSERT(Ignore, Player.Character.HumanoidRootPart)
  5149. if Player.Character:FindFirstChild("BackC4") then
  5150. INSERT(Ignore, Player.Character.BackC4)
  5151. end
  5152. if Player.Character:FindFirstChild("Gun") then
  5153. INSERT(Ignore, Player.Character.Gun)
  5154. end
  5155. local Ray = RAY(Origin, (Player.Character.Head.Position - Origin).unit * 20)
  5156. local Hit, Pos = workspace:FindPartOnRayWithIgnoreList(Ray, Ignore, false, true)
  5157. if Hit and Hit.Parent == Player.Character then
  5158. RageGuy = Hit
  5159. RageTarget = Hit
  5160. if not values.rage.aimbot["silent aim"].Toggle then
  5161. Camera.CFrame = CF(CamCFrame.Position, Hit.Position)
  5162. end
  5163. Filter = true
  5164. Client.firebullet()
  5165. Filter = false
  5166. local Arguments = {
  5167. [1] = Hit,
  5168. [2] = Hit.Position,
  5169. [3] = Client.gun.Name,
  5170. [4] = 4096,
  5171. [5] = LocalPlayer.Character.Gun,
  5172. [8] = 1,
  5173. [9] = false,
  5174. [10] = false,
  5175. [11] = Vec3(),
  5176. [12] = 16868,
  5177. [13] = Vec3()
  5178. }
  5179. game.ReplicatedStorage.Events.HitPart:FireServer(unpack(Arguments))
  5180. end
  5181. else
  5182. local Ignore = {unpack(Collision)}
  5183. INSERT(Ignore, workspace.Map.Clips)
  5184. INSERT(Ignore, workspace.Map.SpawnPoints)
  5185. INSERT(Ignore, LocalPlayer.Character)
  5186. INSERT(Ignore, Player.Character.HumanoidRootPart)
  5187. if Player.Character:FindFirstChild("BackC4") then
  5188. INSERT(Ignore, Player.Character.BackC4)
  5189. end
  5190. if Player.Character:FindFirstChild("Gun") then
  5191. INSERT(Ignore, Player.Character.Gun)
  5192. end
  5193. local Hitboxes = {}
  5194. for _,Hitbox in ipairs(Stats.hitboxes.Jumbobox) do
  5195. if Stats["prefer body"].Toggle then
  5196. if Hitbox == "head" and (not values.rage.aimbot["auto baim"].Toggle or Player.Character:FindFirstChild("FakeHead")) then
  5197. INSERT(Hitboxes, Player.Character.Head)
  5198. elseif Hitbox == "torso" then
  5199. INSERT(Hitboxes, Player.Character.UpperTorso)
  5200. else
  5201. INSERT(Hitboxes, Player.Character.LowerTorso)
  5202. end
  5203. else
  5204. if Hitbox == "torso" then
  5205. INSERT(Hitboxes, Player.Character.UpperTorso)
  5206. elseif Hitbox == "pelvis" then
  5207. INSERT(Hitboxes, Player.Character.LowerTorso)
  5208. elseif not values.rage.aimbot["auto baim"].Toggle or Player.Character:FindFirstChild("FakeHead") then
  5209. INSERT(Hitboxes, Player.Character.Head)
  5210. end
  5211. end
  5212. end
  5213. for _,Hitbox in ipairs(Hitboxes) do
  5214. local Ignore2 = {unpack(Ignore)}
  5215. for _,Part in pairs(Player.Character:GetChildren()) do
  5216. if Part ~= Hitbox then INSERT(Ignore2, Part) end
  5217. end
  5218. if values.rage.aimbot["automatic penetration"].Toggle then
  5219. local Hits = {}
  5220. local EndHit, Hit, Pos
  5221. local Penetration = Client.gun.Penetration.Value * 0.01
  5222. local Ray1 = RAY(Origin, (Hitbox.Position - Origin).unit * (Hitbox.Position - Origin).magnitude)
  5223. repeat
  5224. Hit, Pos = workspace:FindPartOnRayWithIgnoreList(Ray1, Ignore2, false, true)
  5225. if Hit ~= nil and Hit.Parent ~= nil then
  5226. if Hit and Multipliers[Hit.Name] ~= nil then
  5227. EndHit = Hit
  5228. else
  5229. INSERT(Ignore2, Hit)
  5230. INSERT(Hits, {["Position"] = Pos,["Hit"] = Hit})
  5231. end
  5232. end
  5233. until EndHit ~= nil or #Hits >= 4 or Hit == nil
  5234. if EndHit ~= nil and Multipliers[EndHit.Name] ~= nil and #Hits <= 4 then
  5235. if #Hits == 0 then
  5236. local Damage = Client.gun.DMG.Value * Multipliers[EndHit.Name]
  5237. if Player:FindFirstChild("Kevlar") then
  5238. if FIND(EndHit.Name, "Head") then
  5239. if Player:FindFirstChild("Helmet") then
  5240. Damage = (Damage / 100) * Client.gun.ArmorPenetration.Value
  5241. end
  5242. else
  5243. Damage = (Damage / 100) * Client.gun.ArmorPenetration.Value
  5244. end
  5245. end
  5246. Damage = Damage * (Client.gun.RangeModifier.Value/100 ^ ((Origin - EndHit.Position).Magnitude/500))/100
  5247. if Damage >= Stats["minimum damage"].Slider then
  5248. RageGuy = EndHit
  5249. RageTarget = EndHit
  5250. if not values.rage.aimbot["silent aim"].Toggle then
  5251. Camera.CFrame = CF(CamCFrame.Position, EndHit.Position)
  5252. end
  5253. Filter = true
  5254. if values.rage.aimbot["automatic fire"].Dropdown == "standard" then
  5255. Client.firebullet()
  5256. if values.rage.exploits["double tap"].Toggle and values.rage.exploits["double tap"].Active then
  5257. Client.firebullet()
  5258. end
  5259. elseif values.rage.aimbot["automatic fire"].Dropdown == "hitpart" then
  5260. Client.firebullet()
  5261. local Arguments = {
  5262. [1] = EndHit,
  5263. [2] = EndHit.Position,
  5264. [3] = LocalPlayer.Character.EquippedTool.Value,
  5265. [4] = 100,
  5266. [5] = LocalPlayer.Character.Gun,
  5267. [8] = 1,
  5268. [9] = false,
  5269. [10] = false,
  5270. [11] = Vec3(),
  5271. [12] = 100,
  5272. [13] = Vec3()
  5273. }
  5274. game.ReplicatedStorage.Events.HitPart:FireServer(unpack(Arguments))
  5275. if values.rage.exploits["double tap"].Toggle and values.rage.exploits["double tap"].Active then
  5276. Client.firebullet()
  5277. local Arguments = {
  5278. [1] = EndHit,
  5279. [2] = EndHit.Position,
  5280. [3] = LocalPlayer.Character.EquippedTool.Value,
  5281. [4] = 100,
  5282. [5] = LocalPlayer.Character.Gun,
  5283. [8] = 1,
  5284. [9] = false,
  5285. [10] = false,
  5286. [11] = Vec3(),
  5287. [12] = 100,
  5288. [13] = Vec3()
  5289. }
  5290. game.ReplicatedStorage.Events.HitPart:FireServer(unpack(Arguments))
  5291. end
  5292. end
  5293. Filter = false
  5294. break
  5295. end
  5296. else
  5297. local penetration = Client.gun.Penetration.Value * 0.01
  5298. local limit = 0
  5299. local dmgmodifier = 1
  5300. for i = 1, #Hits do
  5301. local data = Hits[i]
  5302. local part = data["Hit"]
  5303. local pos = data["Position"]
  5304. local modifier = 1
  5305. if part.Material == Enum.Material.DiamondPlate then
  5306. modifier = 3
  5307. end
  5308. if part.Material == Enum.Material.CorrodedMetal or part.Material == Enum.Material.Metal or part.Material == Enum.Material.Concrete or part.Material == Enum.Material.Brick then
  5309. modifier = 2
  5310. end
  5311. if part.Name == "Grate" or part.Material == Enum.Material.Wood or part.Material == Enum.Material.WoodPlanks then
  5312. modifier = 0.1
  5313. end
  5314. if part.Name == "nowallbang" then
  5315. modifier = 100
  5316. end
  5317. if part:FindFirstChild("PartModifier") then
  5318. modifier = part.PartModifier.Value
  5319. end
  5320. if part.Transparency == 1 or part.CanCollide == false or part.Name == "Glass" or part.Name == "Cardboard" then
  5321. modifier = 0
  5322. end
  5323. local direction = (Hitbox.Position - pos).unit * CLAMP(Client.gun.Range.Value, 1, 100)
  5324. local ray = RAY(pos + direction * 1, direction * -2)
  5325. local _,endpos = workspace:FindPartOnRayWithWhitelist(ray, {part}, true)
  5326. local thickness = (endpos - pos).Magnitude
  5327. thickness = thickness * modifier
  5328. limit = MIN(penetration, limit + thickness)
  5329. dmgmodifier = 1 - limit / penetration
  5330. end
  5331. local Damage = Client.gun.DMG.Value * Multipliers[EndHit.Name] * dmgmodifier
  5332. if Player:FindFirstChild("Kevlar") then
  5333. if FIND(EndHit.Name, "Head") then
  5334. if Player:FindFirstChild("Helmet") then
  5335. Damage = (Damage / 100) * Client.gun.ArmorPenetration.Value
  5336. end
  5337. else
  5338. Damage = (Damage / 100) * Client.gun.ArmorPenetration.Value
  5339. end
  5340. end
  5341. Damage = Damage * (Client.gun.RangeModifier.Value/100 ^ ((Origin - EndHit.Position).Magnitude/500))/100
  5342. if Damage >= Stats["minimum damage"].Slider then
  5343. RageGuy = EndHit
  5344. RageTarget = EndHit
  5345. if not values.rage.aimbot["silent aim"].Toggle then
  5346. Camera.CFrame = CF(CamCFrame.Position, EndHit.Position)
  5347. end
  5348. Filter = true
  5349. if values.rage.aimbot["automatic fire"].Dropdown == "standard" then
  5350. Client.firebullet()
  5351. if values.rage.exploits["double tap"].Toggle and values.rage.exploits["double tap"].Active then
  5352. Client.firebullet()
  5353. end
  5354. elseif values.rage.aimbot["automatic fire"].Dropdown == "hitpart" then
  5355. Client.firebullet()
  5356. local Arguments = {
  5357. [1] = EndHit,
  5358. [2] = EndHit.Position,
  5359. [3] = LocalPlayer.Character.EquippedTool.Value,
  5360. [4] = 100,
  5361. [5] = LocalPlayer.Character.Gun,
  5362. [8] = 1,
  5363. [9] = false,
  5364. [10] = false,
  5365. [11] = Vec3(),
  5366. [12] = 100,
  5367. [13] = Vec3()
  5368. }
  5369. game.ReplicatedStorage.Events.HitPart:FireServer(unpack(Arguments))
  5370. if values.rage.exploits["double tap"].Toggle and values.rage.exploits["double tap"].Active then
  5371. Client.firebullet()
  5372. local Arguments = {
  5373. [1] = EndHit,
  5374. [2] = EndHit.Position,
  5375. [3] = LocalPlayer.Character.EquippedTool.Value,
  5376. [4] = 100,
  5377. [5] = LocalPlayer.Character.Gun,
  5378. [8] = 1,
  5379. [9] = false,
  5380. [10] = false,
  5381. [11] = Vec3(),
  5382. [12] = 100,
  5383. [13] = Vec3()
  5384. }
  5385. game.ReplicatedStorage.Events.HitPart:FireServer(unpack(Arguments))
  5386. end
  5387. end
  5388. Filter = false
  5389. break
  5390. end
  5391. end
  5392. end
  5393. else
  5394. local Ray = RAY(Origin, (Hitbox.Position - Origin).unit * (Hitbox.Position - Origin).magnitude)
  5395. local Hit, Pos = workspace:FindPartOnRayWithIgnoreList(Ray, Ignore2, false, true)
  5396. if Hit and Multipliers[Hit.Name] ~= nil then
  5397. local Damage = Client.gun.DMG.Value * Multipliers[Hit.Name]
  5398. if Player:FindFirstChild("Kevlar") then
  5399. if FIND(Hit.Name, "Head") then
  5400. if Player:FindFirstChild("Helmet") then
  5401. Damage = (Damage / 100) * Client.gun.ArmorPenetration.Value
  5402. end
  5403. else
  5404. Damage = (Damage / 100) * Client.gun.ArmorPenetration.Value
  5405. end
  5406. end
  5407. Damage = Damage * (Client.gun.RangeModifier.Value/100 ^ ((Origin - Hit.Position).Magnitude/500))
  5408. if Damage >= Stats["minimum damage"].Slider then
  5409. RageGuy = Hit
  5410. RageTarget = Hit
  5411. if not values.rage.aimbot["silent aim"].Toggle then
  5412. Camera.CFrame = CF(CamCFrame.Position, Hit.Position)
  5413. end
  5414. Filter = true
  5415. if values.rage.aimbot["automatic fire"].Dropdown == "standard" then
  5416. Client.firebullet()
  5417. if values.rage.exploits["double tap"].Toggle and values.rage.exploits["double tap"].Active then
  5418. Client.firebullet()
  5419. end
  5420. elseif values.rage.aimbot["automatic fire"].Dropdown == "hitpart" then
  5421. Client.firebullet()
  5422. local Arguments = {
  5423. [1] = EndHit,
  5424. [2] = EndHit.Position,
  5425. [3] = LocalPlayer.Character.EquippedTool.Value,
  5426. [4] = 100,
  5427. [5] = LocalPlayer.Character.Gun,
  5428. [8] = 1,
  5429. [9] = false,
  5430. [10] = false,
  5431. [11] = Vec3(),
  5432. [12] = 100,
  5433. [13] = Vec3()
  5434. }
  5435. game.ReplicatedStorage.Events.HitPart:FireServer(unpack(Arguments))
  5436. if values.rage.exploits["double tap"].Toggle and values.rage.exploits["double tap"].Active then
  5437. Client.firebullet()
  5438. local Arguments = {
  5439. [1] = EndHit,
  5440. [2] = EndHit.Position,
  5441. [3] = LocalPlayer.Character.EquippedTool.Value,
  5442. [4] = 100,
  5443. [5] = LocalPlayer.Character.Gun,
  5444. [8] = 1,
  5445. [9] = false,
  5446. [10] = false,
  5447. [11] = Vec3(),
  5448. [12] = 100,
  5449. [13] = Vec3()
  5450. }
  5451. game.ReplicatedStorage.Events.HitPart:FireServer(unpack(Arguments))
  5452. end
  5453. end
  5454. Filter = false
  5455. break
  5456. end
  5457. end
  5458. end
  5459. end
  5460. end
  5461. end
  5462. end
  5463. end
  5464. elseif values.legit.aimbot["aim assist"].Toggle and values.legit.aimbot["aim assist"].Active and not library.uiopen then
  5465. local Stats = GetStatsLegit(GetWeaponLegit(Client.gun.Name))
  5466. local Ignore = {LocalPlayer.Character, Camera, workspace.Map.Clips, workspace.Map.SpawnPoints, workspace.Debris}
  5467. local Closest = 9999
  5468. local Target
  5469. Fov.Radius = Stats["field of view"].Slider
  5470. Fov.Visible = values.legit.settings["draw fov"].Toggle
  5471. Fov.Color = values.legit.settings["draw fov"].Color
  5472. if not TBLFIND(Stats.conditions.Jumbobox, "smoke") then
  5473. INSERT(Ignore, workspace.Ray_Ignore)
  5474. end
  5475. if not TBLFIND(Stats.conditions.Jumbobox, "blind") or LocalPlayer.PlayerGui.Blnd.Blind.BackgroundTransparency > 0.9 then
  5476. if not TBLFIND(Stats.conditions.Jumbobox, "standing") or SelfVelocity.Magnitude < 3 then
  5477. for _,Player in pairs(Players:GetPlayers()) do
  5478. if Player.Character and Player.Character:FindFirstChild("Humanoid") and Player.Character:FindFirstChild("Humanoid").Health > 0 then
  5479. if not values.legit.settings["forcefield check"].Toggle or not Player.Character:FindFirstChildOfClass("ForceField") then
  5480. if Player.Team ~= LocalPlayer.Team or values.legit.settings["free for all"].Toggle then
  5481. local Pos, onScreen = Camera:WorldToViewportPoint(Player.Character.HumanoidRootPart.Position)
  5482. if onScreen then
  5483. local Magnitude = (Vec2(Pos.X, Pos.Y) - Vec2(Mouse.X, Mouse.Y)).Magnitude
  5484. if Magnitude < Stats["field of view"].Slider then
  5485. local Hitbox = Stats.hitbox.Dropdown == "head" and Player.Character.Head or Stats.hitbox.Dropdown == "chest" and Player.Character.UpperTorso
  5486. if Stats.hitbox.Dropdown == "closest" then
  5487. local HeadPos = Camera:WorldToViewportPoint(Player.Character.Head.Position)
  5488. local TorsoPos = Camera:WorldToViewportPoint(Player.Character.UpperTorso.Position)
  5489. local HeadDistance = (Vec2(HeadPos.X, HeadPos.Y) - Vec2(Mouse.X, Mouse.Y)).Magnitude
  5490. local TorsoDistance = (Vec2(TorsoPos.X, TorsoPos.Y) - Vec2(Mouse.X, Mouse.Y)).Magnitude
  5491. if HeadDistance < TorsoDistance then
  5492. Hitbox = Player.Character.Head
  5493. else
  5494. Hitbox = Player.Character.UpperTorso
  5495. end
  5496. end
  5497. if Hitbox ~= nil then
  5498. if not TBLFIND(Stats.conditions.Jumbobox, "visible") then
  5499. Target = Hitbox
  5500. else
  5501. local Ray1 = RAY(Camera.CFrame.Position, (Hitbox.Position - Camera.CFrame.Position).unit * (Hitbox.Position - Camera.CFrame.Position).magnitude)
  5502. local Hit, Pos = workspace:FindPartOnRayWithIgnoreList(Ray1, Ignore, false, true)
  5503. if Hit and Hit:FindFirstAncestor(Player.Name) then
  5504. Target = Hitbox
  5505. end
  5506. end
  5507. end
  5508. end
  5509. end
  5510. end
  5511. end
  5512. end
  5513. end
  5514. end
  5515. end
  5516. if Target ~= nil then
  5517. local Pos = Camera:WorldToScreenPoint(Target.Position)
  5518. local Magnitude = Vec2(Pos.X - Mouse.X, Pos.Y - Mouse.Y)
  5519. mousemoverel(Magnitude.x/Stats.smoothing.Slider, Magnitude.y/Stats.smoothing.Slider)
  5520. end
  5521. end
  5522. if not values.rage.aimbot.enabled.Toggle and values.legit.aimbot["triggerbot"].Toggle and values.legit.aimbot["triggerbot"].Active and not TriggerDebounce then
  5523. local Stats = GetStatsLegit(GetWeaponLegit(Client.gun.Name))
  5524. if Stats.triggerbot.Toggle then
  5525. if not TBLFIND(Stats.conditions.Jumbobox, "blind") or LocalPlayer.PlayerGui.Blnd.Blind.BackgroundTransparency > 0.9 then
  5526. if not TBLFIND(Stats.conditions.Jumbobox, "standing") or SelfVelocity.Magnitude < 3 then
  5527. if Mouse.Target and Mouse.Target.Parent and Players:GetPlayerFromCharacter(Mouse.Target.Parent) and Multipliers[Mouse.Target.Name] ~= nil and Client.gun.DMG.Value * Multipliers[Mouse.Target.Name] >= Stats["minimum dmg"].Slider then
  5528. local OldTarget = Mouse.Target
  5529. local Player = Players:GetPlayerFromCharacter(Mouse.Target.Parent)
  5530. if Player.Team ~= LocalPlayer.Team or values.legit.settings["free for all"].Toggle then
  5531. coroutine.wrap(function()
  5532. TriggerDebounce = true
  5533. wait(Stats["delay (ms)"].Slider/1000)
  5534. repeat RunService.RenderStepped:Wait()
  5535. if not Client.DISABLED then
  5536. Client.firebullet()
  5537. end
  5538. until Mouse.Target == nil or Player ~= Players:GetPlayerFromCharacter(Mouse.Target.Parent)
  5539. TriggerDebounce = false
  5540. end)()
  5541. end
  5542. end
  5543. end
  5544. end
  5545. end
  5546. end
  5547. end
  5548. BodyVelocity:Destroy()
  5549. BodyVelocity = INST("BodyVelocity")
  5550. BodyVelocity.MaxForce = Vec3(HUGE,0,HUGE)
  5551. if UserInputService:IsKeyDown("Space") and values.misc.movement["bunny hop"].Toggle then
  5552. local add = 0
  5553. if values.misc.movement.direction.Dropdown == "directional" or values.misc.movement.direction.Dropdown == "directional 2" then
  5554. if UserInputService:IsKeyDown("A") then add = 90 end
  5555. if UserInputService:IsKeyDown("S") then add = 180 end
  5556. if UserInputService:IsKeyDown("D") then add = 270 end
  5557. if UserInputService:IsKeyDown("A") and UserInputService:IsKeyDown("W") then add = 45 end
  5558. if UserInputService:IsKeyDown("D") and UserInputService:IsKeyDown("W") then add = 315 end
  5559. if UserInputService:IsKeyDown("D") and UserInputService:IsKeyDown("S") then add = 225 end
  5560. if UserInputService:IsKeyDown("A") and UserInputService:IsKeyDown("S") then add = 145 end
  5561. end
  5562. local rot = YROTATION(CamCFrame) * CFAngles(0,RAD(add),0)
  5563. BodyVelocity.Parent = LocalPlayer.Character.UpperTorso
  5564. LocalPlayer.Character.Humanoid.Jump = true
  5565. BodyVelocity.Velocity = Vec3(rot.LookVector.X,0,rot.LookVector.Z) * (values.misc.movement["speed"].Slider * 2)
  5566. if add == 0 and values.misc.movement.direction.Dropdown == "directional" and not UserInputService:IsKeyDown("W") then
  5567. BodyVelocity:Destroy()
  5568. else
  5569. if values.misc.movement.type.Dropdown == "cframe" then
  5570. BodyVelocity:Destroy()
  5571. Root.CFrame = Root.CFrame + Vec3(rot.LookVector.X,0,rot.LookVector.Z) * values.misc.movement["speed"].Slider/50
  5572. end
  5573. end
  5574. end
  5575. if values.misc.movement["edge jump"].Toggle and values.misc.movement["edge jump"].Active then
  5576. if LocalPlayer.Character.Humanoid:GetState() ~= Enum.HumanoidStateType.Freefall and LocalPlayer.Character.Humanoid:GetState() ~= Enum.HumanoidStateType.Jumping then
  5577. coroutine.wrap(function()
  5578. RunService.RenderStepped:Wait()
  5579. if LocalPlayer.Character ~= nil and LocalPlayer.Character:FindFirstChild("Humanoid") and LocalPlayer.Character.Humanoid:GetState() == Enum.HumanoidStateType.Freefall and LocalPlayer.Character.Humanoid:GetState() ~= Enum.HumanoidStateType.Jumping then
  5580. LocalPlayer.Character.Humanoid:ChangeState("Jumping")
  5581. end
  5582. end)()
  5583. end
  5584. end
  5585. Jitter = not Jitter
  5586. LocalPlayer.Character.Humanoid.AutoRotate = false
  5587. if values.rage.angles.enabled.Toggle and not DisableAA then
  5588. local Angle = -ATAN2(CamLook.Z, CamLook.X) + RAD(-90)
  5589. if values.rage.angles["yaw base"].Dropdown == "spin" then
  5590. Angle = Angle + RAD(Spin)
  5591. end
  5592. if values.rage.angles["yaw base"].Dropdown == "random" then
  5593. Angle = Angle + RAD(RANDOM(0, 360))
  5594. end
  5595. local Offset = RAD(-values.rage.angles["yaw offset"].Slider - (values.rage.angles.jitter.Toggle and Jitter and values.rage.angles["jitter offset"].Slider or 0))
  5596. local CFramePos = CF(Root.Position) * CFAngles(0, Angle + Offset, 0)
  5597. if values.rage.angles["yaw base"].Dropdown == "targets" then
  5598. local part
  5599. local closest = 9999
  5600. for _,plr in pairs(Players:GetPlayers()) do
  5601. if plr.Character and plr.Character:FindFirstChild("Humanoid") and plr.Character:FindFirstChild("Humanoid").Health > 0 and plr.Team ~= LocalPlayer.Team then
  5602. local pos, onScreen = Camera:WorldToViewportPoint(plr.Character.HumanoidRootPart.Position)
  5603. local magnitude = (Vec2(pos.X, pos.Y) - Vec2(Mouse.X, Mouse.Y)).Magnitude
  5604. if closest > magnitude then
  5605. part = plr.Character.HumanoidRootPart
  5606. closest = magnitude
  5607. end
  5608. end
  5609. end
  5610. if part ~= nil then
  5611. CFramePos = CF(Root.Position, part.Position) * CFAngles(0, Offset, 0)
  5612. end
  5613. end
  5614. Root.CFrame = YROTATION(CFramePos)
  5615. if values.rage.angles["body roll"].Dropdown == "180" then
  5616. Root.CFrame = Root.CFrame * CFAngles(values.rage.angles["body roll"].Dropdown == "180" and RAD(180) or 0, 1, 0)
  5617. LocalPlayer.Character.Humanoid.HipHeight = 4
  5618. else
  5619. LocalPlayer.Character.Humanoid.HipHeight = 2
  5620. end
  5621. local Pitch = values.rage.angles["pitch"].Dropdown == "none" and CamLook.Y or values.rage.angles["pitch"].Dropdown == "up" and 1 or values.rage.angles["pitch"].Dropdown == "down" and -1 or values.rage.angles["pitch"].Dropdown == "zero" and 0 or values.rage.angles["pitch"].Dropdown == "random" and RANDOM(-10, 10)/10 or 2.5
  5622. if values.rage.angles["extend pitch"].Toggle and (values.rage.angles["pitch"].Dropdown == "up" or values.rage.angles["pitch"].Dropdown == "down") then
  5623. Pitch = (Pitch*2)/1.6
  5624. end
  5625. game.ReplicatedStorage.Events.ControlTurn:FireServer(Pitch, LocalPlayer.Character:FindFirstChild("Climbing") and true or false)
  5626. else
  5627. LocalPlayer.Character.Humanoid.HipHeight = 2
  5628. Root.CFrame = CF(Root.Position) * CFAngles(0, -ATAN2(CamLook.Z, CamLook.X) + RAD(270), 0)
  5629. game.ReplicatedStorage.Events.ControlTurn:FireServer(CamLook.Y, LocalPlayer.Character:FindFirstChild("Climbing") and true or false)
  5630. end
  5631. if values.rage.others["remove head"].Toggle then
  5632. if LocalPlayer.Character:FindFirstChild("FakeHead") then
  5633. LocalPlayer.Character.FakeHead:Destroy()
  5634. end
  5635. if LocalPlayer.Character:FindFirstChild("HeadHB") then
  5636. LocalPlayer.Character.HeadHB:Destroy()
  5637. end
  5638. end
  5639. if TBLFIND(values.misc.client["gun modifiers"].Jumbobox, "recoil") then
  5640. Client.resetaccuracy()
  5641. Client.RecoilX = 0
  5642. Client.RecoilY = 0
  5643. end
  5644. end
  5645. for _,Player in pairs(Players:GetPlayers()) do
  5646. if Player.Character and Player ~= LocalPlayer and Player.Character:FindFirstChild("HumanoidRootPart") and Player.Character.HumanoidRootPart:FindFirstChild("OldPosition") then
  5647. coroutine.wrap(function()
  5648. local Position = Player.Character.HumanoidRootPart.Position
  5649. RunService.RenderStepped:Wait()
  5650. if Player.Character and Player ~= LocalPlayer and Player.Character:FindFirstChild("HumanoidRootPart") then
  5651. if Player.Character.HumanoidRootPart:FindFirstChild("OldPosition") then
  5652. Player.Character.HumanoidRootPart.OldPosition.Value = Position
  5653. else
  5654. local Value = INST("Vector3Value")
  5655. Value.Name = "OldPosition"
  5656. Value.Value = Position
  5657. Value.Parent = Player.Character.HumanoidRootPart
  5658. end
  5659. end
  5660. end)()
  5661. end
  5662. end
  5663. for _,Player in pairs(Players:GetPlayers()) do
  5664. local tbl = objects[Player]
  5665. if tbl == nil then return end
  5666. if Player.Character and Player.Character:FindFirstChild("HumanoidRootPart") and Player.Team ~= "TTT" and (Player.Team ~= LocalPlayer.Team or values.visuals.players.teammates.Toggle) and Player.Character:FindFirstChild("Gun") and Player.Character:FindFirstChild("Humanoid") and Player ~= LocalPlayer then
  5667. local HumanoidRootPart = Player.Character.HumanoidRootPart
  5668. local RootPosition = HumanoidRootPart.Position
  5669. local Pos, OnScreen = Camera:WorldToViewportPoint(RootPosition)
  5670. local Size = (Camera:WorldToViewportPoint(RootPosition - Vec3(0, 3, 0)).Y - Camera:WorldToViewportPoint(RootPosition + Vec3(0, 2.6, 0)).Y) / 2
  5671. local Drawings, Text = TBLFIND(values.visuals.players.outlines.Jumbobox, "drawings") ~= nil, TBLFIND(values.visuals.players.outlines.Jumbobox, "text") ~= nil
  5672. tbl.Box.Color = values.visuals.players.box.Color
  5673. tbl.Box.Size = Vec2(Size * 1.5, Size * 1.9)
  5674. tbl.Box.Position = Vec2(Pos.X - Size*1.5 / 2, (Pos.Y - Size*1.6 / 2))
  5675. if values.visuals.players.box.Toggle then
  5676. tbl.Box.Visible = OnScreen
  5677. if Drawings then
  5678. tbl.BoxOutline.Size = tbl.Box.Size
  5679. tbl.BoxOutline.Position = tbl.Box.Position
  5680. tbl.BoxOutline.Visible = OnScreen
  5681. else
  5682. tbl.BoxOutline.Visible = false
  5683. end
  5684. else
  5685. tbl.Box.Visible = false
  5686. tbl.BoxOutline.Visible = false
  5687. end
  5688. if values.visuals.players.health.Toggle then
  5689. tbl.Health.Color = COL3(0,1,0)
  5690. tbl.Health.From = Vec2((tbl.Box.Position.X - 5), tbl.Box.Position.Y + tbl.Box.Size.Y)
  5691. tbl.Health.To = Vec2(tbl.Health.From.X, tbl.Health.From.Y - CLAMP(Player.Character.Humanoid.Health / Player.Character.Humanoid.MaxHealth, 0, 1) * tbl.Box.Size.Y)
  5692. tbl.Health.Visible = OnScreen
  5693. if Drawings then
  5694. tbl.HealthOutline.From = Vec2(tbl.Health.From.X, tbl.Box.Position.Y + tbl.Box.Size.Y + 1)
  5695. tbl.HealthOutline.To = Vec2(tbl.Health.From.X, (tbl.Health.From.Y - 1 * tbl.Box.Size.Y) -1)
  5696. tbl.HealthOutline.Visible = OnScreen
  5697. else
  5698. tbl.HealthOutline.Visible = false
  5699. end
  5700. else
  5701. tbl.Health.Visible = false
  5702. tbl.HealthOutline.Visible = false
  5703. end
  5704. if values.visuals.players.weapon.Toggle then
  5705. tbl.Weapon.Color = values.visuals.players.weapon.Color
  5706. tbl.Weapon.Text = Player.Character.EquippedTool.Value
  5707. tbl.Weapon.Position = Vec2(tbl.Box.Size.X/2 + tbl.Box.Position.X, tbl.Box.Size.Y + tbl.Box.Position.Y + 1)
  5708. tbl.Weapon.Font = Drawing.Fonts[values.visuals.players.font.Dropdown]
  5709. tbl.Weapon.Outline = Text
  5710. tbl.Weapon.Size = values.visuals.players.size.Slider
  5711. tbl.Weapon.Visible = OnScreen
  5712. else
  5713. tbl.Weapon.Visible = false
  5714. end
  5715. if values.visuals.players["weapon icon"].Toggle then
  5716. Items[Player.Name].ImageColor3 = values.visuals.players["weapon icon"].Color
  5717. Items[Player.Name].Image = GetIcon.getWeaponOfKiller(Player.Character.EquippedTool.Value)
  5718. Items[Player.Name].Position = UDIM2(0, tbl.Box.Size.X/2 + tbl.Box.Position.X, 0, tbl.Box.Size.Y + tbl.Box.Position.Y + (values.visuals.players.weapon.Toggle and -10 or -22))
  5719. Items[Player.Name].Visible = OnScreen
  5720. else
  5721. Items[Player.Name].Visible = false
  5722. end
  5723. if values.visuals.players.name.Toggle then
  5724. tbl.Name.Color = values.visuals.players.name.Color
  5725. tbl.Name.Text = Player.Name
  5726. tbl.Name.Position = Vec2(tbl.Box.Size.X/2 + tbl.Box.Position.X, tbl.Box.Position.Y - 16)
  5727. tbl.Name.Font = Drawing.Fonts[values.visuals.players.font.Dropdown]
  5728. tbl.Name.Outline = Text
  5729. tbl.Name.Size = values.visuals.players.size.Slider
  5730. tbl.Name.Visible = OnScreen
  5731. else
  5732. tbl.Name.Visible = false
  5733. end
  5734. local LastInfoPos = tbl.Box.Position.Y - 1
  5735. if TBLFIND(values.visuals.players.indicators.Jumbobox, "armor") and Player:FindFirstChild("Kevlar") then
  5736. tbl.Armor.Color = COL3RGB(0, 150, 255)
  5737. tbl.Armor.Text = Player:FindFirstChild("Helmet") and "HK" or "K"
  5738. tbl.Armor.Position = Vec2(tbl.Box.Size.X + tbl.Box.Position.X + 12, LastInfoPos)
  5739. tbl.Armor.Font = Drawing.Fonts[values.visuals.players.font.Dropdown]
  5740. tbl.Armor.Outline = Text
  5741. tbl.Armor.Size = values.visuals.players.size.Slider
  5742. tbl.Armor.Visible = OnScreen
  5743. LastInfoPos = LastInfoPos + values.visuals.players.size.Slider
  5744. else
  5745. tbl.Armor.Visible = false
  5746. end
  5747. else
  5748. if Player.Name ~= LocalPlayer.Name then
  5749. Items[Player.Name].Visible = false
  5750. for i,v in pairs(tbl) do
  5751. v.Visible = false
  5752. end
  5753. end
  5754. end
  5755. end
  5756. if (values.misc.ui.scaling.Toggle) then
  5757. gui:SetScale(values.misc.ui.amount.Slider / 10)
  5758. else
  5759. gui:SetScale(1)
  5760. end
  5761. end)
  5762. local mt = getrawmetatable(game)
  5763. local oldNamecall = mt.__namecall
  5764. local oldIndex = mt.__index
  5765. local oldNewIndex = mt.__newindex
  5766. setreadonly(mt,false)
  5767. mt.__namecall = function(self, ...)
  5768. local method = tostring(getnamecallmethod())
  5769. local args = {...}
  5770. if method == "SetPrimaryPartCFrame" and self.Name == "Arms" then
  5771. if values.visuals.self["third person"].Toggle and values.visuals.self["third person"].Active and LocalPlayer.Character then
  5772. args[1] = args[1] * CF(99, 99, 99)
  5773. else
  5774. if values.visuals.self["viewmodel changer"].Toggle then
  5775. args[1] = args[1] * ViewmodelOffset
  5776. end
  5777. end
  5778. end
  5779. if method == "SetPrimaryPartCFrame" and self.Name ~= "Arms" then
  5780. args[1] = args[1] + Vec3(0, 3, 0)
  5781. coroutine.wrap(function()
  5782. DisableAA = true
  5783. wait(2)
  5784. DisableAA = false
  5785. end)()
  5786. end
  5787. if method == "Kick" then
  5788. return
  5789. end
  5790. if method == "FireServer" then
  5791. if LEN(self.Name) == 38 then
  5792. return
  5793. elseif self.Name == "FallDamage" and TBLFIND(values.misc.client["damage bypass"].Jumbobox, "fall") or values.misc.movement["jump bug"].Toggle and values.misc.movement["jump bug"].Active then
  5794. return
  5795. elseif self.Name == "BURNME" and TBLFIND(values.misc.client["damage bypass"].Jumbobox, "fire") then
  5796. return
  5797. elseif self.Name == "ControlTurn" and not checkcaller() then
  5798. return
  5799. end
  5800. if self.Name == "PlayerChatted" and values.misc.client["chat alive"].Toggle then
  5801. args[2] = false
  5802. args[3] = "Innocent"
  5803. args[4] = false
  5804. args[5] = false
  5805. end
  5806. if self.Name == "ReplicateCamera" and values.misc.client["anti spectate"].Toggle then
  5807. args[1] = CF()
  5808. end
  5809. end
  5810. if method == "FindPartOnRayWithWhitelist" and not checkcaller() and Client.gun ~= "none" and Client.gun.Name ~= "C4" then
  5811. if #args[2] == 1 and args[2][1].Name == "SpawnPoints" then
  5812. local Team = LocalPlayer.Status.Team.Value
  5813. if TBLFIND(values.misc.client.shop.Jumbobox, "anywhere") then
  5814. return Team == "T" and args[2][1].BuyArea or args[2][1].BuyArea2
  5815. end
  5816. end
  5817. end
  5818. if method == "FindPartOnRayWithIgnoreList" and args[2][1] == workspace.Debris then
  5819. if not checkcaller() or Filter then
  5820. if TBLFIND(values.misc.client["gun modifiers"].Jumbobox, "penetration") then
  5821. INSERT(args[2], workspace.Map)
  5822. end
  5823. if TBLFIND(values.misc.client["gun modifiers"].Jumbobox, "spread") then
  5824. args[1] = RAY(Camera.CFrame.p, Camera.CFrame.LookVector * Client.gun.Range.Value)
  5825. end
  5826. local Stats = GetStatsLegit(GetWeaponLegit(Client.gun.Name))
  5827. if values.legit.aimbot["silent aim"].Toggle and values.legit.aimbot["silent aim"].Active and Stats["silent aim"].Toggle then
  5828. local Ignore = {LocalPlayer.Character, Camera, workspace.Map.Clips, workspace.Map.SpawnPoints, workspace.Debris}
  5829. local Closest = 9999
  5830. local Target
  5831. if not TBLFIND(Stats.conditions.Jumbobox, "smoke") then
  5832. INSERT(Ignore, workspace.Ray_Ignore)
  5833. end
  5834. coroutine.wrap(function()
  5835. if not TBLFIND(Stats.conditions.Jumbobox, "blind") or LocalPlayer.PlayerGui.Blnd.Blind.BackgroundTransparency > 0.9 then
  5836. if not TBLFIND(Stats.conditions.Jumbobox, "blind") or SelfVelocity.Magnitude < 3 then
  5837. for _,Player in pairs(Players:GetPlayers()) do
  5838. if Player.Character and Player.Character:FindFirstChild("Humanoid") and Player.Character:FindFirstChild("Humanoid").Health > 0 then
  5839. if not values.legit.settings["forcefield check"].Toggle or not Player.Character:FindFirstChildOfClass("ForceField") then
  5840. if Player.Team ~= LocalPlayer.Team or values.legit.settings["free for all"].Toggle then
  5841. local Pos, onScreen = Camera:WorldToViewportPoint(Player.Character.HumanoidRootPart.Position)
  5842. if onScreen then
  5843. local Magnitude = (Vec2(Pos.X, Pos.Y) - Vec2(Mouse.X, Mouse.Y)).Magnitude
  5844. if Magnitude < Stats["field of view"].Slider then
  5845. local Hitbox = Stats.priority.Dropdown == "head" and Player.Character.Head or Stats.priority.Dropdown == "chest" and Player.Character.UpperTorso
  5846. if Stats.priority.Dropdown == "closest" then
  5847. local HeadPos = Camera:WorldToViewportPoint(Player.Character.Head.Position)
  5848. local TorsoPos = Camera:WorldToViewportPoint(Player.Character.UpperTorso.Position)
  5849. local HeadDistance = (Vec2(HeadPos.X, HeadPos.Y) - Vec2(Mouse.X, Mouse.Y)).Magnitude
  5850. local TorsoDistance = (Vec2(TorsoPos.X, TorsoPos.Y) - Vec2(Mouse.X, Mouse.Y)).Magnitude
  5851. if HeadDistance < TorsoDistance then
  5852. Hitbox = Player.Character.Head
  5853. else
  5854. Hitbox = Player.Character.UpperTorso
  5855. end
  5856. end
  5857. if Hitbox ~= nil then
  5858. if not TBLFIND(Stats.conditions.Jumbobox, "visible") then
  5859. Target = Hitbox
  5860. else
  5861. local Ray1 = RAY(Camera.CFrame.Position, (Hitbox.Position - Camera.CFrame.Position).unit * (Hitbox.Position - Camera.CFrame.Position).magnitude)
  5862. local Hit, Pos = workspace:FindPartOnRayWithIgnoreList(Ray1, Ignore, false, true)
  5863. if Hit and Hit:FindFirstAncestor(Player.Name) then
  5864. Target = Hitbox
  5865. end
  5866. end
  5867. end
  5868. end
  5869. end
  5870. end
  5871. end
  5872. end
  5873. end
  5874. end
  5875. end
  5876. local Hit = RANDOM(1, 100) <= Stats.hitchance.Slider
  5877. if Target ~= nil and Hit then
  5878. args[1] = RAY(Camera.CFrame.Position, (Target.Position - Camera.CFrame.Position).unit * (Target.Position - Camera.CFrame.Position).magnitude)
  5879. end
  5880. end)()
  5881. end
  5882. if RageTarget ~= nil then
  5883. local Origin = values.rage.aimbot.origin.Dropdown == "character" and LocalPlayer.Character.LowerTorso.Position + Vec3(0, 2.5, 0) or Camera.CFrame.p
  5884. if values.rage.aimbot["delay shot"].Toggle then
  5885. spawn(function()
  5886. args[1] = RAY(Origin, (RageTarget.Position - Origin).unit * (RageTarget.Position - Origin).magnitude)
  5887. end)
  5888. else
  5889. args[1] = RAY(Origin, (RageTarget.Position - Origin).unit * (RageTarget.Position - Origin).magnitude)
  5890. end
  5891. end
  5892. end
  5893. end
  5894. if method == "InvokeServer" then
  5895. if self.Name == "Moolah" then
  5896. return
  5897. elseif self.Name == "Hugh" then
  5898. return
  5899. elseif self.Name == "Filter" and values.misc.chat["no filter"].Toggle then
  5900. return args[1]
  5901. end
  5902. end
  5903. if method == "LoadAnimation" and self.Name == "Humanoid" then
  5904. if values.rage.others["leg movement"].Dropdown == "slide" then
  5905. if FIND(args[1].Name, "Walk") or FIND(args[1].Name, "Run") then
  5906. args[1] = FakeAnim
  5907. end
  5908. end
  5909. if values.rage.others["no animations"].Toggle then
  5910. args[1] = FakeAnim
  5911. end
  5912. end
  5913. if method == "FireServer" and self.Name == "HitPart" then
  5914. if values.rage.aimbot["force hit"].Toggle then
  5915. args[1] = RageTarget
  5916. args[2] = RageTarget.Position
  5917. end
  5918. if (values.rage.aimbot["sex package"].Toggle and RageTarget ~= nil) then
  5919. coroutine.wrap(function()
  5920. if Players:GetPlayerFromCharacter(args[1].Parent) or args[1] == RageTarget then
  5921. local hrp = RageTarget.Parent.HumanoidRootPart.Position
  5922. local oldHrp = RageTarget.Parent.HumanoidRootPart.OldPosition.Value
  5923. local vel = (Vec3(hrp.X, 0, hrp.Z) - Vec3(oldHrp.X, 0, oldHrp.Z)) / LastStep
  5924. local dir = Vec3(vel.X / vel.magnitude, 0, vel.Z / vel.magnitude)
  5925. args[2] = args[2] + dir * (Ping / (POW(Ping, 1.5)) * (dir / (dir / 2)))
  5926. args[4] = 0
  5927. args[12] = args[12] - 500
  5928. end
  5929. end)()
  5930. end
  5931. if values.visuals.world["bullet tracers"].Toggle then
  5932. coroutine.wrap(function()
  5933. local beam = INST("Part")
  5934. beam.Anchored = true
  5935. beam.CanCollide = false
  5936. beam.Material = Enum.Material.ForceField
  5937. beam.Color = values.visuals.world["bullet tracers"].Color
  5938. beam.Size = Vec3(0.1, 0.1, (Camera.CFrame.Position - args[2]).Magnitude)
  5939. beam.CFrame = CF(Camera.CFrame.Position, args[2]) * CF(0, 0, -beam.Size.Z / 2)
  5940. beam.Parent = workspace.Debris
  5941. library:Tween(beam, TweenInfo.new(1.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Transparency = 1})
  5942. wait(1.5)
  5943. beam:Destroy()
  5944. end)()
  5945. end
  5946. if values.visuals.world["impacts"].Toggle then
  5947. coroutine.wrap(function()
  5948. local hit = INST("Part")
  5949. hit.Transparency = 1
  5950. hit.Anchored = true
  5951. hit.CanCollide = false
  5952. hit.Size = Vec3(0.3,0.3,0.3)
  5953. hit.Position = args[2]
  5954. local selection = INST("SelectionBox")
  5955. selection.LineThickness = 0
  5956. selection.SurfaceTransparency = 0.5
  5957. selection.Color3 = values.visuals.world["impacts"].Color
  5958. selection.SurfaceColor3 = values.visuals.world["impacts"].Color
  5959. selection.Parent = hit
  5960. selection.Adornee = hit
  5961. hit.Parent = workspace.Debris
  5962. wait(5.9)
  5963. library:Tween(selection, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {SurfaceTransparency = 1})
  5964. hit:Destroy()
  5965. end)()
  5966. if values.visuals.world["hit chams"].Toggle then
  5967. coroutine.wrap(function()
  5968. if Players:GetPlayerFromCharacter(args[1].Parent) and Players:GetPlayerFromCharacter(args[1].Parent).Team ~= LocalPlayer.Team then
  5969. for _,hitbox in pairs(args[1].Parent:GetChildren()) do
  5970. if hitbox:IsA("BasePart") or hitbox.Name == "Head" then
  5971. coroutine.wrap(function()
  5972. local part = INST("Part")
  5973. part.CFrame = hitbox.CFrame
  5974. part.Anchored = true
  5975. part.CanCollide = false
  5976. part.Material = Enum.Material.ForceField
  5977. part.Color = values.visuals.world["hit chams"].Color
  5978. part.Size = hitbox.Size
  5979. part.Parent = workspace.Debris
  5980. library:Tween(part, TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Transparency = 1})
  5981. wait(2)
  5982. part:Destroy()
  5983. end)()
  5984. end
  5985. end
  5986. end
  5987. end)()
  5988. end
  5989. end
  5990. end
  5991. return oldNamecall(self, unpack(args))
  5992. end
  5993. mt.__index = function(self, key)
  5994. local CallingScript = getcallingscript()
  5995. if not checkcaller() and self == Viewmodels and LocalPlayer.Character ~= nil and LocalPlayer.Character:FindFirstChild("UpperTorso") then
  5996. local WeaponName = GSUB(key, "v_", "")
  5997. if not FIND(WeaponName, "Arms") then
  5998. if Weapons[WeaponName]:FindFirstChild("Melee") and values.skins.knife["knife changer"].Toggle then
  5999. if Viewmodels:FindFirstChild("v_"..values.skins.knife.model.Scroll) then
  6000. return Viewmodels:FindFirstChild("v_"..values.skins.knife.model.Scroll)
  6001. else
  6002. local Clone = Models.Knives[values.skins.knife.model.Scroll]:Clone()
  6003. return Clone
  6004. end
  6005. end
  6006. end
  6007. end
  6008. if key == "Value" then
  6009. if self.Name == "Auto" and TBLFIND(values.misc.client["gun modifiers"].Jumbobox, "automatic") then
  6010. return true
  6011. elseif self.Name == "ReloadTime" and TBLFIND(values.misc.client["gun modifiers"].Jumbobox, "reload") then
  6012. return 0.001
  6013. elseif self.Name == "EquipTime" and TBLFIND(values.misc.client["gun modifiers"].Jumbobox, "equip") then
  6014. return 0.001
  6015. elseif self.Name == "BuyTime" and TBLFIND(values.misc.client.shop.Jumbobox, "inf time") then
  6016. return 5
  6017. end
  6018. end
  6019. return oldIndex(self, key)
  6020. end
  6021. local perf__ = LocalPlayer.PlayerGui.Performance.Perf
  6022. mt.__newindex = function(self, i, v)
  6023. if self:IsA("Humanoid") and i == "JumpPower" and not checkcaller() then
  6024. if values.misc.movement["jump bug"].Toggle and values.misc.movement["jump bug"].Active then
  6025. v = 24
  6026. end
  6027. if values.misc.movement["edge bug"].Toggle and values.misc.movement["edge bug"].Active then
  6028. v = 0
  6029. end
  6030. elseif self:IsA("Humanoid") and i == "CameraOffset" then
  6031. if values.rage.angles.enabled.Toggle and values.rage.angles["body roll"].Dropdown == "180" and not DisableAA then
  6032. v = v + Vec3(0, -3.5, 0)
  6033. end
  6034. end
  6035. return oldNewIndex(self, i, v)
  6036. end
  6037. Crosshairs.Scope:GetPropertyChangedSignal("Visible"):Connect(function(current)
  6038. if not TBLFIND(values.visuals.effects.removals.Jumbobox, "scope lines") then return end
  6039. if current ~= false then
  6040. Crosshairs.Scope.Visible = false
  6041. end
  6042. end)
  6043. Crosshair:GetPropertyChangedSignal("Visible"):Connect(function(current)
  6044. if not LocalPlayer.Character then return end
  6045. if not values.visuals.effects["force crosshair"].Toggle then return end
  6046. if LocalPlayer.Character:FindFirstChild("AIMING") then return end
  6047. Crosshair.Visible = true
  6048. end)
  6049. LocalPlayer.Additionals.TotalDamage:GetPropertyChangedSignal("Value"):Connect(function(current)
  6050. if current == 0 then return end
  6051. coroutine.wrap(function()
  6052. if values.misc.client.hitmarker.Toggle then
  6053. local Line = Drawing.new("Line")
  6054. local Line2 = Drawing.new("Line")
  6055. local Line3 = Drawing.new("Line")
  6056. local Line4 = Drawing.new("Line")
  6057. local x, y = Camera.ViewportSize.X/2, Camera.ViewportSize.Y/2
  6058. Line.From = Vec2(x + 4, y + 4)
  6059. Line.To = Vec2(x + 10, y + 10)
  6060. Line.Color = values.misc.client.hitmarker.Color
  6061. Line.Visible = true
  6062. Line2.From = Vec2(x + 4, y - 4)
  6063. Line2.To = Vec2(x + 10, y - 10)
  6064. Line2.Color = values.misc.client.hitmarker.Color
  6065. Line2.Visible = true
  6066. Line3.From = Vec2(x - 4, y - 4)
  6067. Line3.To = Vec2(x - 10, y - 10)
  6068. Line3.Color = values.misc.client.hitmarker.Color
  6069. Line3.Visible = true
  6070. Line4.From = Vec2(x - 4, y + 4)
  6071. Line4.To = Vec2(x - 10, y + 10)
  6072. Line4.Color = values.misc.client.hitmarker.Color
  6073. Line4.Visible = true
  6074. Line.Transparency = 1
  6075. Line2.Transparency = 1
  6076. Line3.Transparency = 1
  6077. Line4.Transparency = 1
  6078. Line.Thickness = 1
  6079. Line2.Thickness = 1
  6080. Line3.Thickness = 1
  6081. Line4.Thickness = 1
  6082. wait(0.3)
  6083. for i = 1,0,-0.1 do
  6084. wait()
  6085. Line.Transparency = i
  6086. Line2.Transparency = i
  6087. Line3.Transparency = i
  6088. Line4.Transparency = i
  6089. end
  6090. Line:Remove()
  6091. Line2:Remove()
  6092. Line3:Remove()
  6093. Line4:Remove()
  6094. end
  6095. end)()
  6096. if values.visuals.world.hitsound.Dropdown == "none" then return end
  6097. local sound = INST("Sound")
  6098. sound.Parent = game:GetService("SoundService")
  6099. sound.SoundId = values.visuals.world.hitsound.Dropdown == "skeet" and "rbxassetid://5447626464" or values.visuals.world.hitsound.Dropdown == "rust" and "rbxassetid://5043539486" or values.visuals.world.hitsound.Dropdown == "bag" and "rbxassetid://364942410" or values.visuals.world.hitsound.Dropdown == "baimware" and "rbxassetid://6607339542" or "rbxassetid://6607204501"
  6100. sound.Volume = values.visuals.world["sound volume"].Slider
  6101. sound.PlayOnRemove = true
  6102. sound:Destroy()
  6103. end)
  6104. LocalPlayer.Status.Kills:GetPropertyChangedSignal("Value"):Connect(function(current)
  6105. if current == 0 then return end
  6106. if values.misc.chat["kill say"].Toggle then
  6107. game:GetService("ReplicatedStorage").Events.PlayerChatted:FireServer(values.misc.chat["message"].Text ~= "" and values.misc.chat["message"].Text or "looks like you don't have stormy.solutions", false, "Innocent", false, true)
  6108. end
  6109. end)
  6110. RayIgnore.ChildAdded:Connect(function(obj)
  6111. if obj.Name == "Fires" then
  6112. obj.ChildAdded:Connect(function(fire)
  6113. if values.visuals.world["molly radius"].Toggle then
  6114. fire.Transparency = values.visuals.world["molly radius"].Transparency
  6115. fire.Color = values.visuals.world["molly radius"].Color
  6116. end
  6117. end)
  6118. end
  6119. if obj.Name == "Smokes" then
  6120. obj.ChildAdded:Connect(function(smoke)
  6121. RunService.RenderStepped:Wait()
  6122. local OriginalRate = INST("NumberValue")
  6123. OriginalRate.Value = smoke.ParticleEmitter.Rate
  6124. OriginalRate.Name = "OriginalRate"
  6125. OriginalRate.Parent = smoke
  6126. if TBLFIND(values.visuals.effects.removals.Jumbobox, "smokes") then
  6127. smoke.ParticleEmitter.Rate = 0
  6128. end
  6129. smoke.Material = Enum.Material.ForceField
  6130. if values.visuals.world["smoke radius"].Toggle then
  6131. smoke.Transparency = 0
  6132. smoke.Color = values.visuals.world["smoke radius"].Color
  6133. end
  6134. end)
  6135. end
  6136. end)
  6137. if RayIgnore:FindFirstChild("Fires") then
  6138. RayIgnore:FindFirstChild("Fires").ChildAdded:Connect(function(fire)
  6139. if values.visuals.world["molly radius"].Toggle then
  6140. fire.Transparency = values.visuals.world["molly radius"].Transparency
  6141. fire.Color = values.visuals.world["molly radius"].Color
  6142. end
  6143. end)
  6144. end
  6145. if RayIgnore:FindFirstChild("Smokes") then
  6146. for _,smoke in pairs(RayIgnore:FindFirstChild("Smokes"):GetChildren()) do
  6147. local OriginalRate = INST("NumberValue")
  6148. OriginalRate.Value = smoke.ParticleEmitter.Rate
  6149. OriginalRate.Name = "OriginalRate"
  6150. OriginalRate.Parent = smoke
  6151. smoke.Material = Enum.Material.ForceField
  6152. end
  6153. RayIgnore:FindFirstChild("Smokes").ChildAdded:Connect(function(smoke)
  6154. RunService.RenderStepped:Wait()
  6155. local OriginalRate = INST("NumberValue")
  6156. OriginalRate.Value = smoke.ParticleEmitter.Rate
  6157. OriginalRate.Name = "OriginalRate"
  6158. OriginalRate.Parent = smoke
  6159. if TBLFIND(values.visuals.effects.removals.Jumbobox, "smokes") then
  6160. smoke.ParticleEmitter.Rate = 0
  6161. end
  6162. smoke.Material = Enum.Material.ForceField
  6163. if values.visuals.world["smoke radius"].Toggle then
  6164. smoke.Transparency = 0
  6165. smoke.Color = values.visuals.world["smoke radius"].Color
  6166. end
  6167. end)
  6168. end
  6169. Camera.ChildAdded:Connect(function(obj)
  6170. if TBLFIND(values.misc.client["gun modifiers"].Jumbobox, "ammo") then
  6171. Client.ammocount = 999999
  6172. Client.primarystored = 999999
  6173. Client.ammocount2 = 999999
  6174. Client.secondarystored = 999999
  6175. end
  6176. RunService.RenderStepped:Wait()
  6177. if obj.Name ~= "Arms" then return end
  6178. local Model
  6179. for i,v in pairs(obj:GetChildren()) do
  6180. if v:IsA("Model") and (v:FindFirstChild("Right Arm") or v:FindFirstChild("Left Arm")) then
  6181. Model = v
  6182. end
  6183. end
  6184. if Model == nil then return end
  6185. for i,v in pairs(obj:GetChildren()) do
  6186. if (v:IsA("BasePart") or v:IsA("Part")) and v.Transparency ~= 1 and v.Name ~= "Flash" then
  6187. local valid = true
  6188. if v:IsA("Part") and v:FindFirstChild("Mesh") and not v:IsA("BlockMesh") then
  6189. valid = false
  6190. local success, err = pcall(function()
  6191. local OriginalTexture = INST("StringValue")
  6192. OriginalTexture.Value = v.Mesh.TextureId
  6193. OriginalTexture.Name = "OriginalTexture"
  6194. OriginalTexture.Parent = v.Mesh
  6195. end)
  6196. local success2, err2 = pcall(function()
  6197. local OriginalTexture = INST("StringValue")
  6198. OriginalTexture.Value = v.Mesh.TextureID
  6199. OriginalTexture.Name = "OriginalTexture"
  6200. OriginalTexture.Parent = v.Mesh
  6201. end)
  6202. if success or success2 then valid = true end
  6203. end
  6204. for i2,v2 in pairs(v:GetChildren()) do
  6205. if (v2:IsA("BasePart") or v2:IsA("Part")) then
  6206. INSERT(WeaponObj, v2)
  6207. end
  6208. end
  6209. if valid then
  6210. INSERT(WeaponObj, v)
  6211. end
  6212. end
  6213. end
  6214. local gunname = Client.gun ~= "none" and values.skins.knife["knife changer"].Toggle and Client.gun:FindFirstChild("Melee") and values.skins.knife.model.Scroll or Client.gun ~= "none" and Client.gun.Name
  6215. if values.skins.skins["skin changer"].Toggle and gunname ~= nil and Skins:FindFirstChild(gunname) then
  6216. if values.skins.skins.skin.Scroll[gunname] ~= "Inventory" then
  6217. MapSkin(gunname, values.skins.skins.skin.Scroll[gunname])
  6218. end
  6219. end
  6220. for _,v in pairs(WeaponObj) do
  6221. if v:IsA("MeshPart") then
  6222. local OriginalTexture = INST("StringValue")
  6223. OriginalTexture.Value = v.TextureID
  6224. OriginalTexture.Name = "OriginalTexture"
  6225. OriginalTexture.Parent = v
  6226. end
  6227. local OriginalColor = INST("Color3Value")
  6228. OriginalColor.Value = v.Color
  6229. OriginalColor.Name = "OriginalColor"
  6230. OriginalColor.Parent = v
  6231. local OriginalMaterial = INST("StringValue")
  6232. OriginalMaterial.Value = v.Material.Name
  6233. OriginalMaterial.Name = "OriginalMaterial"
  6234. OriginalMaterial.Parent = v
  6235. if values.visuals.effects["weapon chams"].Toggle then
  6236. UpdateWeapon(v)
  6237. end
  6238. end
  6239. RArm = Model:FindFirstChild("Right Arm"); LArm = Model:FindFirstChild("Left Arm")
  6240. if RArm then
  6241. local OriginalColor = INST("Color3Value")
  6242. OriginalColor.Value = RArm.Color
  6243. OriginalColor.Name = "Color3Value"
  6244. OriginalColor.Parent = RArm
  6245. if values.visuals.effects["arm chams"].Toggle then
  6246. RArm.Color = values.visuals.effects["arm chams"].Color
  6247. RArm.Transparency = values.visuals.effects["arm chams"].Transparency
  6248. end
  6249. RGlove = RArm:FindFirstChild("Glove") or RArm:FindFirstChild("RGlove")
  6250. if values.skins.glove["glove changer"].Toggle and Client.gun ~= "none" then
  6251. if RGlove then RGlove:Destroy() end
  6252. RGlove = GloveModels[values.skins.glove.model.Dropdown].RGlove:Clone()
  6253. RGlove.Mesh.TextureId = Gloves[values.skins.glove.model.Dropdown][values.skins.glove.model.Scroll[values.skins.glove.model.Dropdown]].Textures.TextureId
  6254. RGlove.Parent = RArm
  6255. RGlove.Transparency = 0
  6256. RGlove.Welded.Part0 = RArm
  6257. end
  6258. if RGlove.Transparency == 1 then
  6259. RGlove:Destroy()
  6260. RGlove = nil
  6261. else
  6262. local GloveTexture = INST("StringValue")
  6263. GloveTexture.Value = RGlove.Mesh.TextureId
  6264. GloveTexture.Name = "StringValue"
  6265. GloveTexture.Parent = RGlove
  6266. if values.visuals.effects["accessory chams"].Toggle then
  6267. UpdateAccessory(RGlove)
  6268. end
  6269. end
  6270. RSleeve = RArm:FindFirstChild("Sleeve")
  6271. if RSleeve ~= nil then
  6272. local SleeveTexture = INST("StringValue")
  6273. SleeveTexture.Value = RSleeve.Mesh.TextureId
  6274. SleeveTexture.Name = "StringValue"
  6275. SleeveTexture.Parent = RSleeve
  6276. if values.visuals.effects["arm chams"].Toggle then
  6277. LArm.Color = values.visuals.effects["arm chams"].Color
  6278. end
  6279. if values.visuals.effects["accessory chams"].Toggle then
  6280. UpdateAccessory(RSleeve)
  6281. end
  6282. end
  6283. end
  6284. if LArm then
  6285. local OriginalColor = INST("Color3Value")
  6286. OriginalColor.Value = LArm.Color
  6287. OriginalColor.Name = "Color3Value"
  6288. OriginalColor.Parent = LArm
  6289. if values.visuals.effects["arm chams"].Toggle then
  6290. LArm.Color = values.visuals.effects["arm chams"].Color
  6291. LArm.Transparency = values.visuals.effects["arm chams"].Transparency
  6292. end
  6293. LGlove = LArm:FindFirstChild("Glove") or LArm:FindFirstChild("LGlove")
  6294. if values.skins.glove["glove changer"].Toggle and Client.gun ~= "none" then
  6295. if LGlove then LGlove:Destroy() end
  6296. LGlove = GloveModels[values.skins.glove.model.Dropdown].LGlove:Clone()
  6297. LGlove.Mesh.TextureId = Gloves[values.skins.glove.model.Dropdown][values.skins.glove.model.Scroll[values.skins.glove.model.Dropdown]].Textures.TextureId
  6298. LGlove.Transparency = 0
  6299. LGlove.Parent = LArm
  6300. LGlove.Welded.Part0 = LArm
  6301. end
  6302. if LGlove.Transparency == 1 then
  6303. LGlove:Destroy()
  6304. LGlove = nil
  6305. else
  6306. local GloveTexture = INST("StringValue")
  6307. GloveTexture.Value = LGlove.Mesh.TextureId
  6308. GloveTexture.Name = "StringValue"
  6309. GloveTexture.Parent = LGlove
  6310. if values.visuals.effects["accessory chams"].Toggle then
  6311. UpdateAccessory(LGlove)
  6312. end
  6313. end
  6314. LSleeve = LArm:FindFirstChild("Sleeve")
  6315. if LSleeve ~= nil then
  6316. local SleeveTexture = INST("StringValue")
  6317. SleeveTexture.Value = LSleeve.Mesh.TextureId
  6318. SleeveTexture.Name = "StringValue"
  6319. SleeveTexture.Parent = LSleeve
  6320. if values.visuals.effects["accessory chams"].Toggle then
  6321. UpdateAccessory(LSleeve)
  6322. end
  6323. end
  6324. end
  6325. end)
  6326. Camera.ChildAdded:Connect(function(obj)
  6327. if obj.Name == "Arms" then
  6328. RArm, LArm, RGlove, RSleeve, LGlove, LSleeve = nil, nil, nil, nil, nil, nil
  6329. WeaponObj = {}
  6330. end
  6331. end)
  6332. Camera:GetPropertyChangedSignal("FieldOfView"):Connect(function(fov)
  6333. if LocalPlayer.Character == nil then return end
  6334. if fov == values.visuals.self["fov changer"].Slider then return end
  6335. if values.visuals.self["on scope"].Toggle or not LocalPlayer.Character:FindFirstChild("AIMING") then
  6336. Camera.FieldOfView = values.visuals.self["fov changer"].Slider
  6337. end
  6338. end)
  6339. LocalPlayer.Cash:GetPropertyChangedSignal("Value"):Connect(function(cash)
  6340. if values.misc.client["infinite cash"].Toggle and cash ~= 8000 then
  6341. LocalPlayer.Cash.Value = 8000
  6342. end
  6343. end)
  6344. if workspace:FindFirstChild("Map") and workspace:FindFirstChild("Map"):FindFirstChild("Origin") then
  6345. if workspace.Map.Origin.Value == "de_cache" or workspace.Map.Origin.Value == "de_vertigo" or workspace.Map.Origin.Value == "de_nuke" or workspace.Map.Origin.Value == "de_aztec" then
  6346. oldSkybox = Lighting:FindFirstChildOfClass("Sky"):Clone()
  6347. end
  6348. end
  6349. workspace.ChildAdded:Connect(function(obj)
  6350. if obj.Name == "Map" then
  6351. wait(5)
  6352. if values.misc.client["remove killers"].Toggle then
  6353. if workspace:FindFirstChild("Map") and workspace:FindFirstChild("Map"):FindFirstChild("Killers") then
  6354. local clone = workspace:FindFirstChild("Map"):FindFirstChild("Killers"):Clone()
  6355. clone.Name = "KillersClone"
  6356. clone.Parent = workspace:FindFirstChild("Map")
  6357. workspace:FindFirstChild("Map"):FindFirstChild("Killers"):Destroy()
  6358. end
  6359. end
  6360. if oldSkybox ~= nil then
  6361. oldSkybox:Destroy()
  6362. oldSkybox = nil
  6363. end
  6364. local Origin = workspace.Map:WaitForChild("Origin")
  6365. if workspace.Map.Origin.Value == "de_cache" or workspace.Map.Origin.Value == "de_vertigo" or workspace.Map.Origin.Value == "de_nuke" or workspace.Map.Origin.Value == "de_aztec" then
  6366. oldSkybox = Lighting:FindFirstChildOfClass("Sky"):Clone()
  6367. local sky = values.visuals.world.skybox.Dropdown
  6368. if sky ~= "none" then
  6369. Lighting:FindFirstChildOfClass("Sky"):Destroy()
  6370. local skybox = INST("Sky")
  6371. skybox.SkyboxLf = Skyboxes[sky].SkyboxLf
  6372. skybox.SkyboxBk = Skyboxes[sky].SkyboxBk
  6373. skybox.SkyboxDn = Skyboxes[sky].SkyboxDn
  6374. skybox.SkyboxFt = Skyboxes[sky].SkyboxFt
  6375. skybox.SkyboxRt = Skyboxes[sky].SkyboxRt
  6376. skybox.SkyboxUp = Skyboxes[sky].SkyboxUp
  6377. skybox.Name = "override"
  6378. skybox.Parent = Lighting
  6379. end
  6380. else
  6381. local sky = values.visuals.world.skybox.Dropdown
  6382. if sky ~= "none" then
  6383. local skybox = INST("Sky")
  6384. skybox.SkyboxLf = Skyboxes[sky].SkyboxLf
  6385. skybox.SkyboxBk = Skyboxes[sky].SkyboxBk
  6386. skybox.SkyboxDn = Skyboxes[sky].SkyboxDn
  6387. skybox.SkyboxFt = Skyboxes[sky].SkyboxFt
  6388. skybox.SkyboxRt = Skyboxes[sky].SkyboxRt
  6389. skybox.SkyboxUp = Skyboxes[sky].SkyboxUp
  6390. skybox.Name = "override"
  6391. skybox.Parent = Lighting
  6392. end
  6393. end
  6394. end
  6395. end)
  6396. Lighting.ChildAdded:Connect(function(obj)
  6397. if obj:IsA("Sky") and obj.Name ~= "override" then
  6398. oldSkybox = obj:Clone()
  6399. end
  6400. end)
  6401. local function CollisionTBL(obj)
  6402. if obj:IsA("Accessory") then
  6403. INSERT(Collision, obj)
  6404. end
  6405. if obj:IsA("Part") then
  6406. if obj.Name == "HeadHB" or obj.Name == "FakeHead" then
  6407. INSERT(Collision, obj)
  6408. end
  6409. end
  6410. end
  6411. LocalPlayer.CharacterAdded:Connect(function(char)
  6412. repeat RunService.RenderStepped:Wait()
  6413. until char:FindFirstChild("Gun")
  6414. SelfObj = {}
  6415. if values.skins.characters["character changer"].Toggle then
  6416. ChangeCharacter(ChrModels:FindFirstChild(values.skins.characters.skin.Scroll))
  6417. end
  6418. if char:FindFirstChildOfClass("Shirt") then
  6419. local String = INST("StringValue")
  6420. String.Name = "OriginalTexture"
  6421. String.Value = char:FindFirstChildOfClass("Shirt").ShirtTemplate
  6422. String.Parent = char:FindFirstChildOfClass("Shirt")
  6423. if TBLFIND(values.visuals.effects.removals.Jumbobox, "clothes") then
  6424. char:FindFirstChildOfClass("Shirt").ShirtTemplate = ""
  6425. end
  6426. end
  6427. if char:FindFirstChildOfClass("Pants") then
  6428. local String = INST("StringValue")
  6429. String.Name = "OriginalTexture"
  6430. String.Value = char:FindFirstChildOfClass("Pants").PantsTemplate
  6431. String.Parent = char:FindFirstChildOfClass("Pants")
  6432. if TBLFIND(values.visuals.effects.removals.Jumbobox, "clothes") then
  6433. char:FindFirstChildOfClass("Pants").PantsTemplate = ""
  6434. end
  6435. end
  6436. for i,v in pairs(char:GetChildren()) do
  6437. if v:IsA("BasePart") and v.Transparency ~= 1 then
  6438. INSERT(SelfObj, v)
  6439. local Color = INST("Color3Value")
  6440. Color.Name = "OriginalColor"
  6441. Color.Value = v.Color
  6442. Color.Parent = v
  6443. local String = INST("StringValue")
  6444. String.Name = "OriginalMaterial"
  6445. String.Value = v.Material.Name
  6446. String.Parent = v
  6447. elseif v:IsA("Accessory") and v.Handle.Transparency ~= 1 then
  6448. INSERT(SelfObj, v.Handle)
  6449. local Color = INST("Color3Value")
  6450. Color.Name = "OriginalColor"
  6451. Color.Value = v.Handle.Color
  6452. Color.Parent = v.Handle
  6453. local String = INST("StringValue")
  6454. String.Name = "OriginalMaterial"
  6455. String.Value = v.Handle.Material.Name
  6456. String.Parent = v.Handle
  6457. end
  6458. end
  6459. if values.visuals.self["self chams"].Toggle then
  6460. for _,obj in pairs(SelfObj) do
  6461. if obj.Parent ~= nil then
  6462. obj.Material = Enum.Material.ForceField
  6463. obj.Color = values.visuals.self["self chams"].Color
  6464. end
  6465. end
  6466. end
  6467. LocalPlayer.Character.ChildAdded:Connect(function(Child)
  6468. if Child:IsA("Accessory") and Child.Handle.Transparency ~= 1 then
  6469. INSERT(SelfObj, Child.Handle)
  6470. local Color = INST("Color3Value")
  6471. Color.Name = "OriginalColor"
  6472. Color.Value = Child.Handle.Color
  6473. Color.Parent = Child.Handle
  6474. local String = INST("StringValue")
  6475. String.Name = "OriginalMaterial"
  6476. String.Value = Child.Handle.Material.Name
  6477. String.Parent = Child.Handle
  6478. if values.visuals.self["self chams"].Toggle then
  6479. for _,obj in pairs(SelfObj) do
  6480. if obj.Parent ~= nil then
  6481. obj.Material = Enum.Material.ForceField
  6482. obj.Color = values.visuals.self["self chams"].Color
  6483. end
  6484. end
  6485. end
  6486. end
  6487. end)
  6488. if values.misc.animations.enabled.Toggle and values.misc.animations.enabled.Active then
  6489. LoadedAnim = LocalPlayer.Character.Humanoid:LoadAnimation(Dance)
  6490. LoadedAnim.Priority = Enum.AnimationPriority.Action
  6491. LoadedAnim:Play()
  6492. end
  6493. end)
  6494. if LocalPlayer.Character ~= nil then
  6495. for i,v in pairs(LocalPlayer.Character:GetChildren()) do
  6496. if v:IsA("BasePart") and v.Transparency ~= 1 then
  6497. INSERT(SelfObj, v)
  6498. local Color = INST("Color3Value")
  6499. Color.Name = "OriginalColor"
  6500. Color.Value = v.Color
  6501. Color.Parent = v
  6502. local String = INST("StringValue")
  6503. String.Name = "OriginalMaterial"
  6504. String.Value = v.Material.Name
  6505. String.Parent = v
  6506. elseif v:IsA("Accessory") and v.Handle.Transparency ~= 1 then
  6507. INSERT(SelfObj, v.Handle)
  6508. local Color = INST("Color3Value")
  6509. Color.Name = "OriginalColor"
  6510. Color.Value = v.Handle.Color
  6511. Color.Parent = v.Handle
  6512. local String = INST("StringValue")
  6513. String.Name = "OriginalMaterial"
  6514. String.Value = v.Handle.Material.Name
  6515. String.Parent = v.Handle
  6516. end
  6517. end
  6518. if values.visuals.self["self chams"].Toggle then
  6519. for _,obj in pairs(SelfObj) do
  6520. if obj.Parent ~= nil then
  6521. obj.Material = Enum.Material.ForceField
  6522. obj.Color = values.visuals.self["self chams"].Color
  6523. end
  6524. end
  6525. end
  6526. LocalPlayer.Character.ChildAdded:Connect(function(Child)
  6527. if Child:IsA("Accessory") and Child.Handle.Transparency ~= 1 then
  6528. INSERT(SelfObj, Child.Handle)
  6529. local Color = INST("Color3Value")
  6530. Color.Name = "OriginalColor"
  6531. Color.Value = Child.Handle.Color
  6532. Color.Parent = Child.Handle
  6533. local String = INST("StringValue")
  6534. String.Name = "OriginalMaterial"
  6535. String.Value = Child.Handle.Material.Name
  6536. String.Parent = Child.Handle
  6537. if values.visuals.self["self chams"].Toggle then
  6538. for _,obj in pairs(SelfObj) do
  6539. if obj.Parent ~= nil then
  6540. obj.Material = Enum.Material.ForceField
  6541. obj.Color = values.visuals.self["self chams"].Color
  6542. end
  6543. end
  6544. end
  6545. end
  6546. end)
  6547. end
  6548. Players.PlayerAdded:Connect(function(Player)
  6549. Player:GetPropertyChangedSignal("Team"):Connect(function(new)
  6550. wait()
  6551. if Player.Character and Player.Character:FindFirstChild("HumanoidRootPart") then
  6552. for _2,Obj in pairs(Player.Character:GetDescendants()) do
  6553. if Obj.Name == "VisibleCham" or Obj.Name == "WallCham" then
  6554. if values.visuals.players.chams.Toggle then
  6555. if values.visuals.players.teammates.Toggle or Player.Team ~= LocalPlayer.Team then
  6556. Obj.Visible = true
  6557. else
  6558. Obj.Visible = false
  6559. end
  6560. else
  6561. Obj.Visible = false
  6562. end
  6563. Obj.Color3 = values.visuals.players.chams.Color
  6564. end
  6565. end
  6566. end
  6567. end)
  6568. Player.CharacterAdded:Connect(function(Character)
  6569. Character.ChildAdded:Connect(function(obj)
  6570. wait(1)
  6571. CollisionTBL(obj)
  6572. end)
  6573. wait(1)
  6574. if Character ~= nil then
  6575. local Value = INST("Vector3Value")
  6576. Value.Name = "OldPosition"
  6577. Value.Value = Character.HumanoidRootPart.Position
  6578. Value.Parent = Character.HumanoidRootPart
  6579. for _,obj in pairs(Character:GetChildren()) do
  6580. if obj:IsA("BasePart") and Player ~= LocalPlayer and obj.Name ~= "HumanoidRootPart" and obj.Name ~= "Head" and obj.Name ~= "BackC4" and obj.Name ~= "HeadHB" then
  6581. local VisibleCham = INST("BoxHandleAdornment")
  6582. VisibleCham.Name = "VisibleCham"
  6583. VisibleCham.AlwaysOnTop = false
  6584. VisibleCham.ZIndex = 8
  6585. VisibleCham.Size = obj.Size + Vec3(0.1,0.1,0.1)
  6586. VisibleCham.AlwaysOnTop = false
  6587. VisibleCham.Transparency = 0
  6588. local WallCham = INST("BoxHandleAdornment")
  6589. WallCham.Name = "WallCham"
  6590. WallCham.AlwaysOnTop = true
  6591. WallCham.ZIndex = 5
  6592. WallCham.Size = obj.Size + Vec3(0.1,0.1,0.1)
  6593. WallCham.AlwaysOnTop = true
  6594. WallCham.Transparency = 0.7
  6595. if values.visuals.players.chams.Toggle then
  6596. if values.visuals.players.teammates.Toggle or Player.Team ~= LocalPlayer.Team then
  6597. VisibleCham.Visible = true
  6598. WallCham.Visible = true
  6599. else
  6600. VisibleCham.Visible = false
  6601. WallCham.Visible = false
  6602. end
  6603. else
  6604. VisibleCham.Visible = false
  6605. WallCham.Visible = false
  6606. end
  6607. INSERT(ChamItems, VisibleCham)
  6608. INSERT(ChamItems, WallCham)
  6609. VisibleCham.Color3 = values.visuals.players.chams.Color
  6610. WallCham.Color3 = values.visuals.players.chams.Color
  6611. VisibleCham.AdornCullingMode = "Never"
  6612. WallCham.AdornCullingMode = "Never"
  6613. VisibleCham.Adornee = obj
  6614. VisibleCham.Parent = obj
  6615. WallCham.Adornee = obj
  6616. WallCham.Parent = obj
  6617. end
  6618. end
  6619. end
  6620. end)
  6621. end)
  6622. for _,Player in pairs(Players:GetPlayers()) do
  6623. if Player ~= LocalPlayer then
  6624. Player:GetPropertyChangedSignal("Team"):Connect(function(new)
  6625. wait()
  6626. if Player.Character and Player.Character:FindFirstChild("HumanoidRootPart") then
  6627. for _2,Obj in pairs(Player.Character:GetDescendants()) do
  6628. if Obj.Name == "VisibleCham" or Obj.Name == "WallCham" then
  6629. if values.visuals.players.chams.Toggle then
  6630. if values.visuals.players.teammates.Toggle or Player.Team ~= LocalPlayer.Team then
  6631. Obj.Visible = true
  6632. else
  6633. Obj.Visible = false
  6634. end
  6635. else
  6636. Obj.Visible = false
  6637. end
  6638. Obj.Color3 = values.visuals.players.chams.Color
  6639. end
  6640. end
  6641. end
  6642. end)
  6643. else
  6644. LocalPlayer:GetPropertyChangedSignal("Team"):Connect(function(new)
  6645. wait()
  6646. for _,Player in pairs(Players:GetPlayers()) do
  6647. if Player.Character then
  6648. for _2,Obj in pairs(Player.Character:GetDescendants()) do
  6649. if Obj.Name == "VisibleCham" or Obj.Name == "WallCham" then
  6650. if values.visuals.players.chams.Toggle then
  6651. if values.visuals.players.teammates.Toggle or Player.Team ~= LocalPlayer.Team then
  6652. Obj.Visible = true
  6653. else
  6654. Obj.Visible = false
  6655. end
  6656. else
  6657. Obj.Visible = false
  6658. end
  6659. Obj.Color3 = values.visuals.players.chams.Color
  6660. end
  6661. end
  6662. end
  6663. end
  6664. end)
  6665. end
  6666. Player.CharacterAdded:Connect(function(Character)
  6667. Character.ChildAdded:Connect(function(obj)
  6668. wait(1)
  6669. CollisionTBL(obj)
  6670. end)
  6671. wait(1)
  6672. if Player.Character ~= nil and Player.Character:FindFirstChild("HumanoidRootPart") then
  6673. local Value = INST("Vector3Value")
  6674. Value.Value = Player.Character.HumanoidRootPart.Position
  6675. Value.Name = "OldPosition"
  6676. Value.Parent = Player.Character.HumanoidRootPart
  6677. for _,obj in pairs(Player.Character:GetChildren()) do
  6678. if obj:IsA("BasePart") and Player ~= LocalPlayer and obj.Name ~= "HumanoidRootPart" and obj.Name ~= "Head" and obj.Name ~= "BackC4" and obj.Name ~= "HeadHB" then
  6679. local VisibleCham = INST("BoxHandleAdornment")
  6680. VisibleCham.Name = "VisibleCham"
  6681. VisibleCham.AlwaysOnTop = false
  6682. VisibleCham.ZIndex = 5
  6683. VisibleCham.Size = obj.Size + Vec3(0.1,0.1,0.1)
  6684. VisibleCham.AlwaysOnTop = false
  6685. VisibleCham.Transparency = 0
  6686. local WallCham = INST("BoxHandleAdornment")
  6687. WallCham.Name = "WallCham"
  6688. WallCham.AlwaysOnTop = true
  6689. WallCham.ZIndex = 5
  6690. WallCham.Size = obj.Size + Vec3(0.1,0.1,0.1)
  6691. WallCham.AlwaysOnTop = true
  6692. WallCham.Transparency = 0.7
  6693. if values.visuals.players.chams.Toggle then
  6694. if values.visuals.players.teammates.Toggle or Player.Team ~= LocalPlayer.Team then
  6695. VisibleCham.Visible = true
  6696. WallCham.Visible = true
  6697. else
  6698. VisibleCham.Visible = false
  6699. WallCham.Visible = false
  6700. end
  6701. else
  6702. VisibleCham.Visible = false
  6703. WallCham.Visible = false
  6704. end
  6705. INSERT(ChamItems, VisibleCham)
  6706. INSERT(ChamItems, WallCham)
  6707. VisibleCham.Color3 = values.visuals.players.chams.Color
  6708. WallCham.Color3 = values.visuals.players.chams.Color
  6709. VisibleCham.AdornCullingMode = "Never"
  6710. WallCham.AdornCullingMode = "Never"
  6711. VisibleCham.Adornee = obj
  6712. VisibleCham.Parent = obj
  6713. WallCham.Adornee = obj
  6714. WallCham.Parent = obj
  6715. end
  6716. end
  6717. end
  6718. end)
  6719. if Player.Character ~= nil and Player.Character:FindFirstChild("UpperTorso") then
  6720. local Value = INST("Vector3Value")
  6721. Value.Name = "OldPosition"
  6722. Value.Value = Player.Character.HumanoidRootPart.Position
  6723. Value.Parent = Player.Character.HumanoidRootPart
  6724. for _,obj in pairs(Player.Character:GetChildren()) do
  6725. CollisionTBL(obj)
  6726. if obj:IsA("BasePart") and Player ~= LocalPlayer and obj.Name ~= "HumanoidRootPart" and obj.Name ~= "Head" and obj.Name ~= "BackC4" and obj.Name ~= "HeadHB" then
  6727. local VisibleCham = INST("BoxHandleAdornment")
  6728. VisibleCham.Name = "VisibleCham"
  6729. VisibleCham.AlwaysOnTop = false
  6730. VisibleCham.ZIndex = 5
  6731. VisibleCham.Size = obj.Size + Vec3(0.1,0.1,0.1)
  6732. VisibleCham.AlwaysOnTop = false
  6733. VisibleCham.Transparency = 0
  6734. local WallCham = INST("BoxHandleAdornment")
  6735. WallCham.Name = "WallCham"
  6736. WallCham.AlwaysOnTop = true
  6737. WallCham.ZIndex = 5
  6738. WallCham.Size = obj.Size + Vec3(0.1,0.1,0.1)
  6739. WallCham.AlwaysOnTop = true
  6740. WallCham.Transparency = 0.7
  6741. if values.visuals.players.chams.Toggle then
  6742. if values.visuals.players.teammates.Toggle or Player.Team ~= LocalPlayer.Team then
  6743. VisibleCham.Visible = true
  6744. WallCham.Visible = true
  6745. else
  6746. VisibleCham.Visible = false
  6747. WallCham.Visible = false
  6748. end
  6749. else
  6750. VisibleCham.Visible = false
  6751. WallCham.Visible = false
  6752. end
  6753. INSERT(ChamItems, VisibleCham)
  6754. INSERT(ChamItems, WallCham)
  6755. VisibleCham.Color3 = values.visuals.players.chams.Color
  6756. WallCham.Color3 = values.visuals.players.chams.Color
  6757. VisibleCham.AdornCullingMode = "Never"
  6758. WallCham.AdornCullingMode = "Never"
  6759. VisibleCham.Adornee = obj
  6760. VisibleCham.Parent = obj
  6761. WallCham.Adornee = obj
  6762. WallCham.Parent = obj
  6763. end
  6764. end
  6765. end
  6766. end