Advertisement
SekkayGod

ee

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