trixade

Untitled

Oct 13th, 2021
689
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 99.57 KB | None | 0 0
  1. --[[
  2.     ui-engine-v2
  3.     version 1.3a
  4.     by Singularity (V3rm @ King Singularity) (Discord @ Singularity#5490)
  5. --]]
  6.  
  7. local ui_options = {
  8.     main_color = Color3.fromRGB(41, 74, 122),
  9.     min_size = Vector2.new(400, 300),
  10.     toggle_key = Enum.KeyCode.RightShift,
  11.     can_resize = true,
  12. }
  13.  
  14. do
  15.     local imgui = game:GetService("CoreGui"):FindFirstChild("imgui")
  16.     if imgui then imgui:Destroy() end
  17. end
  18.  
  19. local imgui = Instance.new("ScreenGui")
  20. local Prefabs = Instance.new("Frame")
  21. local Label = Instance.new("TextLabel")
  22. local Window = Instance.new("ImageLabel")
  23. local Resizer = Instance.new("Frame")
  24. local Bar = Instance.new("Frame")
  25. local Toggle = Instance.new("ImageButton")
  26. local Base = Instance.new("ImageLabel")
  27. local Top = Instance.new("ImageLabel")
  28. local Tabs = Instance.new("Frame")
  29. local Title = Instance.new("TextLabel")
  30. local TabSelection = Instance.new("ImageLabel")
  31. local TabButtons = Instance.new("Frame")
  32. local UIListLayout = Instance.new("UIListLayout")
  33. local Frame = Instance.new("Frame")
  34. local Tab = Instance.new("Frame")
  35. local UIListLayout_2 = Instance.new("UIListLayout")
  36. local TextBox = Instance.new("TextBox")
  37. local TextBox_Roundify_4px = Instance.new("ImageLabel")
  38. local Slider = Instance.new("ImageLabel")
  39. local Title_2 = Instance.new("TextLabel")
  40. local Indicator = Instance.new("ImageLabel")
  41. local Value = Instance.new("TextLabel")
  42. local TextLabel = Instance.new("TextLabel")
  43. local TextLabel_2 = Instance.new("TextLabel")
  44. local Circle = Instance.new("ImageLabel")
  45. local UIListLayout_3 = Instance.new("UIListLayout")
  46. local Dropdown = Instance.new("TextButton")
  47. local Indicator_2 = Instance.new("ImageLabel")
  48. local Box = Instance.new("ImageButton")
  49. local Objects = Instance.new("ScrollingFrame")
  50. local UIListLayout_4 = Instance.new("UIListLayout")
  51. local TextButton_Roundify_4px = Instance.new("ImageLabel")
  52. local TabButton = Instance.new("TextButton")
  53. local TextButton_Roundify_4px_2 = Instance.new("ImageLabel")
  54. local Folder = Instance.new("ImageLabel")
  55. local Button = Instance.new("TextButton")
  56. local TextButton_Roundify_4px_3 = Instance.new("ImageLabel")
  57. local Toggle_2 = Instance.new("ImageLabel")
  58. local Objects_2 = Instance.new("Frame")
  59. local UIListLayout_5 = Instance.new("UIListLayout")
  60. local HorizontalAlignment = Instance.new("Frame")
  61. local UIListLayout_6 = Instance.new("UIListLayout")
  62. local Console = Instance.new("ImageLabel")
  63. local ScrollingFrame = Instance.new("ScrollingFrame")
  64. local Source = Instance.new("TextBox")
  65. local Comments = Instance.new("TextLabel")
  66. local Globals = Instance.new("TextLabel")
  67. local Keywords = Instance.new("TextLabel")
  68. local RemoteHighlight = Instance.new("TextLabel")
  69. local Strings = Instance.new("TextLabel")
  70. local Tokens = Instance.new("TextLabel")
  71. local Numbers = Instance.new("TextLabel")
  72. local Info = Instance.new("TextLabel")
  73. local Lines = Instance.new("TextLabel")
  74. local ColorPicker = Instance.new("ImageLabel")
  75. local Palette = Instance.new("ImageLabel")
  76. local Indicator_3 = Instance.new("ImageLabel")
  77. local Sample = Instance.new("ImageLabel")
  78. local Saturation = Instance.new("ImageLabel")
  79. local Indicator_4 = Instance.new("Frame")
  80. local Switch = Instance.new("TextButton")
  81. local TextButton_Roundify_4px_4 = Instance.new("ImageLabel")
  82. local Title_3 = Instance.new("TextLabel")
  83. local Button_2 = Instance.new("TextButton")
  84. local TextButton_Roundify_4px_5 = Instance.new("ImageLabel")
  85. local DropdownButton = Instance.new("TextButton")
  86. local Keybind = Instance.new("ImageLabel")
  87. local Title_4 = Instance.new("TextLabel")
  88. local Input = Instance.new("TextButton")
  89. local Input_Roundify_4px = Instance.new("ImageLabel")
  90. local Windows = Instance.new("Frame")
  91.  
  92. imgui.Name = "imgui"
  93. imgui.Parent = game:GetService("CoreGui")
  94.  
  95. Prefabs.Name = "Prefabs"
  96. Prefabs.Parent = imgui
  97. Prefabs.BackgroundColor3 = Color3.new(1, 1, 1)
  98. Prefabs.Size = UDim2.new(0, 100, 0, 100)
  99. Prefabs.Visible = false
  100.  
  101. Label.Name = "Label"
  102. Label.Parent = Prefabs
  103. Label.BackgroundColor3 = Color3.new(1, 1, 1)
  104. Label.BackgroundTransparency = 1
  105. Label.Size = UDim2.new(0, 200, 0, 20)
  106. Label.Font = Enum.Font.GothamSemibold
  107. Label.Text = "Hello, world 123"
  108. Label.TextColor3 = Color3.new(1, 1, 1)
  109. Label.TextSize = 14
  110. Label.TextXAlignment = Enum.TextXAlignment.Left
  111.  
  112. Window.Name = "Window"
  113. Window.Parent = Prefabs
  114. Window.Active = true
  115. Window.BackgroundColor3 = Color3.new(1, 1, 1)
  116. Window.BackgroundTransparency = 1
  117. Window.ClipsDescendants = true
  118. Window.Position = UDim2.new(0, 20, 0, 20)
  119. Window.Selectable = true
  120. Window.Size = UDim2.new(0, 200, 0, 200)
  121. Window.Image = "rbxassetid://2851926732"
  122. Window.ImageColor3 = Color3.new(0.0823529, 0.0862745, 0.0901961)
  123. Window.ScaleType = Enum.ScaleType.Slice
  124. Window.SliceCenter = Rect.new(12, 12, 12, 12)
  125.  
  126. Resizer.Name = "Resizer"
  127. Resizer.Parent = Window
  128. Resizer.Active = true
  129. Resizer.BackgroundColor3 = Color3.new(1, 1, 1)
  130. Resizer.BackgroundTransparency = 1
  131. Resizer.BorderSizePixel = 0
  132. Resizer.Position = UDim2.new(1, -20, 1, -20)
  133. Resizer.Size = UDim2.new(0, 20, 0, 20)
  134.  
  135. Bar.Name = "Bar"
  136. Bar.Parent = Window
  137. Bar.BackgroundColor3 = Color3.new(0.160784, 0.290196, 0.478431)
  138. Bar.BorderSizePixel = 0
  139. Bar.Position = UDim2.new(0, 0, 0, 5)
  140. Bar.Size = UDim2.new(1, 0, 0, 15)
  141.  
  142. Toggle.Name = "Toggle"
  143. Toggle.Parent = Bar
  144. Toggle.BackgroundColor3 = Color3.new(1, 1, 1)
  145. Toggle.BackgroundTransparency = 1
  146. Toggle.Position = UDim2.new(0, 5, 0, -2)
  147. Toggle.Rotation = 90
  148. Toggle.Size = UDim2.new(0, 20, 0, 20)
  149. Toggle.ZIndex = 2
  150. Toggle.Image = "https://www.roblox.com/Thumbs/Asset.ashx?width=420&height=420&assetId=4731371541"
  151.  
  152. Base.Name = "Base"
  153. Base.Parent = Bar
  154. Base.BackgroundColor3 = Color3.new(0.160784, 0.290196, 0.478431)
  155. Base.BorderSizePixel = 0
  156. Base.Position = UDim2.new(0, 0, 0.800000012, 0)
  157. Base.Size = UDim2.new(1, 0, 0, 10)
  158. Base.Image = "rbxassetid://2851926732"
  159. Base.ImageColor3 = Color3.new(0.160784, 0.290196, 0.478431)
  160. Base.ScaleType = Enum.ScaleType.Slice
  161. Base.SliceCenter = Rect.new(12, 12, 12, 12)
  162.  
  163. Top.Name = "Top"
  164. Top.Parent = Bar
  165. Top.BackgroundColor3 = Color3.new(1, 1, 1)
  166. Top.BackgroundTransparency = 1
  167. Top.Position = UDim2.new(0, 0, 0, -5)
  168. Top.Size = UDim2.new(1, 0, 0, 10)
  169. Top.Image = "rbxassetid://2851926732"
  170. Top.ImageColor3 = Color3.new(0.160784, 0.290196, 0.478431)
  171. Top.ScaleType = Enum.ScaleType.Slice
  172. Top.SliceCenter = Rect.new(12, 12, 12, 12)
  173.  
  174. Tabs.Name = "Tabs"
  175. Tabs.Parent = Window
  176. Tabs.BackgroundColor3 = Color3.new(1, 1, 1)
  177. Tabs.BackgroundTransparency = 1
  178. Tabs.Position = UDim2.new(0, 15, 0, 60)
  179. Tabs.Size = UDim2.new(1, -30, 1, -60)
  180.  
  181. Title.Name = "Title"
  182. Title.Parent = Window
  183. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  184. Title.BackgroundTransparency = 1
  185. Title.Position = UDim2.new(0, 30, 0, 3)
  186. Title.Size = UDim2.new(0, 200, 0, 20)
  187. Title.Font = Enum.Font.GothamBold
  188. Title.Text = "Gamer Time"
  189. Title.TextColor3 = Color3.new(1, 1, 1)
  190. Title.TextSize = 14
  191. Title.TextXAlignment = Enum.TextXAlignment.Left
  192.  
  193. TabSelection.Name = "TabSelection"
  194. TabSelection.Parent = Window
  195. TabSelection.BackgroundColor3 = Color3.new(1, 1, 1)
  196. TabSelection.BackgroundTransparency = 1
  197. TabSelection.Position = UDim2.new(0, 15, 0, 30)
  198. TabSelection.Size = UDim2.new(1, -30, 0, 25)
  199. TabSelection.Visible = false
  200. TabSelection.Image = "rbxassetid://2851929490"
  201. TabSelection.ImageColor3 = Color3.new(0.145098, 0.14902, 0.156863)
  202. TabSelection.ScaleType = Enum.ScaleType.Slice
  203. TabSelection.SliceCenter = Rect.new(4, 4, 4, 4)
  204.  
  205. TabButtons.Name = "TabButtons"
  206. TabButtons.Parent = TabSelection
  207. TabButtons.BackgroundColor3 = Color3.new(1, 1, 1)
  208. TabButtons.BackgroundTransparency = 1
  209. TabButtons.Size = UDim2.new(1, 0, 1, 0)
  210.  
  211. UIListLayout.Parent = TabButtons
  212. UIListLayout.FillDirection = Enum.FillDirection.Horizontal
  213. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  214. UIListLayout.Padding = UDim.new(0, 2)
  215.  
  216. Frame.Parent = TabSelection
  217. Frame.BackgroundColor3 = Color3.new(0.12549, 0.227451, 0.372549)
  218. Frame.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  219. Frame.BorderSizePixel = 0
  220. Frame.Position = UDim2.new(0, 0, 1, 0)
  221. Frame.Size = UDim2.new(1, 0, 0, 2)
  222.  
  223. Tab.Name = "Tab"
  224. Tab.Parent = Prefabs
  225. Tab.BackgroundColor3 = Color3.new(1, 1, 1)
  226. Tab.BackgroundTransparency = 1
  227. Tab.Size = UDim2.new(1, 0, 1, 0)
  228. Tab.Visible = false
  229.  
  230. UIListLayout_2.Parent = Tab
  231. UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  232. UIListLayout_2.Padding = UDim.new(0, 5)
  233.  
  234. TextBox.Parent = Prefabs
  235. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  236. TextBox.BackgroundTransparency = 1
  237. TextBox.BorderSizePixel = 0
  238. TextBox.Size = UDim2.new(1, 0, 0, 20)
  239. TextBox.ZIndex = 2
  240. TextBox.Font = Enum.Font.GothamSemibold
  241. TextBox.PlaceholderColor3 = Color3.new(0.698039, 0.698039, 0.698039)
  242. TextBox.PlaceholderText = "Input Text"
  243. TextBox.Text = ""
  244. TextBox.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  245. TextBox.TextSize = 14
  246.  
  247. TextBox_Roundify_4px.Name = "TextBox_Roundify_4px"
  248. TextBox_Roundify_4px.Parent = TextBox
  249. TextBox_Roundify_4px.BackgroundColor3 = Color3.new(1, 1, 1)
  250. TextBox_Roundify_4px.BackgroundTransparency = 1
  251. TextBox_Roundify_4px.Size = UDim2.new(1, 0, 1, 0)
  252. TextBox_Roundify_4px.Image = "rbxassetid://2851929490"
  253. TextBox_Roundify_4px.ImageColor3 = Color3.new(0.203922, 0.207843, 0.219608)
  254. TextBox_Roundify_4px.ScaleType = Enum.ScaleType.Slice
  255. TextBox_Roundify_4px.SliceCenter = Rect.new(4, 4, 4, 4)
  256.  
  257. Slider.Name = "Slider"
  258. Slider.Parent = Prefabs
  259. Slider.BackgroundColor3 = Color3.new(1, 1, 1)
  260. Slider.BackgroundTransparency = 1
  261. Slider.Position = UDim2.new(0, 0, 0.178571433, 0)
  262. Slider.Size = UDim2.new(1, 0, 0, 20)
  263. Slider.Image = "rbxassetid://2851929490"
  264. Slider.ImageColor3 = Color3.new(0.145098, 0.14902, 0.156863)
  265. Slider.ScaleType = Enum.ScaleType.Slice
  266. Slider.SliceCenter = Rect.new(4, 4, 4, 4)
  267.  
  268. Title_2.Name = "Title"
  269. Title_2.Parent = Slider
  270. Title_2.BackgroundColor3 = Color3.new(1, 1, 1)
  271. Title_2.BackgroundTransparency = 1
  272. Title_2.Position = UDim2.new(0.5, 0, 0.5, -10)
  273. Title_2.Size = UDim2.new(0, 0, 0, 20)
  274. Title_2.ZIndex = 2
  275. Title_2.Font = Enum.Font.GothamBold
  276. Title_2.Text = "Slider"
  277. Title_2.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  278. Title_2.TextSize = 14
  279.  
  280. Indicator.Name = "Indicator"
  281. Indicator.Parent = Slider
  282. Indicator.BackgroundColor3 = Color3.new(1, 1, 1)
  283. Indicator.BackgroundTransparency = 1
  284. Indicator.Size = UDim2.new(0, 0, 0, 20)
  285. Indicator.Image = "rbxassetid://2851929490"
  286. Indicator.ImageColor3 = Color3.new(0.254902, 0.262745, 0.278431)
  287. Indicator.ScaleType = Enum.ScaleType.Slice
  288. Indicator.SliceCenter = Rect.new(4, 4, 4, 4)
  289.  
  290. Value.Name = "Value"
  291. Value.Parent = Slider
  292. Value.BackgroundColor3 = Color3.new(1, 1, 1)
  293. Value.BackgroundTransparency = 1
  294. Value.Position = UDim2.new(1, -55, 0.5, -10)
  295. Value.Size = UDim2.new(0, 50, 0, 20)
  296. Value.Font = Enum.Font.GothamBold
  297. Value.Text = "0%"
  298. Value.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  299. Value.TextSize = 14
  300.  
  301. TextLabel.Parent = Slider
  302. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  303. TextLabel.BackgroundTransparency = 1
  304. TextLabel.Position = UDim2.new(1, -20, -0.75, 0)
  305. TextLabel.Size = UDim2.new(0, 26, 0, 50)
  306. TextLabel.Font = Enum.Font.GothamBold
  307. TextLabel.Text = "]"
  308. TextLabel.TextColor3 = Color3.new(0.627451, 0.627451, 0.627451)
  309. TextLabel.TextSize = 14
  310.  
  311. TextLabel_2.Parent = Slider
  312. TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
  313. TextLabel_2.BackgroundTransparency = 1
  314. TextLabel_2.Position = UDim2.new(1, -65, -0.75, 0)
  315. TextLabel_2.Size = UDim2.new(0, 26, 0, 50)
  316. TextLabel_2.Font = Enum.Font.GothamBold
  317. TextLabel_2.Text = "["
  318. TextLabel_2.TextColor3 = Color3.new(0.627451, 0.627451, 0.627451)
  319. TextLabel_2.TextSize = 14
  320.  
  321. Circle.Name = "Circle"
  322. Circle.Parent = Prefabs
  323. Circle.BackgroundColor3 = Color3.new(1, 1, 1)
  324. Circle.BackgroundTransparency = 1
  325. Circle.Image = "rbxassetid://266543268"
  326. Circle.ImageTransparency = 0.5
  327.  
  328. UIListLayout_3.Parent = Prefabs
  329. UIListLayout_3.FillDirection = Enum.FillDirection.Horizontal
  330. UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
  331. UIListLayout_3.Padding = UDim.new(0, 20)
  332.  
  333. Dropdown.Name = "Dropdown"
  334. Dropdown.Parent = Prefabs
  335. Dropdown.BackgroundColor3 = Color3.new(1, 1, 1)
  336. Dropdown.BackgroundTransparency = 1
  337. Dropdown.BorderSizePixel = 0
  338. Dropdown.Position = UDim2.new(-0.055555556, 0, 0.0833333284, 0)
  339. Dropdown.Size = UDim2.new(0, 200, 0, 20)
  340. Dropdown.ZIndex = 2
  341. Dropdown.Font = Enum.Font.GothamBold
  342. Dropdown.Text = "      Dropdown"
  343. Dropdown.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  344. Dropdown.TextSize = 14
  345. Dropdown.TextXAlignment = Enum.TextXAlignment.Left
  346.  
  347. Indicator_2.Name = "Indicator"
  348. Indicator_2.Parent = Dropdown
  349. Indicator_2.BackgroundColor3 = Color3.new(1, 1, 1)
  350. Indicator_2.BackgroundTransparency = 1
  351. Indicator_2.Position = UDim2.new(0.899999976, -10, 0.100000001, 0)
  352. Indicator_2.Rotation = -90
  353. Indicator_2.Size = UDim2.new(0, 15, 0, 15)
  354. Indicator_2.ZIndex = 2
  355. Indicator_2.Image = "https://www.roblox.com/Thumbs/Asset.ashx?width=420&height=420&assetId=4744658743"
  356.  
  357. Box.Name = "Box"
  358. Box.Parent = Dropdown
  359. Box.BackgroundColor3 = Color3.new(1, 1, 1)
  360. Box.BackgroundTransparency = 1
  361. Box.Position = UDim2.new(0, 0, 0, 25)
  362. Box.Size = UDim2.new(1, 0, 0, 150)
  363. Box.ZIndex = 3
  364. Box.Image = "rbxassetid://2851929490"
  365. Box.ImageColor3 = Color3.new(0.129412, 0.133333, 0.141176)
  366. Box.ScaleType = Enum.ScaleType.Slice
  367. Box.SliceCenter = Rect.new(4, 4, 4, 4)
  368.  
  369. Objects.Name = "Objects"
  370. Objects.Parent = Box
  371. Objects.BackgroundColor3 = Color3.new(1, 1, 1)
  372. Objects.BackgroundTransparency = 1
  373. Objects.BorderSizePixel = 0
  374. Objects.Size = UDim2.new(1, 0, 1, 0)
  375. Objects.ZIndex = 3
  376. Objects.CanvasSize = UDim2.new(0, 0, 0, 0)
  377. Objects.ScrollBarThickness = 8
  378.  
  379. UIListLayout_4.Parent = Objects
  380. UIListLayout_4.SortOrder = Enum.SortOrder.LayoutOrder
  381.  
  382. TextButton_Roundify_4px.Name = "TextButton_Roundify_4px"
  383. TextButton_Roundify_4px.Parent = Dropdown
  384. TextButton_Roundify_4px.BackgroundColor3 = Color3.new(1, 1, 1)
  385. TextButton_Roundify_4px.BackgroundTransparency = 1
  386. TextButton_Roundify_4px.Size = UDim2.new(1, 0, 1, 0)
  387. TextButton_Roundify_4px.Image = "rbxassetid://2851929490"
  388. TextButton_Roundify_4px.ImageColor3 = Color3.new(0.203922, 0.207843, 0.219608)
  389. TextButton_Roundify_4px.ScaleType = Enum.ScaleType.Slice
  390. TextButton_Roundify_4px.SliceCenter = Rect.new(4, 4, 4, 4)
  391.  
  392. TabButton.Name = "TabButton"
  393. TabButton.Parent = Prefabs
  394. TabButton.BackgroundColor3 = Color3.new(0.160784, 0.290196, 0.478431)
  395. TabButton.BackgroundTransparency = 1
  396. TabButton.BorderSizePixel = 0
  397. TabButton.Position = UDim2.new(0.185185179, 0, 0, 0)
  398. TabButton.Size = UDim2.new(0, 71, 0, 20)
  399. TabButton.ZIndex = 2
  400. TabButton.Font = Enum.Font.GothamSemibold
  401. TabButton.Text = "Test tab"
  402. TabButton.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  403. TabButton.TextSize = 14
  404.  
  405. TextButton_Roundify_4px_2.Name = "TextButton_Roundify_4px"
  406. TextButton_Roundify_4px_2.Parent = TabButton
  407. TextButton_Roundify_4px_2.BackgroundColor3 = Color3.new(1, 1, 1)
  408. TextButton_Roundify_4px_2.BackgroundTransparency = 1
  409. TextButton_Roundify_4px_2.Size = UDim2.new(1, 0, 1, 0)
  410. TextButton_Roundify_4px_2.Image = "rbxassetid://2851929490"
  411. TextButton_Roundify_4px_2.ImageColor3 = Color3.new(0.203922, 0.207843, 0.219608)
  412. TextButton_Roundify_4px_2.ScaleType = Enum.ScaleType.Slice
  413. TextButton_Roundify_4px_2.SliceCenter = Rect.new(4, 4, 4, 4)
  414.  
  415. Folder.Name = "Folder"
  416. Folder.Parent = Prefabs
  417. Folder.BackgroundColor3 = Color3.new(1, 1, 1)
  418. Folder.BackgroundTransparency = 1
  419. Folder.Position = UDim2.new(0, 0, 0, 50)
  420. Folder.Size = UDim2.new(1, 0, 0, 20)
  421. Folder.Image = "rbxassetid://2851929490"
  422. Folder.ImageColor3 = Color3.new(0.0823529, 0.0862745, 0.0901961)
  423. Folder.ScaleType = Enum.ScaleType.Slice
  424. Folder.SliceCenter = Rect.new(4, 4, 4, 4)
  425.  
  426. Button.Name = "Button"
  427. Button.Parent = Folder
  428. Button.BackgroundColor3 = Color3.new(0.160784, 0.290196, 0.478431)
  429. Button.BackgroundTransparency = 1
  430. Button.BorderSizePixel = 0
  431. Button.Size = UDim2.new(1, 0, 0, 20)
  432. Button.ZIndex = 2
  433. Button.Font = Enum.Font.GothamSemibold
  434. Button.Text = "      Folder"
  435. Button.TextColor3 = Color3.new(1, 1, 1)
  436. Button.TextSize = 14
  437. Button.TextXAlignment = Enum.TextXAlignment.Left
  438.  
  439. TextButton_Roundify_4px_3.Name = "TextButton_Roundify_4px"
  440. TextButton_Roundify_4px_3.Parent = Button
  441. TextButton_Roundify_4px_3.BackgroundColor3 = Color3.new(1, 1, 1)
  442. TextButton_Roundify_4px_3.BackgroundTransparency = 1
  443. TextButton_Roundify_4px_3.Size = UDim2.new(1, 0, 1, 0)
  444. TextButton_Roundify_4px_3.Image = "rbxassetid://2851929490"
  445. TextButton_Roundify_4px_3.ImageColor3 = Color3.new(0.160784, 0.290196, 0.478431)
  446. TextButton_Roundify_4px_3.ScaleType = Enum.ScaleType.Slice
  447. TextButton_Roundify_4px_3.SliceCenter = Rect.new(4, 4, 4, 4)
  448.  
  449. Toggle_2.Name = "Toggle"
  450. Toggle_2.Parent = Button
  451. Toggle_2.BackgroundColor3 = Color3.new(1, 1, 1)
  452. Toggle_2.BackgroundTransparency = 1
  453. Toggle_2.Position = UDim2.new(0, 5, 0, 0)
  454. Toggle_2.Size = UDim2.new(0, 20, 0, 20)
  455. Toggle_2.Image = "https://www.roblox.com/Thumbs/Asset.ashx?width=420&height=420&assetId=4731371541"
  456.  
  457. Objects_2.Name = "Objects"
  458. Objects_2.Parent = Folder
  459. Objects_2.BackgroundColor3 = Color3.new(1, 1, 1)
  460. Objects_2.BackgroundTransparency = 1
  461. Objects_2.Position = UDim2.new(0, 10, 0, 25)
  462. Objects_2.Size = UDim2.new(1, -10, 1, -25)
  463. Objects_2.Visible = false
  464.  
  465. UIListLayout_5.Parent = Objects_2
  466. UIListLayout_5.SortOrder = Enum.SortOrder.LayoutOrder
  467. UIListLayout_5.Padding = UDim.new(0, 5)
  468.  
  469. HorizontalAlignment.Name = "HorizontalAlignment"
  470. HorizontalAlignment.Parent = Prefabs
  471. HorizontalAlignment.BackgroundColor3 = Color3.new(1, 1, 1)
  472. HorizontalAlignment.BackgroundTransparency = 1
  473. HorizontalAlignment.Size = UDim2.new(1, 0, 0, 20)
  474.  
  475. UIListLayout_6.Parent = HorizontalAlignment
  476. UIListLayout_6.FillDirection = Enum.FillDirection.Horizontal
  477. UIListLayout_6.SortOrder = Enum.SortOrder.LayoutOrder
  478. UIListLayout_6.Padding = UDim.new(0, 5)
  479.  
  480. Console.Name = "Console"
  481. Console.Parent = Prefabs
  482. Console.BackgroundColor3 = Color3.new(1, 1, 1)
  483. Console.BackgroundTransparency = 1
  484. Console.Size = UDim2.new(1, 0, 0, 200)
  485. Console.Image = "rbxassetid://2851928141"
  486. Console.ImageColor3 = Color3.new(0.129412, 0.133333, 0.141176)
  487. Console.ScaleType = Enum.ScaleType.Slice
  488. Console.SliceCenter = Rect.new(8, 8, 8, 8)
  489.  
  490. ScrollingFrame.Parent = Console
  491. ScrollingFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  492. ScrollingFrame.BackgroundTransparency = 1
  493. ScrollingFrame.BorderSizePixel = 0
  494. ScrollingFrame.Size = UDim2.new(1, 0, 1, 1)
  495. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  496. ScrollingFrame.ScrollBarThickness = 4
  497.  
  498. Source.Name = "Source"
  499. Source.Parent = ScrollingFrame
  500. Source.BackgroundColor3 = Color3.new(1, 1, 1)
  501. Source.BackgroundTransparency = 1
  502. Source.Position = UDim2.new(0, 40, 0, 0)
  503. Source.Size = UDim2.new(1, -40, 0, 10000)
  504. Source.ZIndex = 3
  505. Source.ClearTextOnFocus = false
  506. Source.Font = Enum.Font.Code
  507. Source.MultiLine = true
  508. Source.PlaceholderColor3 = Color3.new(0.8, 0.8, 0.8)
  509. Source.Text = ""
  510. Source.TextColor3 = Color3.new(1, 1, 1)
  511. Source.TextSize = 15
  512. Source.TextStrokeColor3 = Color3.new(1, 1, 1)
  513. Source.TextWrapped = true
  514. Source.TextXAlignment = Enum.TextXAlignment.Left
  515. Source.TextYAlignment = Enum.TextYAlignment.Top
  516.  
  517. Comments.Name = "Comments"
  518. Comments.Parent = Source
  519. Comments.BackgroundColor3 = Color3.new(1, 1, 1)
  520. Comments.BackgroundTransparency = 1
  521. Comments.Size = UDim2.new(1, 0, 1, 0)
  522. Comments.ZIndex = 5
  523. Comments.Font = Enum.Font.Code
  524. Comments.Text = ""
  525. Comments.TextColor3 = Color3.new(0.231373, 0.784314, 0.231373)
  526. Comments.TextSize = 15
  527. Comments.TextXAlignment = Enum.TextXAlignment.Left
  528. Comments.TextYAlignment = Enum.TextYAlignment.Top
  529.  
  530. Globals.Name = "Globals"
  531. Globals.Parent = Source
  532. Globals.BackgroundColor3 = Color3.new(1, 1, 1)
  533. Globals.BackgroundTransparency = 1
  534. Globals.Size = UDim2.new(1, 0, 1, 0)
  535. Globals.ZIndex = 5
  536. Globals.Font = Enum.Font.Code
  537. Globals.Text = ""
  538. Globals.TextColor3 = Color3.new(0.517647, 0.839216, 0.968628)
  539. Globals.TextSize = 15
  540. Globals.TextXAlignment = Enum.TextXAlignment.Left
  541. Globals.TextYAlignment = Enum.TextYAlignment.Top
  542.  
  543. Keywords.Name = "Keywords"
  544. Keywords.Parent = Source
  545. Keywords.BackgroundColor3 = Color3.new(1, 1, 1)
  546. Keywords.BackgroundTransparency = 1
  547. Keywords.Size = UDim2.new(1, 0, 1, 0)
  548. Keywords.ZIndex = 5
  549. Keywords.Font = Enum.Font.Code
  550. Keywords.Text = ""
  551. Keywords.TextColor3 = Color3.new(0.972549, 0.427451, 0.486275)
  552. Keywords.TextSize = 15
  553. Keywords.TextXAlignment = Enum.TextXAlignment.Left
  554. Keywords.TextYAlignment = Enum.TextYAlignment.Top
  555.  
  556. RemoteHighlight.Name = "RemoteHighlight"
  557. RemoteHighlight.Parent = Source
  558. RemoteHighlight.BackgroundColor3 = Color3.new(1, 1, 1)
  559. RemoteHighlight.BackgroundTransparency = 1
  560. RemoteHighlight.Size = UDim2.new(1, 0, 1, 0)
  561. RemoteHighlight.ZIndex = 5
  562. RemoteHighlight.Font = Enum.Font.Code
  563. RemoteHighlight.Text = ""
  564. RemoteHighlight.TextColor3 = Color3.new(0, 0.568627, 1)
  565. RemoteHighlight.TextSize = 15
  566. RemoteHighlight.TextXAlignment = Enum.TextXAlignment.Left
  567. RemoteHighlight.TextYAlignment = Enum.TextYAlignment.Top
  568.  
  569. Strings.Name = "Strings"
  570. Strings.Parent = Source
  571. Strings.BackgroundColor3 = Color3.new(1, 1, 1)
  572. Strings.BackgroundTransparency = 1
  573. Strings.Size = UDim2.new(1, 0, 1, 0)
  574. Strings.ZIndex = 5
  575. Strings.Font = Enum.Font.Code
  576. Strings.Text = ""
  577. Strings.TextColor3 = Color3.new(0.678431, 0.945098, 0.584314)
  578. Strings.TextSize = 15
  579. Strings.TextXAlignment = Enum.TextXAlignment.Left
  580. Strings.TextYAlignment = Enum.TextYAlignment.Top
  581.  
  582. Tokens.Name = "Tokens"
  583. Tokens.Parent = Source
  584. Tokens.BackgroundColor3 = Color3.new(1, 1, 1)
  585. Tokens.BackgroundTransparency = 1
  586. Tokens.Size = UDim2.new(1, 0, 1, 0)
  587. Tokens.ZIndex = 5
  588. Tokens.Font = Enum.Font.Code
  589. Tokens.Text = ""
  590. Tokens.TextColor3 = Color3.new(1, 1, 1)
  591. Tokens.TextSize = 15
  592. Tokens.TextXAlignment = Enum.TextXAlignment.Left
  593. Tokens.TextYAlignment = Enum.TextYAlignment.Top
  594.  
  595. Numbers.Name = "Numbers"
  596. Numbers.Parent = Source
  597. Numbers.BackgroundColor3 = Color3.new(1, 1, 1)
  598. Numbers.BackgroundTransparency = 1
  599. Numbers.Size = UDim2.new(1, 0, 1, 0)
  600. Numbers.ZIndex = 4
  601. Numbers.Font = Enum.Font.Code
  602. Numbers.Text = ""
  603. Numbers.TextColor3 = Color3.new(1, 0.776471, 0)
  604. Numbers.TextSize = 15
  605. Numbers.TextXAlignment = Enum.TextXAlignment.Left
  606. Numbers.TextYAlignment = Enum.TextYAlignment.Top
  607.  
  608. Info.Name = "Info"
  609. Info.Parent = Source
  610. Info.BackgroundColor3 = Color3.new(1, 1, 1)
  611. Info.BackgroundTransparency = 1
  612. Info.Size = UDim2.new(1, 0, 1, 0)
  613. Info.ZIndex = 5
  614. Info.Font = Enum.Font.Code
  615. Info.Text = ""
  616. Info.TextColor3 = Color3.new(0, 0.635294, 1)
  617. Info.TextSize = 15
  618. Info.TextXAlignment = Enum.TextXAlignment.Left
  619. Info.TextYAlignment = Enum.TextYAlignment.Top
  620.  
  621. Lines.Name = "Lines"
  622. Lines.Parent = ScrollingFrame
  623. Lines.BackgroundColor3 = Color3.new(1, 1, 1)
  624. Lines.BackgroundTransparency = 1
  625. Lines.BorderSizePixel = 0
  626. Lines.Size = UDim2.new(0, 40, 0, 10000)
  627. Lines.ZIndex = 4
  628. Lines.Font = Enum.Font.Code
  629. Lines.Text = "1\n"
  630. Lines.TextColor3 = Color3.new(1, 1, 1)
  631. Lines.TextSize = 15
  632. Lines.TextWrapped = true
  633. Lines.TextYAlignment = Enum.TextYAlignment.Top
  634.  
  635. ColorPicker.Name = "ColorPicker"
  636. ColorPicker.Parent = Prefabs
  637. ColorPicker.BackgroundColor3 = Color3.new(1, 1, 1)
  638. ColorPicker.BackgroundTransparency = 1
  639. ColorPicker.Size = UDim2.new(0, 180, 0, 110)
  640. ColorPicker.Image = "rbxassetid://2851929490"
  641. ColorPicker.ImageColor3 = Color3.new(0.203922, 0.207843, 0.219608)
  642. ColorPicker.ScaleType = Enum.ScaleType.Slice
  643. ColorPicker.SliceCenter = Rect.new(4, 4, 4, 4)
  644.  
  645. Palette.Name = "Palette"
  646. Palette.Parent = ColorPicker
  647. Palette.BackgroundColor3 = Color3.new(1, 1, 1)
  648. Palette.BackgroundTransparency = 1
  649. Palette.Position = UDim2.new(0.0500000007, 0, 0.0500000007, 0)
  650. Palette.Size = UDim2.new(0, 100, 0, 100)
  651. Palette.Image = "rbxassetid://698052001"
  652. Palette.ScaleType = Enum.ScaleType.Slice
  653. Palette.SliceCenter = Rect.new(4, 4, 4, 4)
  654.  
  655. Indicator_3.Name = "Indicator"
  656. Indicator_3.Parent = Palette
  657. Indicator_3.BackgroundColor3 = Color3.new(1, 1, 1)
  658. Indicator_3.BackgroundTransparency = 1
  659. Indicator_3.Size = UDim2.new(0, 5, 0, 5)
  660. Indicator_3.ZIndex = 2
  661. Indicator_3.Image = "rbxassetid://2851926732"
  662. Indicator_3.ImageColor3 = Color3.new(0, 0, 0)
  663. Indicator_3.ScaleType = Enum.ScaleType.Slice
  664. Indicator_3.SliceCenter = Rect.new(12, 12, 12, 12)
  665.  
  666. Sample.Name = "Sample"
  667. Sample.Parent = ColorPicker
  668. Sample.BackgroundColor3 = Color3.new(1, 1, 1)
  669. Sample.BackgroundTransparency = 1
  670. Sample.Position = UDim2.new(0.800000012, 0, 0.0500000007, 0)
  671. Sample.Size = UDim2.new(0, 25, 0, 25)
  672. Sample.Image = "rbxassetid://2851929490"
  673. Sample.ScaleType = Enum.ScaleType.Slice
  674. Sample.SliceCenter = Rect.new(4, 4, 4, 4)
  675.  
  676. Saturation.Name = "Saturation"
  677. Saturation.Parent = ColorPicker
  678. Saturation.BackgroundColor3 = Color3.new(1, 1, 1)
  679. Saturation.Position = UDim2.new(0.649999976, 0, 0.0500000007, 0)
  680. Saturation.Size = UDim2.new(0, 15, 0, 100)
  681. Saturation.Image = "rbxassetid://3641079629"
  682.  
  683. Indicator_4.Name = "Indicator"
  684. Indicator_4.Parent = Saturation
  685. Indicator_4.BackgroundColor3 = Color3.new(1, 1, 1)
  686. Indicator_4.BorderSizePixel = 0
  687. Indicator_4.Size = UDim2.new(0, 20, 0, 2)
  688. Indicator_4.ZIndex = 2
  689.  
  690. Switch.Name = "Switch"
  691. Switch.Parent = Prefabs
  692. Switch.BackgroundColor3 = Color3.new(1, 1, 1)
  693. Switch.BackgroundTransparency = 1
  694. Switch.BorderSizePixel = 0
  695. Switch.Position = UDim2.new(0.229411766, 0, 0.20714286, 0)
  696. Switch.Size = UDim2.new(0, 20, 0, 20)
  697. Switch.ZIndex = 2
  698. Switch.Font = Enum.Font.SourceSans
  699. Switch.Text = ""
  700. Switch.TextColor3 = Color3.new(1, 1, 1)
  701. Switch.TextSize = 18
  702.  
  703. TextButton_Roundify_4px_4.Name = "TextButton_Roundify_4px"
  704. TextButton_Roundify_4px_4.Parent = Switch
  705. TextButton_Roundify_4px_4.BackgroundColor3 = Color3.new(1, 1, 1)
  706. TextButton_Roundify_4px_4.BackgroundTransparency = 1
  707. TextButton_Roundify_4px_4.Size = UDim2.new(1, 0, 1, 0)
  708. TextButton_Roundify_4px_4.Image = "rbxassetid://2851929490"
  709. TextButton_Roundify_4px_4.ImageColor3 = Color3.new(0.160784, 0.290196, 0.478431)
  710. TextButton_Roundify_4px_4.ImageTransparency = 0.5
  711. TextButton_Roundify_4px_4.ScaleType = Enum.ScaleType.Slice
  712. TextButton_Roundify_4px_4.SliceCenter = Rect.new(4, 4, 4, 4)
  713.  
  714. Title_3.Name = "Title"
  715. Title_3.Parent = Switch
  716. Title_3.BackgroundColor3 = Color3.new(1, 1, 1)
  717. Title_3.BackgroundTransparency = 1
  718. Title_3.Position = UDim2.new(1.20000005, 0, 0, 0)
  719. Title_3.Size = UDim2.new(0, 20, 0, 20)
  720. Title_3.Font = Enum.Font.GothamSemibold
  721. Title_3.Text = "Switch"
  722. Title_3.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  723. Title_3.TextSize = 14
  724. Title_3.TextXAlignment = Enum.TextXAlignment.Left
  725.  
  726. Button_2.Name = "Button"
  727. Button_2.Parent = Prefabs
  728. Button_2.BackgroundColor3 = Color3.new(0.160784, 0.290196, 0.478431)
  729. Button_2.BackgroundTransparency = 1
  730. Button_2.BorderSizePixel = 0
  731. Button_2.Size = UDim2.new(0, 91, 0, 20)
  732. Button_2.ZIndex = 2
  733. Button_2.Font = Enum.Font.GothamSemibold
  734. Button_2.TextColor3 = Color3.new(1, 1, 1)
  735. Button_2.TextSize = 14
  736.  
  737. TextButton_Roundify_4px_5.Name = "TextButton_Roundify_4px"
  738. TextButton_Roundify_4px_5.Parent = Button_2
  739. TextButton_Roundify_4px_5.BackgroundColor3 = Color3.new(1, 1, 1)
  740. TextButton_Roundify_4px_5.BackgroundTransparency = 1
  741. TextButton_Roundify_4px_5.Size = UDim2.new(1, 0, 1, 0)
  742. TextButton_Roundify_4px_5.Image = "rbxassetid://2851929490"
  743. TextButton_Roundify_4px_5.ImageColor3 = Color3.new(0.160784, 0.290196, 0.478431)
  744. TextButton_Roundify_4px_5.ScaleType = Enum.ScaleType.Slice
  745. TextButton_Roundify_4px_5.SliceCenter = Rect.new(4, 4, 4, 4)
  746.  
  747. DropdownButton.Name = "DropdownButton"
  748. DropdownButton.Parent = Prefabs
  749. DropdownButton.BackgroundColor3 = Color3.new(0.129412, 0.133333, 0.141176)
  750. DropdownButton.BorderSizePixel = 0
  751. DropdownButton.Size = UDim2.new(1, 0, 0, 20)
  752. DropdownButton.ZIndex = 3
  753. DropdownButton.Font = Enum.Font.GothamBold
  754. DropdownButton.Text = "      Button"
  755. DropdownButton.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  756. DropdownButton.TextSize = 14
  757. DropdownButton.TextXAlignment = Enum.TextXAlignment.Left
  758.  
  759. Keybind.Name = "Keybind"
  760. Keybind.Parent = Prefabs
  761. Keybind.BackgroundColor3 = Color3.new(1, 1, 1)
  762. Keybind.BackgroundTransparency = 1
  763. Keybind.Size = UDim2.new(0, 200, 0, 20)
  764. Keybind.Image = "rbxassetid://2851929490"
  765. Keybind.ImageColor3 = Color3.new(0.203922, 0.207843, 0.219608)
  766. Keybind.ScaleType = Enum.ScaleType.Slice
  767. Keybind.SliceCenter = Rect.new(4, 4, 4, 4)
  768.  
  769. Title_4.Name = "Title"
  770. Title_4.Parent = Keybind
  771. Title_4.BackgroundColor3 = Color3.new(1, 1, 1)
  772. Title_4.BackgroundTransparency = 1
  773. Title_4.Size = UDim2.new(0, 0, 1, 0)
  774. Title_4.Font = Enum.Font.GothamBold
  775. Title_4.Text = "Keybind"
  776. Title_4.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  777. Title_4.TextSize = 14
  778. Title_4.TextXAlignment = Enum.TextXAlignment.Left
  779.  
  780. Input.Name = "Input"
  781. Input.Parent = Keybind
  782. Input.BackgroundColor3 = Color3.new(1, 1, 1)
  783. Input.BackgroundTransparency = 1
  784. Input.BorderSizePixel = 0
  785. Input.Position = UDim2.new(1, -85, 0, 2)
  786. Input.Size = UDim2.new(0, 80, 1, -4)
  787. Input.ZIndex = 2
  788. Input.Font = Enum.Font.GothamSemibold
  789. Input.Text = "RShift"
  790. Input.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  791. Input.TextSize = 12
  792. Input.TextWrapped = true
  793.  
  794. Input_Roundify_4px.Name = "Input_Roundify_4px"
  795. Input_Roundify_4px.Parent = Input
  796. Input_Roundify_4px.BackgroundColor3 = Color3.new(1, 1, 1)
  797. Input_Roundify_4px.BackgroundTransparency = 1
  798. Input_Roundify_4px.Size = UDim2.new(1, 0, 1, 0)
  799. Input_Roundify_4px.Image = "rbxassetid://2851929490"
  800. Input_Roundify_4px.ImageColor3 = Color3.new(0.290196, 0.294118, 0.313726)
  801. Input_Roundify_4px.ScaleType = Enum.ScaleType.Slice
  802. Input_Roundify_4px.SliceCenter = Rect.new(4, 4, 4, 4)
  803.  
  804. Windows.Name = "Windows"
  805. Windows.Parent = imgui
  806. Windows.BackgroundColor3 = Color3.new(1, 1, 1)
  807. Windows.BackgroundTransparency = 1
  808. Windows.Position = UDim2.new(0, 20, 0, 20)
  809. Windows.Size = UDim2.new(1, 20, 1, -20)
  810.  
  811. --[[ Script ]]--
  812. script.Parent = imgui
  813.  
  814. local UIS = game:GetService("UserInputService")
  815. local TweenService = game:GetService("TweenService")
  816. local RS = game:GetService("RunService")
  817. local ps = game:GetService("Players")
  818.  
  819. local p = ps.LocalPlayer
  820. local mouse = p:GetMouse()
  821.  
  822. local Prefabs = script.Parent:WaitForChild("Prefabs")
  823. local Windows = script.Parent:FindFirstChild("Windows")
  824.  
  825. local checks = {
  826.     ["binding"] = false,
  827. }
  828.  
  829. UIS.InputBegan:Connect(function(input, gameProcessed)
  830.     if input.KeyCode == ((typeof(ui_options.toggle_key) == "EnumItem") and ui_options.toggle_key or Enum.KeyCode.RightShift) then
  831.         if script.Parent then
  832.             if not checks.binding then
  833.                 script.Parent.Enabled = not script.Parent.Enabled
  834.             end
  835.         end
  836.     end
  837. end)
  838.  
  839. local function Resize(part, new, _delay)
  840.     _delay = _delay or 0.5
  841.     local tweenInfo = TweenInfo.new(_delay, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
  842.     local tween = TweenService:Create(part, tweenInfo, new)
  843.     tween:Play()
  844. end
  845.  
  846. local function rgbtohsv(r, g, b) -- idk who made this function, but thanks
  847.     r, g, b = r / 255, g / 255, b / 255
  848.     local max, min = math.max(r, g, b), math.min(r, g, b)
  849.     local h, s, v
  850.     v = max
  851.  
  852.     local d = max - min
  853.     if max == 0 then
  854.         s = 0
  855.     else
  856.         s = d / max
  857.     end
  858.  
  859.     if max == min then
  860.         h = 0
  861.     else
  862.         if max == r then
  863.             h = (g - b) / d
  864.             if g < b then
  865.                 h = h + 6
  866.             end
  867.         elseif max == g then
  868.             h = (b - r) / d + 2
  869.         elseif max == b then
  870.             h = (r - g) / d + 4
  871.         end
  872.         h = h / 6
  873.     end
  874.  
  875.     return h, s, v
  876. end
  877.  
  878. local function hasprop(object, prop)
  879.     local a, b = pcall(function()
  880.         return object[tostring(prop)]
  881.     end)
  882.     if a then
  883.         return b
  884.     end
  885. end
  886.  
  887. local function gNameLen(obj)
  888.     return obj.TextBounds.X + 15
  889. end
  890.  
  891. local function gMouse()
  892.     return Vector2.new(UIS:GetMouseLocation().X + 1, UIS:GetMouseLocation().Y - 35)
  893. end
  894.  
  895. local function ripple(button, x, y)
  896.     spawn(function()
  897.         button.ClipsDescendants = true
  898.  
  899.         local circle = Prefabs:FindFirstChild("Circle"):Clone()
  900.  
  901.         circle.Parent = button
  902.         circle.ZIndex = 1000
  903.  
  904.         local new_x = x - circle.AbsolutePosition.X
  905.         local new_y = y - circle.AbsolutePosition.Y
  906.         circle.Position = UDim2.new(0, new_x, 0, new_y)
  907.  
  908.         local size = 0
  909.         if button.AbsoluteSize.X > button.AbsoluteSize.Y then
  910.              size = button.AbsoluteSize.X * 1.5
  911.         elseif button.AbsoluteSize.X < button.AbsoluteSize.Y then
  912.              size = button.AbsoluteSize.Y * 1.5
  913.         elseif button.AbsoluteSize.X == button.AbsoluteSize.Y then
  914.             size = button.AbsoluteSize.X * 1.5
  915.         end
  916.  
  917.         circle:TweenSizeAndPosition(UDim2.new(0, size, 0, size), UDim2.new(0.5, -size / 2, 0.5, -size / 2), "Out", "Quad", 0.5, false, nil)
  918.         Resize(circle, {ImageTransparency = 1}, 0.5)
  919.  
  920.         wait(0.5)
  921.         circle:Destroy()
  922.     end)
  923. end
  924.  
  925. local windows = 0
  926. local library = {}
  927.  
  928. local function format_windows()
  929.     local ull = Prefabs:FindFirstChild("UIListLayout"):Clone()
  930.     ull.Parent = Windows
  931.     local data = {}
  932.  
  933.     for i,v in next, Windows:GetChildren() do
  934.         if not (v:IsA("UIListLayout")) then
  935.             data[v] = v.AbsolutePosition
  936.         end
  937.     end
  938.  
  939.     ull:Destroy()
  940.  
  941.     for i,v in next, data do
  942.         i.Position = UDim2.new(0, v.X, 0, v.Y)
  943.     end
  944. end
  945.  
  946. function library:FormatWindows()
  947.     format_windows()
  948. end
  949.  
  950. function library:AddWindow(title, options)
  951.     windows = windows + 1
  952.     local dropdown_open = false
  953.     title = tostring(title or "New Window")
  954.     options = (typeof(options) == "table") and options or ui_options
  955.     options.tween_time = 0.1
  956.  
  957.     local Window = Prefabs:FindFirstChild("Window"):Clone()
  958.     Window.Parent = Windows
  959.     Window:FindFirstChild("Title").Text = title
  960.     Window.Size = UDim2.new(0, options.min_size.X, 0, options.min_size.Y)
  961.     Window.ZIndex = Window.ZIndex + (windows * 10)
  962.  
  963.     do -- Altering Window Color
  964.         local Title = Window:FindFirstChild("Title")
  965.         local Bar = Window:FindFirstChild("Bar")
  966.         local Base = Bar:FindFirstChild("Base")
  967.         local Top = Bar:FindFirstChild("Top")
  968.         local SplitFrame = Window:FindFirstChild("TabSelection"):FindFirstChild("Frame")
  969.         local Toggle = Bar:FindFirstChild("Toggle")
  970.  
  971.         spawn(function()
  972.             while true do
  973.                 Bar.BackgroundColor3 = options.main_color
  974.                 Base.BackgroundColor3 = options.main_color
  975.                 Base.ImageColor3 = options.main_color
  976.                 Top.ImageColor3 = options.main_color
  977.                 SplitFrame.BackgroundColor3 = options.main_color
  978.  
  979.                 RS.Heartbeat:Wait()
  980.             end
  981.         end)
  982.  
  983.     end
  984.  
  985.     local Resizer = Window:WaitForChild("Resizer")
  986.  
  987.     local window_data = {}
  988.     Window.Draggable = true
  989.  
  990.     do -- Resize Window
  991.         local oldIcon = mouse.Icon
  992.         local Entered = false
  993.         Resizer.MouseEnter:Connect(function()
  994.             Window.Draggable = false
  995.             if options.can_resize then
  996.                 oldIcon = mouse.Icon
  997.                 -- mouse.Icon = "http://www.roblox.com/asset?id=4745131330"
  998.             end
  999.             Entered = true
  1000.         end)
  1001.  
  1002.         Resizer.MouseLeave:Connect(function()
  1003.             Entered = false
  1004.             if options.can_resize then
  1005.                 mouse.Icon = oldIcon
  1006.             end
  1007.             Window.Draggable = true
  1008.         end)
  1009.  
  1010.         local Held = false
  1011.         UIS.InputBegan:Connect(function(inputObject)
  1012.             if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
  1013.                 Held = true
  1014.  
  1015.                 spawn(function() -- Loop check
  1016.                     if Entered and Resizer.Active and options.can_resize then
  1017.                         while Held and Resizer.Active do
  1018.  
  1019.                             local mouse_location = gMouse()
  1020.                             local x = mouse_location.X - Window.AbsolutePosition.X
  1021.                             local y = mouse_location.Y - Window.AbsolutePosition.Y
  1022.  
  1023.                             --
  1024.                             if x >= options.min_size.X and y >= options.min_size.Y then
  1025.                                 Resize(Window, {Size = UDim2.new(0, x, 0, y)}, options.tween_time)
  1026.                             elseif x >= options.min_size.X then
  1027.                                 Resize(Window, {Size = UDim2.new(0, x, 0, options.min_size.Y)}, options.tween_time)
  1028.                             elseif y >= options.min_size.Y then
  1029.                                 Resize(Window, {Size = UDim2.new(0, options.min_size.X, 0, y)}, options.tween_time)
  1030.                             else
  1031.                                 Resize(Window, {Size = UDim2.new(0, options.min_size.X, 0, options.min_size.Y)}, options.tween_time)
  1032.                             end
  1033.  
  1034.                             RS.Heartbeat:Wait()
  1035.                         end
  1036.                     end
  1037.                 end)
  1038.             end
  1039.         end)
  1040.         UIS.InputEnded:Connect(function(inputObject)
  1041.             if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
  1042.                 Held = false
  1043.             end
  1044.         end)
  1045.     end
  1046.  
  1047.     do -- [Open / Close] Window
  1048.         local open_close = Window:FindFirstChild("Bar"):FindFirstChild("Toggle")
  1049.         local open = true
  1050.         local canopen = true
  1051.  
  1052.         local oldwindowdata = {}
  1053.         local oldy = Window.AbsoluteSize.Y
  1054.         open_close.MouseButton1Click:Connect(function()
  1055.             if canopen then
  1056.                 canopen = false
  1057.  
  1058.                 if open then
  1059.                     -- Close
  1060.  
  1061.                     oldwindowdata = {}
  1062.                     for i,v in next, Window:FindFirstChild("Tabs"):GetChildren() do
  1063.                         oldwindowdata[v] = v.Visible
  1064.                         v.Visible = false
  1065.                     end
  1066.  
  1067.                     Resizer.Active = false
  1068.  
  1069.                     oldy = Window.AbsoluteSize.Y
  1070.                     Resize(open_close, {Rotation = 0}, options.tween_time)
  1071.                     Resize(Window, {Size = UDim2.new(0, Window.AbsoluteSize.X, 0, 26)}, options.tween_time)
  1072.                     open_close.Parent:FindFirstChild("Base").Transparency = 1
  1073.  
  1074.                 else
  1075.                     -- Open
  1076.  
  1077.                     for i,v in next, oldwindowdata do
  1078.                         i.Visible = v
  1079.                     end
  1080.  
  1081.                     Resizer.Active = true
  1082.  
  1083.                     Resize(open_close, {Rotation = 90}, options.tween_time)
  1084.                     Resize(Window, {Size = UDim2.new(0, Window.AbsoluteSize.X, 0, oldy)}, options.tween_time)
  1085.                     open_close.Parent:FindFirstChild("Base").Transparency = 0
  1086.  
  1087.                 end
  1088.  
  1089.                 open = not open
  1090.                 wait(options.tween_time)
  1091.                 canopen = true
  1092.  
  1093.             end
  1094.         end)
  1095.     end
  1096.  
  1097.     do -- UI Elements
  1098.         local tabs = Window:FindFirstChild("Tabs")
  1099.         local tab_selection = Window:FindFirstChild("TabSelection")
  1100.         local tab_buttons = tab_selection:FindFirstChild("TabButtons")
  1101.  
  1102.         do -- Add Tab
  1103.             function window_data:AddTab(tab_name)
  1104.                 local tab_data = {}
  1105.                 tab_name = tostring(tab_name or "New Tab")
  1106.                 tab_selection.Visible = true
  1107.  
  1108.                 local new_button = Prefabs:FindFirstChild("TabButton"):Clone()
  1109.                 new_button.Parent = tab_buttons
  1110.                 new_button.Text = tab_name
  1111.                 new_button.Size = UDim2.new(0, gNameLen(new_button), 0, 20)
  1112.                 new_button.ZIndex = new_button.ZIndex + (windows * 10)
  1113.                 new_button:GetChildren()[1].ZIndex = new_button:GetChildren()[1].ZIndex + (windows * 10)
  1114.  
  1115.                 local new_tab = Prefabs:FindFirstChild("Tab"):Clone()
  1116.                 new_tab.Parent = tabs
  1117.                 new_tab.ZIndex = new_tab.ZIndex + (windows * 10)
  1118.  
  1119.                 local function show()
  1120.                     if dropdown_open then return end
  1121.                     for i, v in next, tab_buttons:GetChildren() do
  1122.                         if not (v:IsA("UIListLayout")) then
  1123.                             v:GetChildren()[1].ImageColor3 = Color3.fromRGB(52, 53, 56)
  1124.                             Resize(v, {Size = UDim2.new(0, v.AbsoluteSize.X, 0, 20)}, options.tween_time)
  1125.                         end
  1126.                     end
  1127.                     for i, v in next, tabs:GetChildren() do
  1128.                         v.Visible = false
  1129.                     end
  1130.  
  1131.                     Resize(new_button, {Size = UDim2.new(0, new_button.AbsoluteSize.X, 0, 25)}, options.tween_time)
  1132.                     new_button:GetChildren()[1].ImageColor3 = Color3.fromRGB(73, 75, 79)
  1133.                     new_tab.Visible = true
  1134.                 end
  1135.  
  1136.                 new_button.MouseButton1Click:Connect(function()
  1137.                     show()
  1138.                 end)
  1139.  
  1140.                 function tab_data:Show()
  1141.                     show()
  1142.                 end
  1143.  
  1144.                 do -- Tab Elements
  1145.  
  1146.                     function tab_data:AddLabel(label_text) -- [Label]
  1147.                         label_text = tostring(label_text or "New Label")
  1148.  
  1149.                         local label = Prefabs:FindFirstChild("Label"):Clone()
  1150.  
  1151.                         label.Parent = new_tab
  1152.                         label.Text = label_text
  1153.                         label.Size = UDim2.new(0, gNameLen(label), 0, 20)
  1154.                         label.ZIndex = label.ZIndex + (windows * 10)
  1155.  
  1156.                         return label
  1157.                     end
  1158.  
  1159.                     function tab_data:AddButton(button_text, callback) -- [Button]
  1160.                         button_text = tostring(button_text or "New Button")
  1161.                         callback = typeof(callback) == "function" and callback or function()end
  1162.  
  1163.                         local button = Prefabs:FindFirstChild("Button"):Clone()
  1164.  
  1165.                         button.Parent = new_tab
  1166.                         button.Text = button_text
  1167.                         button.Size = UDim2.new(0, gNameLen(button), 0, 20)
  1168.                         button.ZIndex = button.ZIndex + (windows * 10)
  1169.                         button:GetChildren()[1].ZIndex = button:GetChildren()[1].ZIndex + (windows * 10)
  1170.  
  1171.                         spawn(function()
  1172.                             while true do
  1173.                                 if button and button:GetChildren()[1] then
  1174.                                     button:GetChildren()[1].ImageColor3 = options.main_color
  1175.                                 end
  1176.                                 RS.Heartbeat:Wait()
  1177.                             end
  1178.                         end)
  1179.  
  1180.                         button.MouseButton1Click:Connect(function()
  1181.                             ripple(button, mouse.X, mouse.Y)
  1182.                             pcall(callback)
  1183.                         end)
  1184.  
  1185.                         return button
  1186.                     end
  1187.  
  1188.                     function tab_data:AddSwitch(switch_text, callback) -- [Switch]
  1189.                         local switch_data = {}
  1190.  
  1191.                         switch_text = tostring(switch_text or "New Switch")
  1192.                         callback = typeof(callback) == "function" and callback or function()end
  1193.  
  1194.                         local switch = Prefabs:FindFirstChild("Switch"):Clone()
  1195.  
  1196.                         switch.Parent = new_tab
  1197.                         switch:FindFirstChild("Title").Text = switch_text
  1198.  
  1199.                         switch:FindFirstChild("Title").ZIndex = switch:FindFirstChild("Title").ZIndex + (windows * 10)
  1200.                         switch.ZIndex = switch.ZIndex + (windows * 10)
  1201.                         switch:GetChildren()[1].ZIndex = switch:GetChildren()[1].ZIndex + (windows * 10)
  1202.  
  1203.                         spawn(function()
  1204.                             while true do
  1205.                                 if switch and switch:GetChildren()[1] then
  1206.                                     switch:GetChildren()[1].ImageColor3 = options.main_color
  1207.                                 end
  1208.                                 RS.Heartbeat:Wait()
  1209.                             end
  1210.                         end)
  1211.  
  1212.                         local toggled = false
  1213.                         switch.MouseButton1Click:Connect(function()
  1214.                             toggled = not toggled
  1215.                             switch.Text = toggled and utf8.char(10003) or ""
  1216.                             pcall(callback, toggled)
  1217.                         end)
  1218.  
  1219.                         function switch_data:Set(bool)
  1220.                             toggled = (typeof(bool) == "boolean") and bool or false
  1221.                             switch.Text = toggled and utf8.char(10003) or ""
  1222.                             pcall(callback,toggled)
  1223.                         end
  1224.  
  1225.                         return switch_data, switch
  1226.                     end
  1227.  
  1228.                     function tab_data:AddTextBox(textbox_text, callback, textbox_options)
  1229.                         textbox_text = tostring(textbox_text or "New TextBox")
  1230.                         callback = typeof(callback) == "function" and callback or function()end
  1231.                         textbox_options = typeof(textbox_options) == "table" and textbox_options or {["clear"] = true}
  1232.                         textbox_options = {
  1233.                             ["clear"] = ((textbox_options.clear) == true)
  1234.                         }
  1235.  
  1236.                         local textbox = Prefabs:FindFirstChild("TextBox"):Clone()
  1237.  
  1238.                         textbox.Parent = new_tab
  1239.                         textbox.PlaceholderText = textbox_text
  1240.                         textbox.ZIndex = textbox.ZIndex + (windows * 10)
  1241.                         textbox:GetChildren()[1].ZIndex = textbox:GetChildren()[1].ZIndex + (windows * 10)
  1242.  
  1243.                         textbox.FocusLost:Connect(function(ep)
  1244.                             if ep then
  1245.                                 if #textbox.Text > 0 then
  1246.                                     pcall(callback, textbox.Text)
  1247.                                     if textbox_options.clear then
  1248.                                         textbox.Text = ""
  1249.                                     end
  1250.                                 end
  1251.                             end
  1252.                         end)
  1253.  
  1254.                         return textbox
  1255.                     end
  1256.  
  1257.                     function tab_data:AddSlider(slider_text, callback, slider_options)
  1258.                         local slider_data = {}
  1259.  
  1260.                         slider_text = tostring(slider_text or "New Slider")
  1261.                         callback = typeof(callback) == "function" and callback or function()end
  1262.                         slider_options = typeof(slider_options) == "table" and slider_options or {}
  1263.                         slider_options = {
  1264.                             ["min"] = slider_options.min or 0,
  1265.                             ["max"] = slider_options.max or 100,
  1266.                             ["readonly"] = slider_options.readonly or false,
  1267.                         }
  1268.  
  1269.                         local slider = Prefabs:FindFirstChild("Slider"):Clone()
  1270.  
  1271.                         slider.Parent = new_tab
  1272.                         slider.ZIndex = slider.ZIndex + (windows * 10)
  1273.  
  1274.                         local title = slider:FindFirstChild("Title")
  1275.                         local indicator = slider:FindFirstChild("Indicator")
  1276.                         local value = slider:FindFirstChild("Value")
  1277.                         title.ZIndex = title.ZIndex + (windows * 10)
  1278.                         indicator.ZIndex = indicator.ZIndex + (windows * 10)
  1279.                         value.ZIndex = value.ZIndex + (windows * 10)
  1280.  
  1281.                         title.Text = slider_text
  1282.  
  1283.                         do -- Slider Math
  1284.                             local Entered = false
  1285.                             slider.MouseEnter:Connect(function()
  1286.                                 Entered = true
  1287.                                 Window.Draggable = false
  1288.                             end)
  1289.                             slider.MouseLeave:Connect(function()
  1290.                                 Entered = false
  1291.                                 Window.Draggable = true
  1292.                             end)
  1293.  
  1294.                             local Held = false
  1295.                             UIS.InputBegan:Connect(function(inputObject)
  1296.                                 if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
  1297.                                     Held = true
  1298.  
  1299.                                     spawn(function() -- Loop check
  1300.                                         if Entered and not slider_options.readonly then
  1301.                                             while Held and (not dropdown_open) do
  1302.                                                 local mouse_location = gMouse()
  1303.                                                 local x = (slider.AbsoluteSize.X - (slider.AbsoluteSize.X - ((mouse_location.X - slider.AbsolutePosition.X)) + 1)) / slider.AbsoluteSize.X
  1304.  
  1305.                                                 local min = 0
  1306.                                                 local max = 1
  1307.  
  1308.                                                 local size = min
  1309.                                                 if x >= min and x <= max then
  1310.                                                     size = x
  1311.                                                 elseif x < min then
  1312.                                                     size = min
  1313.                                                 elseif x > max then
  1314.                                                     size = max
  1315.                                                 end
  1316.  
  1317.                                                 Resize(indicator, {Size = UDim2.new(size or min, 0, 0, 20)}, options.tween_time)
  1318.                                                 local p = math.floor((size or min) * 100)
  1319.  
  1320.                                                 local maxv = slider_options.max
  1321.                                                 local minv = slider_options.min
  1322.                                                 local diff = maxv - minv
  1323.  
  1324.                                                 local sel_value = math.floor(((diff / 100) * p) + minv)
  1325.  
  1326.                                                 value.Text = tostring(sel_value)
  1327.                                                 pcall(callback, sel_value)
  1328.  
  1329.                                                 RS.Heartbeat:Wait()
  1330.                                             end
  1331.                                         end
  1332.                                     end)
  1333.                                 end
  1334.                             end)
  1335.                             UIS.InputEnded:Connect(function(inputObject)
  1336.                                 if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
  1337.                                     Held = false
  1338.                                 end
  1339.                             end)
  1340.  
  1341.                             function slider_data:Set(new_value)
  1342.                                 new_value = tonumber(new_value) or 0
  1343.                                 new_value = (((new_value >= 0 and new_value <= 100) and new_value) / 100)
  1344.  
  1345.                                 Resize(indicator, {Size = UDim2.new(new_value or 0, 0, 0, 20)}, options.tween_time)
  1346.                                 local p = math.floor((new_value or 0) * 100)
  1347.  
  1348.                                 local maxv = slider_options.max
  1349.                                 local minv = slider_options.min
  1350.                                 local diff = maxv - minv
  1351.  
  1352.                                 local sel_value = math.floor(((diff / 100) * p) + minv)
  1353.  
  1354.                                 value.Text = tostring(sel_value)
  1355.                                 pcall(callback, sel_value)
  1356.                             end
  1357.  
  1358.                             slider_data:Set(slider_options["min"])
  1359.                         end
  1360.  
  1361.                         return slider_data, slider
  1362.                     end
  1363.  
  1364.                     function tab_data:AddKeybind(keybind_name, callback, keybind_options)
  1365.                         local keybind_data = {}
  1366.  
  1367.                         keybind_name = tostring(keybind_name or "New Keybind")
  1368.                         callback = typeof(callback) == "function" and callback or function()end
  1369.                         keybind_options = typeof(keybind_options) == "table" and keybind_options or {}
  1370.                         keybind_options = {
  1371.                             ["standard"] = keybind_options.standard or Enum.KeyCode.RightShift,
  1372.                         }
  1373.  
  1374.                         local keybind = Prefabs:FindFirstChild("Keybind"):Clone()
  1375.                         local input = keybind:FindFirstChild("Input")
  1376.                         local title = keybind:FindFirstChild("Title")
  1377.                         keybind.ZIndex = keybind.ZIndex + (windows * 10)
  1378.                         input.ZIndex = input.ZIndex + (windows * 10)
  1379.                         input:GetChildren()[1].ZIndex = input:GetChildren()[1].ZIndex + (windows * 10)
  1380.                         title.ZIndex = title.ZIndex + (windows * 10)
  1381.  
  1382.                         keybind.Parent = new_tab
  1383.                         title.Text = "  " .. keybind_name
  1384.                         keybind.Size = UDim2.new(0, gNameLen(title) + 80, 0, 20)
  1385.  
  1386.                         local shortkeys = { -- thanks to stroketon for helping me out with this
  1387.                             RightControl = 'RightCtrl',
  1388.                             LeftControl = 'LeftCtrl',
  1389.                             LeftShift = 'LShift',
  1390.                             RightShift = 'RShift',
  1391.                             MouseButton1 = "Mouse1",
  1392.                             MouseButton2 = "Mouse2"
  1393.                         }
  1394.  
  1395.                         local keybind = keybind_options.standard
  1396.  
  1397.                         function keybind_data:SetKeybind(Keybind)
  1398.                             local key = shortkeys[Keybind.Name] or Keybind.Name
  1399.                             input.Text = key
  1400.                             keybind = Keybind
  1401.                         end
  1402.  
  1403.                         UIS.InputBegan:Connect(function(a, b)
  1404.                             if checks.binding then
  1405.                                 spawn(function()
  1406.                                     wait()
  1407.                                     checks.binding = false
  1408.                                 end)
  1409.                                 return
  1410.                             end
  1411.                             if a.KeyCode == keybind and not b then
  1412.                                 pcall(callback, keybind)
  1413.                             end
  1414.                         end)
  1415.  
  1416.                         keybind_data:SetKeybind(keybind_options.standard)
  1417.  
  1418.                         input.MouseButton1Click:Connect(function()
  1419.                             if checks.binding then return end
  1420.                             input.Text = "..."
  1421.                             checks.binding = true
  1422.                             local a, b = UIS.InputBegan:Wait()
  1423.                             keybind_data:SetKeybind(a.KeyCode)
  1424.                         end)
  1425.  
  1426.                         return keybind_data, keybind
  1427.                     end
  1428.  
  1429.                     function tab_data:AddDropdown(dropdown_name, callback)
  1430.                         local dropdown_data = {}
  1431.                         dropdown_name = tostring(dropdown_name or "New Dropdown")
  1432.                         callback = typeof(callback) == "function" and callback or function()end
  1433.  
  1434.                         local dropdown = Prefabs:FindFirstChild("Dropdown"):Clone()
  1435.                         local box = dropdown:FindFirstChild("Box")
  1436.                         local objects = box:FindFirstChild("Objects")
  1437.                         local indicator = dropdown:FindFirstChild("Indicator")
  1438.                         dropdown.ZIndex = dropdown.ZIndex + (windows * 10)
  1439.                         box.ZIndex = box.ZIndex + (windows * 10)
  1440.                         objects.ZIndex = objects.ZIndex + (windows * 10)
  1441.                         indicator.ZIndex = indicator.ZIndex + (windows * 10)
  1442.                         dropdown:GetChildren()[3].ZIndex = dropdown:GetChildren()[3].ZIndex + (windows * 10)
  1443.  
  1444.                         dropdown.Parent = new_tab
  1445.                         dropdown.Text = "      " .. dropdown_name
  1446.                         box.Size = UDim2.new(1, 0, 0, 0)
  1447.  
  1448.                         local open = false
  1449.                         dropdown.MouseButton1Click:Connect(function()
  1450.                             open = not open
  1451.  
  1452.                             local len = (#objects:GetChildren() - 1) * 20
  1453.                             if #objects:GetChildren() - 1 >= 10 then
  1454.                                 len = 10 * 20
  1455.                                 objects.CanvasSize = UDim2.new(0, 0, (#objects:GetChildren() - 1) * 0.1, 0)
  1456.                             end
  1457.  
  1458.                             if open then -- Open
  1459.                                 if dropdown_open then return end
  1460.                                 dropdown_open = true
  1461.                                 Resize(box, {Size = UDim2.new(1, 0, 0, len)}, options.tween_time)
  1462.                                 Resize(indicator, {Rotation = 90}, options.tween_time)
  1463.                             else -- Close
  1464.                                 dropdown_open = false
  1465.                                 Resize(box, {Size = UDim2.new(1, 0, 0, 0)}, options.tween_time)
  1466.                                 Resize(indicator, {Rotation = -90}, options.tween_time)
  1467.                             end
  1468.  
  1469.                         end)
  1470.  
  1471.                         function dropdown_data:Add(n)
  1472.                             local object_data = {}
  1473.                             n = tostring(n or "New Object")
  1474.  
  1475.                             local object = Prefabs:FindFirstChild("DropdownButton"):Clone()
  1476.  
  1477.                             object.Parent = objects
  1478.                             object.Text = n
  1479.                             object.ZIndex = object.ZIndex + (windows * 10)
  1480.  
  1481.                             object.MouseEnter:Connect(function()
  1482.                                 object.BackgroundColor3 = options.main_color
  1483.                             end)
  1484.                             object.MouseLeave:Connect(function()
  1485.                                 object.BackgroundColor3 = Color3.fromRGB(33, 34, 36)
  1486.                             end)
  1487.  
  1488.                             if open then
  1489.                                 local len = (#objects:GetChildren() - 1) * 20
  1490.                                 if #objects:GetChildren() - 1 >= 10 then
  1491.                                     len = 10 * 20
  1492.                                     objects.CanvasSize = UDim2.new(0, 0, (#objects:GetChildren() - 1) * 0.1, 0)
  1493.                                 end
  1494.                                 Resize(box, {Size = UDim2.new(1, 0, 0, len)}, options.tween_time)
  1495.                             end
  1496.  
  1497.                             object.MouseButton1Click:Connect(function()
  1498.                                 if dropdown_open then
  1499.                                     dropdown.Text = "      [ " .. n .. " ]"
  1500.                                     dropdown_open = false
  1501.                                     open = false
  1502.                                     Resize(box, {Size = UDim2.new(1, 0, 0, 0)}, options.tween_time)
  1503.                                     Resize(indicator, {Rotation = -90}, options.tween_time)
  1504.                                     pcall(callback, n)
  1505.                                 end
  1506.                             end)
  1507.  
  1508.                             function object_data:Remove()
  1509.                                 object:Destroy()
  1510.                             end
  1511.  
  1512.                             return object, object_data
  1513.                         end
  1514.  
  1515.                         return dropdown_data, dropdown
  1516.                     end
  1517.  
  1518.                     function tab_data:AddColorPicker(callback)
  1519.                         local color_picker_data = {}
  1520.                         callback = typeof(callback) == "function" and callback or function()end
  1521.  
  1522.                         local color_picker = Prefabs:FindFirstChild("ColorPicker"):Clone()
  1523.  
  1524.                         color_picker.Parent = new_tab
  1525.                         color_picker.ZIndex = color_picker.ZIndex + (windows * 10)
  1526.  
  1527.                         local palette = color_picker:FindFirstChild("Palette")
  1528.                         local sample = color_picker:FindFirstChild("Sample")
  1529.                         local saturation = color_picker:FindFirstChild("Saturation")
  1530.                         palette.ZIndex = palette.ZIndex + (windows * 10)
  1531.                         sample.ZIndex = sample.ZIndex + (windows * 10)
  1532.                         saturation.ZIndex = saturation.ZIndex + (windows * 10)
  1533.  
  1534.                         do -- Color Picker Math
  1535.                             local h = 0
  1536.                             local s = 1
  1537.                             local v = 1
  1538.  
  1539.                             local function update()
  1540.                                 local color = Color3.fromHSV(h, s, v)
  1541.                                 sample.ImageColor3 = color
  1542.                                 saturation.ImageColor3 = Color3.fromHSV(h, 1, 1)
  1543.                                 pcall(callback, color)
  1544.                             end
  1545.  
  1546.                             do
  1547.                                 local color = Color3.fromHSV(h, s, v)
  1548.                                 sample.ImageColor3 = color
  1549.                                 saturation.ImageColor3 = Color3.fromHSV(h, 1, 1)
  1550.                             end
  1551.  
  1552.                             local Entered1, Entered2 = false, false
  1553.                             palette.MouseEnter:Connect(function()
  1554.                                 Window.Draggable = false
  1555.                                 Entered1 = true
  1556.                             end)
  1557.                             palette.MouseLeave:Connect(function()
  1558.                                 Window.Draggable = true
  1559.                                 Entered1 = false
  1560.                             end)
  1561.                             saturation.MouseEnter:Connect(function()
  1562.                                 Window.Draggable = false
  1563.                                 Entered2 = true
  1564.                             end)
  1565.                             saturation.MouseLeave:Connect(function()
  1566.                                 Window.Draggable = true
  1567.                                 Entered2 = false
  1568.                             end)
  1569.  
  1570.                             local palette_indicator = palette:FindFirstChild("Indicator")
  1571.                             local saturation_indicator = saturation:FindFirstChild("Indicator")
  1572.                             palette_indicator.ZIndex = palette_indicator.ZIndex + (windows * 10)
  1573.                             saturation_indicator.ZIndex = saturation_indicator.ZIndex + (windows * 10)
  1574.  
  1575.                             local Held = false
  1576.                             UIS.InputBegan:Connect(function(inputObject)
  1577.                                 if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
  1578.                                     Held = true
  1579.  
  1580.                                     spawn(function() -- Loop check
  1581.                                         while Held and Entered1 and (not dropdown_open) do -- Palette
  1582.                                             local mouse_location = gMouse()
  1583.  
  1584.                                             local x = ((palette.AbsoluteSize.X - (mouse_location.X - palette.AbsolutePosition.X)) + 1)
  1585.                                             local y = ((palette.AbsoluteSize.Y - (mouse_location.Y - palette.AbsolutePosition.Y)) + 1.5)
  1586.  
  1587.                                             local color = Color3.fromHSV(x / 100, y / 100, 0)
  1588.                                             h = x / 100
  1589.                                             s = y / 100
  1590.  
  1591.                                             Resize(palette_indicator, {Position = UDim2.new(0, math.abs(x - 100) - (palette_indicator.AbsoluteSize.X / 2), 0, math.abs(y - 100) - (palette_indicator.AbsoluteSize.Y / 2))}, options.tween_time)
  1592.  
  1593.                                             update()
  1594.                                             RS.Heartbeat:Wait()
  1595.                                         end
  1596.  
  1597.                                         while Held and Entered2 and (not dropdown_open) do -- Saturation
  1598.                                             local mouse_location = gMouse()
  1599.                                             local y = ((palette.AbsoluteSize.Y - (mouse_location.Y - palette.AbsolutePosition.Y)) + 1.5)
  1600.                                             v = y / 100
  1601.  
  1602.                                             Resize(saturation_indicator, {Position = UDim2.new(0, 0, 0, math.abs(y - 100))}, options.tween_time)
  1603.  
  1604.                                             update()
  1605.                                             RS.Heartbeat:Wait()
  1606.                                         end
  1607.                                     end)
  1608.                                 end
  1609.                             end)
  1610.                             UIS.InputEnded:Connect(function(inputObject)
  1611.                                 if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
  1612.                                     Held = false
  1613.                                 end
  1614.                             end)
  1615.  
  1616.                             function color_picker_data:Set(color)
  1617.                                 color = typeof(color) == "Color3" and color or Color3.new(1, 1, 1)
  1618.                                 local h2, s2, v2 = rgbtohsv(color.r * 255, color.g * 255, color.b * 255)
  1619.                                 sample.ImageColor3 = color
  1620.                                 saturation.ImageColor3 = Color3.fromHSV(h2, 1, 1)
  1621.                                 pcall(callback, color)
  1622.                             end
  1623.                         end
  1624.  
  1625.                         return color_picker_data, color_picker
  1626.                     end
  1627.  
  1628.                     function tab_data:AddConsole(console_options)
  1629.                         local console_data = {}
  1630.  
  1631.                         console_options = typeof(console_options) == "table" and console_options or {["readonly"] = true,["full"] = false,}
  1632.                         console_options = {
  1633.                             ["y"] = tonumber(console_options.y) or 200,
  1634.                             ["source"] = console_options.source or "Logs",
  1635.                             ["readonly"] = ((console_options.readonly) == true),
  1636.                             ["full"] = ((console_options.full) == true),
  1637.                         }
  1638.  
  1639.                         local console = Prefabs:FindFirstChild("Console"):Clone()
  1640.  
  1641.                         console.Parent = new_tab
  1642.                         console.ZIndex = console.ZIndex + (windows * 10)
  1643.                         console.Size = UDim2.new(1, 0, console_options.full and 1 or 0, console_options.y)
  1644.  
  1645.                         local sf = console:GetChildren()[1]
  1646.                         local Source = sf:FindFirstChild("Source")
  1647.                         local Lines = sf:FindFirstChild("Lines")
  1648.                         Source.ZIndex = Source.ZIndex + (windows * 10)
  1649.                         Lines.ZIndex = Lines.ZIndex + (windows * 10)
  1650.  
  1651.                         Source.TextEditable = not console_options.readonly
  1652.  
  1653.                         do -- Syntax Zindex
  1654.                             for i,v in next, Source:GetChildren() do
  1655.                                 v.ZIndex = v.ZIndex + (windows * 10) + 1
  1656.                             end
  1657.                         end
  1658.                         Source.Comments.ZIndex = Source.Comments.ZIndex + 1
  1659.  
  1660.                         do -- Highlighting (thanks to whoever made this)
  1661.                             local lua_keywords = {"and", "break", "do", "else", "elseif", "end", "false", "for", "function", "goto", "if", "in", "local", "nil", "not", "or", "repeat", "return", "then", "true", "until", "while"}
  1662.                             local global_env = {"getrawmetatable", "newcclosure", "islclosure", "setclipboard", "game", "workspace", "script", "math", "string", "table", "print", "wait", "BrickColor", "Color3", "next", "pairs", "ipairs", "select", "unpack", "Instance", "Vector2", "Vector3", "CFrame", "Ray", "UDim2", "Enum", "assert", "error", "warn", "tick", "loadstring", "_G", "shared", "getfenv", "setfenv", "newproxy", "setmetatable", "getmetatable", "os", "debug", "pcall", "ypcall", "xpcall", "rawequal", "rawset", "rawget", "tonumber", "tostring", "type", "typeof", "_VERSION", "coroutine", "delay", "require", "spawn", "LoadLibrary", "settings", "stats", "time", "UserSettings", "version", "Axes", "ColorSequence", "Faces", "ColorSequenceKeypoint", "NumberRange", "NumberSequence", "NumberSequenceKeypoint", "gcinfo", "elapsedTime", "collectgarbage", "PhysicalProperties", "Rect", "Region3", "Region3int16", "UDim", "Vector2int16", "Vector3int16", "load", "fire", "Fire"}
  1663.  
  1664.                             local Highlight = function(string, keywords)
  1665.                                 local K = {}
  1666.                                 local S = string
  1667.                                 local Token =
  1668.                                 {
  1669.                                     ["="] = true,
  1670.                                     ["."] = true,
  1671.                                     [","] = true,
  1672.                                     ["("] = true,
  1673.                                     [")"] = true,
  1674.                                     ["["] = true,
  1675.                                     ["]"] = true,
  1676.                                     ["{"] = true,
  1677.                                     ["}"] = true,
  1678.                                     [":"] = true,
  1679.                                     ["*"] = true,
  1680.                                     ["/"] = true,
  1681.                                     ["+"] = true,
  1682.                                     ["-"] = true,
  1683.                                     ["%"] = true,
  1684.                                     [";"] = true,
  1685.                                     ["~"] = true
  1686.                                 }
  1687.                                 for i, v in pairs(keywords) do
  1688.                                     K[v] = true
  1689.                                 end
  1690.                                 S = S:gsub(".", function(c)
  1691.                                     if Token[c] ~= nil then
  1692.                                         return "\32"
  1693.                                     else
  1694.                                         return c
  1695.                                     end
  1696.                                 end)
  1697.                                 S = S:gsub("%S+", function(c)
  1698.                                     if K[c] ~= nil then
  1699.                                         return c
  1700.                                     else
  1701.                                         return (" "):rep(#c)
  1702.                                     end
  1703.                                 end)
  1704.  
  1705.                                 return S
  1706.                             end
  1707.  
  1708.                             local hTokens = function(string)
  1709.                                 local Token =
  1710.                                 {
  1711.                                     ["="] = true,
  1712.                                     ["."] = true,
  1713.                                     [","] = true,
  1714.                                     ["("] = true,
  1715.                                     [")"] = true,
  1716.                                     ["["] = true,
  1717.                                     ["]"] = true,
  1718.                                     ["{"] = true,
  1719.                                     ["}"] = true,
  1720.                                     [":"] = true,
  1721.                                     ["*"] = true,
  1722.                                     ["/"] = true,
  1723.                                     ["+"] = true,
  1724.                                     ["-"] = true,
  1725.                                     ["%"] = true,
  1726.                                     [";"] = true,
  1727.                                     ["~"] = true
  1728.                                 }
  1729.                                 local A = ""
  1730.                                 string:gsub(".", function(c)
  1731.                                     if Token[c] ~= nil then
  1732.                                         A = A .. c
  1733.                                     elseif c == "\n" then
  1734.                                         A = A .. "\n"
  1735.                                     elseif c == "\t" then
  1736.                                         A = A .. "\t"
  1737.                                     else
  1738.                                         A = A .. "\32"
  1739.                                     end
  1740.                                 end)
  1741.  
  1742.                                 return A
  1743.                             end
  1744.  
  1745.                             local strings = function(string)
  1746.                                 local highlight = ""
  1747.                                 local quote = false
  1748.                                 string:gsub(".", function(c)
  1749.                                     if quote == false and c == "\34" then
  1750.                                         quote = true
  1751.                                     elseif quote == true and c == "\34" then
  1752.                                         quote = false
  1753.                                     end
  1754.                                     if quote == false and c == "\34" then
  1755.                                         highlight = highlight .. "\34"
  1756.                                     elseif c == "\n" then
  1757.                                         highlight = highlight .. "\n"
  1758.                                     elseif c == "\t" then
  1759.                                         highlight = highlight .. "\t"
  1760.                                     elseif quote == true then
  1761.                                         highlight = highlight .. c
  1762.                                     elseif quote == false then
  1763.                                         highlight = highlight .. "\32"
  1764.                                     end
  1765.                                 end)
  1766.  
  1767.                                 return highlight
  1768.                             end
  1769.  
  1770.                             local info = function(string)
  1771.                                 local highlight = ""
  1772.                                 local quote = false
  1773.                                 string:gsub(".", function(c)
  1774.                                     if quote == false and c == "[" then
  1775.                                         quote = true
  1776.                                     elseif quote == true and c == "]" then
  1777.                                         quote = false
  1778.                                     end
  1779.                                     if quote == false and c == "\]" then
  1780.                                         highlight = highlight .. "\]"
  1781.                                     elseif c == "\n" then
  1782.                                         highlight = highlight .. "\n"
  1783.                                     elseif c == "\t" then
  1784.                                         highlight = highlight .. "\t"
  1785.                                     elseif quote == true then
  1786.                                         highlight = highlight .. c
  1787.                                     elseif quote == false then
  1788.                                         highlight = highlight .. "\32"
  1789.                                     end
  1790.                                 end)
  1791.  
  1792.                                 return highlight
  1793.                             end
  1794.  
  1795.                             local comments = function(string)
  1796.                                 local ret = ""
  1797.                                 string:gsub("[^\r\n]+", function(c)
  1798.                                     local comm = false
  1799.                                     local i = 0
  1800.                                     c:gsub(".", function(n)
  1801.                                         i = i + 1
  1802.                                         if c:sub(i, i + 1) == "--" then
  1803.                                             comm = true
  1804.                                         end
  1805.                                         if comm == true then
  1806.                                             ret = ret .. n
  1807.                                         else
  1808.                                             ret = ret .. "\32"
  1809.                                         end
  1810.                                     end)
  1811.                                     ret = ret
  1812.                                 end)
  1813.  
  1814.                                 return ret
  1815.                             end
  1816.  
  1817.                             local numbers = function(string)
  1818.                                 local A = ""
  1819.                                 string:gsub(".", function(c)
  1820.                                     if tonumber(c) ~= nil then
  1821.                                         A = A .. c
  1822.                                     elseif c == "\n" then
  1823.                                         A = A .. "\n"
  1824.                                     elseif c == "\t" then
  1825.                                         A = A .. "\t"
  1826.                                     else
  1827.                                         A = A .. "\32"
  1828.                                     end
  1829.                                 end)
  1830.  
  1831.                                 return A
  1832.                             end
  1833.  
  1834.                             local highlight_lua = function(type)
  1835.                                 if type == "Text" then
  1836.                                     Source.Text = Source.Text:gsub("\13", "")
  1837.                                     Source.Text = Source.Text:gsub("\t", "      ")
  1838.                                     local s = Source.Text
  1839.  
  1840.                                     Source.Keywords.Text = Highlight(s, lua_keywords)
  1841.                                     Source.Globals.Text = Highlight(s, global_env)
  1842.                                     Source.RemoteHighlight.Text = Highlight(s, {"FireServer", "fireServer", "InvokeServer", "invokeServer"})
  1843.                                     Source.Tokens.Text = hTokens(s)
  1844.                                     Source.Numbers.Text = numbers(s)
  1845.                                     Source.Strings.Text = strings(s)
  1846.                                     Source.Comments.Text = comments(s)
  1847.  
  1848.                                     local lin = 1
  1849.                                     s:gsub("\n", function()
  1850.                                         lin = lin + 1
  1851.                                     end)
  1852.  
  1853.                                     Lines.Text = ""
  1854.                                     for i = 1, lin do
  1855.                                         Lines.Text = Lines.Text .. i .. "\n"
  1856.                                     end
  1857.  
  1858.                                     sf.CanvasSize = UDim2.new(0, 0, lin * 0.153846154, 0)
  1859.                                 end
  1860.  
  1861.                             local highlight_logs = function(type)
  1862.                             end
  1863.                                 if type == "Text" then
  1864.                                     Source.Text = Source.Text:gsub("\13", "")
  1865.                                     Source.Text = Source.Text:gsub("\t", "      ")
  1866.                                     local s = Source.Text
  1867.  
  1868.                                     Source.Info.Text = info(s)
  1869.  
  1870.                                     local lin = 1
  1871.                                     s:gsub("\n", function()
  1872.                                         lin = lin + 1
  1873.                                     end)
  1874.  
  1875.                                     sf.CanvasSize = UDim2.new(0, 0, lin * 0.153846154, 0)
  1876.                                 end
  1877.                             end
  1878.  
  1879.                             if console_options.source == "Lua" then
  1880.                                 highlight_lua("Text")
  1881.                                 Source.Changed:Connect(highlight_lua)
  1882.                             elseif console_options.source == "Logs" then
  1883.                                 Lines.Visible = false
  1884.  
  1885.                                 highlight_logs("Text")
  1886.                                 Source.Changed:Connect(highlight_logs)
  1887.                             end
  1888.  
  1889.                             function console_data:Set(code)
  1890.                                 Source.Text = tostring(code)
  1891.                             end
  1892.  
  1893.                             function console_data:Get()
  1894.                                 return Source.Text
  1895.                             end
  1896.  
  1897.                             function console_data:Log(msg)
  1898.                                 Source.Text = Source.Text .. "[*] " .. tostring(msg) .. "\n"
  1899.                             end
  1900.  
  1901.                         end
  1902.  
  1903.                         return console_data, console
  1904.                     end
  1905.  
  1906.                     function tab_data:AddHorizontalAlignment()
  1907.                         local ha_data = {}
  1908.  
  1909.                         local ha = Prefabs:FindFirstChild("HorizontalAlignment"):Clone()
  1910.                         ha.Parent = new_tab
  1911.  
  1912.                         function ha_data:AddButton(...)
  1913.                             local data, object
  1914.                             local ret = {tab_data:AddButton(...)}
  1915.                             if typeof(ret[1]) == "table" then
  1916.                                 data = ret[1]
  1917.                                 object = ret[2]
  1918.                                 object.Parent = ha
  1919.                                 return data, object
  1920.                             else
  1921.                                 object = ret[1]
  1922.                                 object.Parent = ha
  1923.                                 return object
  1924.                             end
  1925.                         end
  1926.  
  1927.                         return ha_data, ha
  1928.                     end
  1929.  
  1930.                     function tab_data:AddFolder(folder_name) -- [Folder]
  1931.                         local folder_data = {}
  1932.  
  1933.                         folder_name = tostring(folder_name or "New Folder")
  1934.  
  1935.                         local folder = Prefabs:FindFirstChild("Folder"):Clone()
  1936.                         local button = folder:FindFirstChild("Button")
  1937.                         local objects = folder:FindFirstChild("Objects")
  1938.                         local toggle = button:FindFirstChild("Toggle")
  1939.                         folder.ZIndex = folder.ZIndex + (windows * 10)
  1940.                         button.ZIndex = button.ZIndex + (windows * 10)
  1941.                         objects.ZIndex = objects.ZIndex + (windows * 10)
  1942.                         toggle.ZIndex = toggle.ZIndex + (windows * 10)
  1943.                         button:GetChildren()[1].ZIndex = button:GetChildren()[1].ZIndex + (windows * 10)
  1944.  
  1945.                         folder.Parent = new_tab
  1946.                         button.Text = "      " .. folder_name
  1947.  
  1948.                         spawn(function()
  1949.                             while true do
  1950.                                 if button and button:GetChildren()[1] then
  1951.                                     button:GetChildren()[1].ImageColor3 = options.main_color
  1952.                                 end
  1953.                                 RS.Heartbeat:Wait()
  1954.                             end
  1955.                         end)
  1956.  
  1957.                         local function gFolderLen()
  1958.                             local n = 25
  1959.                             for i,v in next, objects:GetChildren() do
  1960.                                 if not (v:IsA("UIListLayout")) then
  1961.                                     n = n + v.AbsoluteSize.Y + 5
  1962.                                 end
  1963.                             end
  1964.                             return n
  1965.                         end
  1966.  
  1967.                         local open = false
  1968.                         button.MouseButton1Click:Connect(function()
  1969.                             if open then -- Close
  1970.                                 Resize(toggle, {Rotation = 0}, options.tween_time)
  1971.                                 objects.Visible = false
  1972.                             else -- Open
  1973.                                 Resize(toggle, {Rotation = 90}, options.tween_time)
  1974.                                 objects.Visible = true
  1975.                             end
  1976.  
  1977.                             open = not open
  1978.                         end)
  1979.  
  1980.                         spawn(function()
  1981.                             while true do
  1982.                                 Resize(folder, {Size = UDim2.new(1, 0, 0, (open and gFolderLen() or 20))}, options.tween_time)
  1983.                                 wait()
  1984.                             end
  1985.                         end)
  1986.  
  1987.                         for i,v in next, tab_data do
  1988.                             folder_data[i] = function(...)
  1989.                                 local data, object
  1990.                                 local ret = {v(...)}
  1991.                                 if typeof(ret[1]) == "table" then
  1992.                                     data = ret[1]
  1993.                                     object = ret[2]
  1994.                                     object.Parent = objects
  1995.                                     return data, object
  1996.                                 else
  1997.                                     object = ret[1]
  1998.                                     object.Parent = objects
  1999.                                     return object
  2000.                                 end
  2001.                             end
  2002.                         end
  2003.  
  2004.                         return folder_data, folder
  2005.                     end
  2006.  
  2007.                 end
  2008.  
  2009.                 return tab_data, new_tab
  2010.             end
  2011.         end
  2012.     end
  2013.  
  2014.     do
  2015.         for i, v in next, Window:GetDescendants() do
  2016.             if hasprop(v, "ZIndex") then
  2017.                 v.ZIndex = v.ZIndex + (windows * 10)
  2018.             end
  2019.         end
  2020.     end
  2021.  
  2022.     return window_data, Window
  2023. end
  2024.  
  2025. ---------------------------------------------------------------------------------------------------------------------------------------------
  2026. ---------------------------------------------------------------------------------------------------------------------------------------------
  2027. ---------------------------------------------------------------------------------------------------------------------------------------------
  2028. ---------------------------------------------------------------------------------------------------------------------------------------------
  2029. ---------------------------------------------------------------------------------------------------------------------------------------------
  2030. ---------------------------------------------------------------------------------------------------------------------------------------------
  2031. ---------------------------------------------------------------------------------------------------------------------------------------------
  2032. ---------------------------------------------------------------------------------------------------------------------------------------------
  2033. ---------------------------------------------------------------------------------------------------------------------------------------------
  2034. ---------------------------------------------------------------------------------------------------------------------------------------------
  2035. ---------------------------------------------------------------------------------------------------------------------------------------------
  2036. ---------------------------------------------------------------------------------------------------------------------------------------------
  2037. ---------------------------------------------------------------------------------------------------------------------------------------------
  2038. ---------------------------------------------------------------------------------------------------------------------------------------------
  2039. ---------------------------------------------------------------------------------------------------------------------------------------------
  2040. ---------------------------------------------------------------------------------------------------------------------------------------------
  2041. ---------------------------------------------------------------------------------------------------------------------------------------------
  2042. ---------------------------------------------------------------------------------------------------------------------------------------------
  2043. ---------------------------------------------------------------------------------------------------------------------------------------------
  2044. ---------------------------------------------------------------------------------------------------------------------------------------------
  2045. ---------------------------------------------------------------------------------------------------------------------------------------------
  2046. ---------------------------------------------------------------------------------------------------------------------------------------------
  2047. ---------------------------------------------------------------------------------------------------------------------------------------------
  2048. ---------------------------------------------------------------------------------------------------------------------------------------------
  2049.  
  2050. local currVersion = "v2.1"
  2051.  
  2052. local Window = library:AddWindow("Fishing Simulator " .. currVersion, {
  2053.     main_color = Color3.fromRGB(40, 75, 120),
  2054.     min_size = Vector2.new(425, 500),
  2055.     toggle_key = Enum.KeyCode.RightControl,
  2056.     can_resize = true,
  2057. })
  2058.  
  2059. local bLocation
  2060. function teleport(loc)
  2061.     bLocation = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  2062.     if game.Players.LocalPlayer.Character.Humanoid.Sit then
  2063.         game.Players.LocalPlayer.Character.Humanoid.Sit = false
  2064.     end
  2065.     wait()
  2066.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = loc
  2067. end
  2068.  
  2069. local mainTab = Window:AddTab("Main")
  2070. mainTab:Show()
  2071.  
  2072. mainTab:AddLabel("Client Sided")
  2073.  
  2074. mainTab:AddButton("Toggle All Gamepasses",
  2075.     function()
  2076.         for i, v in pairs(plr.LocalData.Gamepasses:GetChildren()) do
  2077.             v.Value = not v.Value
  2078.         end
  2079.     end
  2080. )
  2081.  
  2082. mainTab:AddLabel("Barriers")
  2083.  
  2084. mainTab:AddButton("Remove Level Barriers",
  2085.     function()
  2086.         for i, v in pairs(game.Workspace.IgnoredByMouse.LockedAreas:GetDescendants()) do
  2087.             v:Destroy()
  2088.         end
  2089.     end
  2090. )
  2091.  
  2092. mainTab:AddButton("Remove Boat Barriers",
  2093.     function()
  2094.         for i, v in pairs(game.Workspace.IgnoredByMouse.BoatBorders:GetDescendants()) do
  2095.             v:Destroy()
  2096.         end
  2097.     end
  2098. )
  2099.  
  2100. mainTab:AddLabel("Character")
  2101.  
  2102. local hDied
  2103. local hRespawned
  2104. local bRespawn
  2105. mainTab:AddSwitch("Respawn Where Died",
  2106.     function(bool)
  2107.         if bool then
  2108.             hDied = game.Players.LocalPlayer.Character:WaitForChild("Humanoid").Died:Connect(
  2109.                 function()
  2110.                     bRespawn = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  2111.                 end
  2112.             )
  2113.  
  2114.             hRespawned = game.Players.LocalPlayer.CharacterAdded:Connect(
  2115.                 function()
  2116.                     game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame = bRespawn
  2117.                 end
  2118.             )
  2119.         else
  2120.             hDied:Disconnect()
  2121.             hRespawned:Disconnect()
  2122.         end
  2123.     end
  2124. )
  2125.  
  2126. local sSpeed = mainTab:AddSlider("Speed",
  2127.     function(speedVal)
  2128.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = speedVal
  2129.     end, {
  2130.         ["min"] = 0,
  2131.         ["max"] = 100,
  2132.         ["readonly"] = false,
  2133.     }
  2134. )
  2135. sSpeed:Set(16)
  2136.  
  2137. local sJump = mainTab:AddSlider("Jump",
  2138.     function(jumpVal)
  2139.         game.Players.LocalPlayer.Character.Humanoid.JumpPower = jumpVal
  2140.     end, {
  2141.         ["min"] = 0,
  2142.         ["max"] = 1000,
  2143.         ["readonly"] = false,
  2144.     }
  2145. )
  2146. sJump:Set(4.0)
  2147.  
  2148. mainTab:AddLabel("Boat")
  2149.  
  2150. mainTab:AddButton("Teleport to Boat",
  2151.     function()
  2152.         for i, v in pairs(game.Workspace:GetChildren()) do
  2153.             if v.Name == (game.Players.LocalPlayer.Name .. "'s Boat") then
  2154.                 teleport(v.Controller.VehicleSeat.CFrame + Vector3.new(0, 3, 0))
  2155.             end
  2156.         end
  2157.     end
  2158. )
  2159.  
  2160. local sBoat = mainTab:AddSlider("Boat Speed",
  2161.     function(speedVal)
  2162.         for i, v in pairs(game.Workspace:GetChildren()) do
  2163.             if v.Name == (game.Players.LocalPlayer.Name .. "'s Boat") then
  2164.                 v.Controller.VehicleSeat.MaxSpeed = speedVal
  2165.             end
  2166.         end
  2167.     end, {
  2168.         ["min"] = 0,
  2169.         ["max"] = 1000,
  2170.         ["readonly"] = false,
  2171.     }
  2172. )
  2173.  
  2174.  
  2175. local fishTab = Window:AddTab("Fishing")
  2176.  
  2177. local legendToggle = false
  2178.  
  2179. fishTab:AddSwitch("Toggle Legend+ Only",
  2180.     function(bool)
  2181.         legendToggle = bool
  2182.     end
  2183. )
  2184.  
  2185. fishTab:AddLabel("Extra Sensory Perception")
  2186.  
  2187. function resetSpots()
  2188.     local hSpots = game.Workspace:FindFirstChild("hSpots")
  2189.     if hSpots then hSpots:Destroy() end
  2190.  
  2191.     local folder = Instance.new("Folder", game.Workspace)
  2192.     folder.Name = "hSpots"
  2193.  
  2194.     for i, v in pairs (game.ReplicatedStorage.CloudClientResources.Communication.Custom.HotFishingAreas:GetChildren()) do
  2195.         local newHotspot = Instance.new("Part", game.Workspace.hSpots)
  2196.         newHotspot.BrickColor = BrickColor.new("Hot Pink")
  2197.         newHotspot.CFrame = CFrame.new(v.Value)
  2198.         newHotspot.CanCollide = false
  2199.         newHotspot.Anchored = true
  2200.         newHotspot.Size = Vector3.new(0, 0, 0)
  2201.  
  2202.         local x = Instance.new('BillboardGui', newHotspot)
  2203.         x.AlwaysOnTop = true
  2204.         x.Size = UDim2.new(1, 0, 1, 0)
  2205.         local b = Instance.new('Frame', x)
  2206.         b.Size = UDim2.new(1, 0, 1, 0)
  2207.         x.Adornee = newHotspot
  2208.         b.BackgroundColor3 = Color3.new(1, 0, 0)
  2209.     end
  2210. end
  2211.  
  2212. local bHotspots = nil
  2213. local firstVal
  2214. fishTab:AddSwitch("Find Hotspots",
  2215.     function(bool)
  2216.         if bool then
  2217.             resetSpots()
  2218.             firstVal = game.ReplicatedStorage.CloudClientResources.Communication.Custom.HotFishingAreas:FindFirstChild("Value").Value
  2219.             bHotspots = game.ReplicatedStorage.CloudClientResources.Communication.Custom.HotFishingAreas.ChildAdded:Connect(
  2220.                 function()
  2221.                     if firstVal ~= game.ReplicatedStorage.CloudClientResources.Communication.Custom.HotFishingAreas:FindFirstChild("Value").Value then
  2222.                         resetSpots()
  2223.                         firstVal = game.ReplicatedStorage.CloudClientResources.Communication.Custom.HotFishingAreas:FindFirstChild("Value").Value
  2224.                     end
  2225.                     wait(3)
  2226.                 end
  2227.             )
  2228.         else
  2229.             local hSpots = game.Workspace:FindFirstChild("hSpots")
  2230.             if hSpots then hSpots:Destroy() end
  2231.             bHotspots:Disconnect()
  2232.         end
  2233.     end
  2234. )
  2235.  
  2236. local bSharks
  2237. fishTab:AddSwitch("Find Sea Creatures",
  2238.     function(bool)
  2239.         if bool then
  2240.             for i, v in pairs(game.Workspace:GetChildren()) do
  2241.                 if v:FindFirstChild("Health") and v:FindFirstChild("IsSeaMonster") then
  2242.                     local x = Instance.new('BillboardGui', v.HumanoidRootPart)
  2243.                     x.AlwaysOnTop = true
  2244.                     x.Size = UDim2.new(10, 0, 10, 0)
  2245.                     x.Name = "noCharMatch"
  2246.                     local label = Instance.new("TextLabel", x)
  2247.                     label.TextColor3 = Color3.fromRGB(1, 1, 1)
  2248.                     label.BorderSizePixel = 0
  2249.                     label.BackgroundTransparency = 1
  2250.                     label.TextScaled = true
  2251.                     label.Text = v.Name
  2252.                     label.Size = UDim2.new(8, 0, 6, 0)
  2253.                 end
  2254.             end
  2255.  
  2256.             bSharks = game.Workspace.ChildAdded:Connect(
  2257.                 function(child)
  2258.                     if child:FindFirstChild("Health") and child:FindFirstChild("IsSeaMonster") then
  2259.                         local x = Instance.new('BillboardGui', v.HumanoidRootPart)
  2260.                         x.AlwaysOnTop = true
  2261.                         x.Size = UDim2.new(10, 0, 10, 0)
  2262.                         x.Name = "noCharMatch"
  2263.                         local label = Instance.new("TextLabel", x)
  2264.                         label.TextColor3 = Color3.fromRGB(1, 1, 1)
  2265.                         label.BorderSizePixel = 0
  2266.                         label.BackgroundTransparency = 1
  2267.                         label.TextScaled = true
  2268.                         label.Text = v.Name
  2269.                         label.Size = UDim2.new(8, 0, 6, 0)
  2270.                     end
  2271.                 end
  2272.             )
  2273.         else
  2274.             for p, q in pairs(game.Workspace:GetDescendants()) do
  2275.                 if q.Name == "noCharMatch" then
  2276.                     q:Destroy()
  2277.                 end
  2278.             end
  2279.             bSharks:Disconnect()
  2280.         end
  2281.     end
  2282. )
  2283.  
  2284. fishTab:AddLabel("Quick Cast")
  2285.  
  2286. fishTab:AddButton("Catch Current Fish",
  2287.     function()
  2288.         game.ReplicatedStorage.CloudClientResources.Communication.Events.FishedDone:FireServer()
  2289.         wait()
  2290.         game.ReplicatedStorage.CloudClientResources.Communication.Events.ResetFishingRod:FireServer()
  2291.     end
  2292. )
  2293.  
  2294. local rarType = {
  2295.     ["None"] = 1,
  2296.     ["Albino"] = 2,
  2297.     ["Common Glow"] = 3,
  2298.     ["Uncommon Glow"] = 4,
  2299.     ["Rare Glow"] = 5,
  2300.     ["Epic Glow"] = 6,
  2301.     ["Legendary Glow"] = 7,
  2302.     ["Mythic Glow"] = 8,
  2303. };
  2304. fishTab:AddButton("Sell All",
  2305.     function()
  2306.         if not legendToggle then
  2307.             game.ReplicatedStorage.CloudClientResources.Communication.Functions.SellEverything:InvokeServer()
  2308.         else
  2309.             for i, v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  2310.                 if v:FindFirstChild("IsFishObject") then
  2311.                     if v.RarityLevel.Value < 5 then
  2312.                         local setRat = ""
  2313.                         if v.Variations:FindFirstChild("Variation") then
  2314.                             setRat = tostring(rarType[v.Variations.Variation.Value])
  2315.                         else
  2316.                             setRat = "1"
  2317.                         end
  2318.                         game.ReplicatedStorage.CloudClientResources.Communication.Functions.SellItem:InvokeServer(v.Name .. setRat .. v.Variations.Size.Value, 1)
  2319.                     end
  2320.                 end
  2321.                 wait(0.01)
  2322.             end
  2323.         end
  2324.     end
  2325. )
  2326.  
  2327. fishTab:AddButton("Kill Shark",
  2328.     function()
  2329.         for i, v in pairs(game.Workspace:GetChildren()) do
  2330.             if v:FindFirstChild("Health") and v:FindFirstChild("IsSeaMonster") and v.Name == "GreatWhiteShark" then
  2331.                 if game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool") then
  2332.                     teleport(v.HumanoidRootPart.CFrame + Vector3.new(0, 30, 0))
  2333.                     wait(0.25)
  2334.                     game.ReplicatedStorage.CloudClientResources.Communication.Events.DamageSeaMonster:FireServer(v, v.Health, true)
  2335.                     wait(0.5)
  2336.                     teleport(bLocation)
  2337.                     break
  2338.                 elseif game.Players.LocalPlayer:FindFirstChild("Backpack") then
  2339.                     for p, q in pairs(game.Players.LocalPlayer:FindFirstChild("Backpack"):GetChildren()) do
  2340.                         if q:FindFirstChild("Damage") then
  2341.                             q.Parent = game.Players.LocalPlayer.Character
  2342.                         end
  2343.                     end
  2344.                     wait()
  2345.                     teleport(v.HumanoidRootPart.CFrame + Vector3.new(0, 30, 0))
  2346.                     wait(0.25)
  2347.                     game.ReplicatedStorage.CloudClientResources.Communication.Events.DamageSeaMonster:FireServer(v, v.Health, true)
  2348.                     wait(0.5)
  2349.                     teleport(bLocation)
  2350.                     break
  2351.                 end
  2352.             end
  2353.         end
  2354.     end
  2355. )
  2356.  
  2357. fishTab:AddButton("Kill Orca",
  2358.     function()
  2359.         for i, v in pairs(game.Workspace:GetChildren()) do
  2360.             if v:FindFirstChild("Health") and v:FindFirstChild("IsSeaMonster") and v.Name == "KillerWhale" then
  2361.                 if game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool") then
  2362.                     teleport(v.HumanoidRootPart.CFrame + Vector3.new(0, 30, 0))
  2363.                     wait(0.25)
  2364.                     game.ReplicatedStorage.CloudClientResources.Communication.Events.DamageSeaMonster:FireServer(v, v.Health, true)
  2365.                     wait(0.5)
  2366.                     teleport(bLocation)
  2367.                     break
  2368.                 elseif game.Players.LocalPlayer:FindFirstChild("Backpack") then
  2369.                     for p, q in pairs(game.Players.LocalPlayer:FindFirstChild("Backpack"):GetChildren()) do
  2370.                         if q:FindFirstChild("Damage") then
  2371.                             q.Parent = game.Players.LocalPlayer.Character
  2372.                         end
  2373.                     end
  2374.                     wait()
  2375.                     teleport(v.HumanoidRootPart.CFrame + Vector3.new(0, 30, 0))
  2376.                     wait(0.25)
  2377.                     game.ReplicatedStorage.CloudClientResources.Communication.Events.DamageSeaMonster:FireServer(v, v.Health, true)
  2378.                     wait(0.5)
  2379.                     teleport(bLocation)
  2380.                     break
  2381.                 end
  2382.             end
  2383.         end
  2384.     end
  2385. )
  2386.  
  2387. fishTab:AddButton("Kill Moby Wood",
  2388.     function()
  2389.         for i, v in pairs(game.Workspace:GetChildren()) do
  2390.             if v:FindFirstChild("Health") and v:FindFirstChild("IsSeaBoss") and v.Name == "WhaleBoss" then
  2391.                 if game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool") then
  2392.                     teleport(v.HumanoidRootPart.CFrame + Vector3.new(0, 30, 0))
  2393.                     wait(0.25)
  2394.                     game.ReplicatedStorage.CloudClientResources.Communication.Events.DamageSeaMonster:FireServer(v, v.Health, true)
  2395.                     wait(0.5)
  2396.                     break
  2397.                 elseif game.Players.LocalPlayer:FindFirstChild("Backpack") then
  2398.                     for p, q in pairs(game.Players.LocalPlayer:FindFirstChild("Backpack"):GetChildren()) do
  2399.                         if q:FindFirstChild("Damage") then
  2400.                             q.Parent = game.Players.LocalPlayer.Character
  2401.                         end
  2402.                     end
  2403.                     wait()
  2404.                     teleport(v.HumanoidRootPart.CFrame + Vector3.new(0, 30, 0))
  2405.                     wait(0.25)
  2406.                     game.ReplicatedStorage.CloudClientResources.Communication.Events.DamageSeaMonster:FireServer(v, v.Health, true)
  2407.                     wait(0.5)
  2408.                     teleport(bLocation)
  2409.                     break
  2410.                 end
  2411.             end
  2412.         end
  2413.     end
  2414. )
  2415.  
  2416. fishTab:AddButton("Teleport to Sunken Ship",
  2417.     function()
  2418.         for i, v in pairs(game.Workspace:GetChildren()) do
  2419.             if string.find(v.Name, "ShipModel") then
  2420.                 teleport(v.HitBox.CFrame)
  2421.                 break
  2422.             end
  2423.         end
  2424.     end
  2425. )
  2426.  
  2427. fishTab:AddLabel("Toggle Cast")
  2428.  
  2429. local bBobber
  2430. fishTab:AddSwitch("Auto Fish",
  2431.     function(bool)
  2432.         if bool then
  2433.             local rodName = false
  2434.             while not rodName do
  2435.                 for i, v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  2436.                     if v:FindFirstChild("FishingRodScript") then
  2437.                         rodName = v.Name
  2438.                         break
  2439.                     end
  2440.                 end
  2441.                 wait()
  2442.             end
  2443.  
  2444.             bBobber = game.Players.LocalPlayer.Character:WaitForChild(rodName).Bobbers.Bobber.Fish.Changed:Connect(
  2445.                 function(fishVal)
  2446.                     if fishVal ~= nil then
  2447.                         --if not legendToggle then
  2448.                             game.Workspace:WaitForChild(tostring(fishVal))
  2449.                             wait()
  2450.                             game.ReplicatedStorage.CloudClientResources.Communication.Events.FishedDone:FireServer()
  2451.                             wait()
  2452.                             game.ReplicatedStorage.CloudClientResources.Communication.Events.ResetFishingRod:FireServer()
  2453.                             wait()
  2454.                         --[[else
  2455.                             if game.Workspace:WaitForChild(tostring(fishVal)).RarityLevel.Value >= 5 then
  2456.                                 game.ReplicatedStorage.CloudClientResources.Communication.Events.FishedDone:FireServer()
  2457.                                 wait()
  2458.                                 game.ReplicatedStorage.CloudClientResources.Communication.Events.ResetFishingRod:FireServer()
  2459.                                 wait()
  2460.                             end                                                                                                
  2461.                         end                                                                                                        --]]
  2462.                     end
  2463.                     if game.Players.LocalPlayer.Character:WaitForChild(rodName).Bobbers.Bobber:FindFirstChild("FishWeld") then
  2464.                         for p, q in pairs(game.Players.LocalPlayer.Character:WaitForChild(rodName).Bobbers.Bobber:GetChildren()) do
  2465.                             if q.Name == "FishWeld" then
  2466.                                 q:Destroy()
  2467.                             end
  2468.                         end
  2469.                     end
  2470.                 end
  2471.             )
  2472.         else
  2473.             bBobber:Disconnect()
  2474.         end
  2475.     end
  2476. )
  2477.  
  2478. local cAutoCell
  2479. local rarType = {
  2480.     ["None"] = 1,
  2481.     ["Albino"] = 2,
  2482.     ["Common Glow"] = 3,
  2483.     ["Uncommon Glow"] = 4,
  2484.     ["Rare Glow"] = 5,
  2485.     ["Epic Glow"] = 6,
  2486.     ["Legendary Glow"] = 7,
  2487.     ["Mythic Glow"] = 8,
  2488. };
  2489. fishTab:AddSwitch("Auto Sell",
  2490.     function(bool)
  2491.         if bool then
  2492.             cAutoCell = game.Players.LocalPlayer.Backpack.ChildAdded:Connect(
  2493.                 function()
  2494.                     if not legendToggle then
  2495.                         for i, v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  2496.                             if v:FindFirstChild("IsFishObject") then
  2497.                                 if v.RarityLevel.Value < 5 then
  2498.                                     game.ReplicatedStorage.CloudClientResources.Communication.Functions.SellEverything:InvokeServer()
  2499.                                     break
  2500.                                 end
  2501.                             end
  2502.                             wait()
  2503.                         end
  2504.                     else
  2505.                         for i, v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  2506.                             if v:FindFirstChild("IsFishObject") then
  2507.                                 if v.RarityLevel.Value < 5 then
  2508.                                     local setRat = ""
  2509.                                     if v.Variations:FindFirstChild("Variation") then
  2510.                                         setRat = tostring(rarType[v.Variations.Variation.Value])
  2511.                                     else
  2512.                                         setRat = "1"
  2513.                                     end
  2514.                                     game.ReplicatedStorage.CloudClientResources.Communication.Functions.SellItem:InvokeServer(v.Name .. setRat .. v.Variations.Size.Value, 1)
  2515.                                 end
  2516.                             end
  2517.                             wait(0.01)
  2518.                         end
  2519.                     end
  2520.                 end
  2521.             )
  2522.         else
  2523.             cAutoCell:Disconnect()
  2524.         end
  2525.     end
  2526. )
  2527.  
  2528. local childEvent = nil
  2529. local autoHunt = false
  2530. local rememberLocation
  2531. function killBeast ()
  2532.     childEvent:Disconnect()
  2533.  
  2534.     for i, v in pairs(game.Workspace:GetChildren()) do
  2535.         if not autoHunt then break end
  2536.         if v:FindFirstChild("Health") and v:FindFirstChild("IsSeaMonster") then
  2537.             rememberLocation = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame
  2538.             if #game.Players.LocalPlayer:WaitForChild("Backpack"):GetChildren() + 1 >= #game.Players.LocalPlayer:WaitForChild("LocalData"):WaitForChild("Inventory"):WaitForChild("Tools"):GetChildren() then
  2539.                 game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame = CFrame.new(2138.73999, 188.463303, -2224.42871)
  2540.                 wait()
  2541.                 for p, q in pairs(game:GetService("Players").LocalPlayer:WaitForChild("Backpack"):GetChildren()) do
  2542.                     if not q:FindFirstChild("Hold") then
  2543.                         if q.RarityLevel.Value < 5 and not q:FindFirstChild("IsFishObject") then
  2544.                             game.ReplicatedStorage.CloudClientResources.Communication.Functions.SellItem:InvokeServer(q.Name, 1)
  2545.                         elseif q.RarityLevel.Value < 5 and q:FindFirstChild("IsFishObject") then
  2546.                             game.ReplicatedStorage.CloudClientResources.Communication.Functions.SellItem:InvokeServer(q.Name .. "1" .. q.Variations.Size.Value, 1)
  2547.                         end
  2548.                     end
  2549.                     wait(0.01)
  2550.                 end
  2551.                 wait(0.1)
  2552.             end
  2553.             if game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool") then
  2554.                 if game.Players.LocalPlayer.Character.Humanoid.Sit then
  2555.                     game.Players.LocalPlayer.Character.Humanoid.Sit = false
  2556.                 end
  2557.                 game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame = v.HumanoidRootPart.CFrame + Vector3.new(0, 25, 0)
  2558.                 wait(0.25)
  2559.                 game.ReplicatedStorage.CloudClientResources.Communication.Events.DamageSeaMonster:FireServer(v, v.Health, true)
  2560.                 wait(0.5)
  2561.             elseif game.Players.LocalPlayer:FindFirstChild("Backpack") then
  2562.                 for p, q in pairs(game.Players.LocalPlayer:FindFirstChild("Backpack"):GetChildren()) do
  2563.                     if q:FindFirstChild("Damage") then
  2564.                         q.Parent = game.Players.LocalPlayer.Character
  2565.                     end
  2566.                 end
  2567.             end
  2568.             game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame = rememberLocation
  2569.             wait(5)
  2570.         end
  2571.     end
  2572.  
  2573.     return true
  2574. end
  2575.  
  2576. function reDeath()
  2577.     childEvent = game.Workspace.ChildAdded:Connect(
  2578.         function()
  2579.             if killBeast() and autoHunt then
  2580.                 reDeath()
  2581.             end
  2582.         end
  2583.     )
  2584. end
  2585.  
  2586. fishTab:AddSwitch("Auto Hunt",
  2587.     function(bool)
  2588.         if bool then
  2589.             autoHunt = bool
  2590.             reDeath()
  2591.         else
  2592.             autoHunt = bool
  2593.         end
  2594.     end
  2595. )
  2596.  
  2597. local teleTab = Window:AddTab("Teleports")
  2598.  
  2599. local masterLocations = {
  2600.     --Port Jackson
  2601.     PortJacksonDocks = CFrame.new(56.7393608, 41.4751053, -63.380661),
  2602.     Aquarium = CFrame.new(-71.4487915, 55.8237305, 77.1413193),
  2603.     BoatShop = CFrame.new(-3.54861736, 46.9481888, -107.122681),
  2604.     SupplyShop = CFrame.new(2.20014167, 53.5718613, 11.437911),
  2605.     PortJacksonCaster = CFrame.new(-52.98069, 54.567421, -20.777195),
  2606.     QuestTavern = CFrame.new(-114.295792, 54.1254578, -67.9122925),
  2607.     Rodney = CFrame.new(-105.481873, 54.1767731, -10.4815578),
  2608.     CoinChests = CFrame.new(-53.1726341, 52.9375458, 13.6784639),
  2609.     PortJacksonPoperson = CFrame.new(-76.9964676, 50.4331894, -132.130676),
  2610.  
  2611.     --Volcano Island
  2612.     VolcanoIslandDocks = CFrame.new(2815.75854, 41.5044899, 1470.11658),
  2613.     VolcanoIslandCaster = CFrame.new(2971.24414, 45.0137711, 1409.98901),
  2614.     VolcanoIslandObby = CFrame.new(3162.37256, 48.9485931, 1512.08679),
  2615.     VolcanoIslandObbyEnd = CFrame.new(48146.2109, 2162.26001, 13683.6201),
  2616.     VolcanoIslandPoperson = CFrame.new(3185.36279, 47.8058777, 1239.24707),
  2617.     VolcanoIslandQuest = CFrame.new(3091.27783, 180.46051, 1799.91833),
  2618.  
  2619.     --Shadow Isles
  2620.     ShadowIslesDocks = CFrame.new(2189.79932, 42.294281, -2260.20508),
  2621.     ShadowIslesPoperson = CFrame.new(2198.46167, 43.0711288, -2222.51172),
  2622.     ShadowIslesCave = CFrame.new(2144.77222, 50.0127106, -2270.18164),
  2623.     ShadowIslesCasper = CFrame.new(2128.79346, 188.23761, -2222.95239),
  2624.     ShadowIslesFirePlace = CFrame.new(2128.79346, 188.23761, -2222.95239),
  2625.     ShadowIslesBombLocation = CFrame.new(2066.40381, 194.53775, -2432.69336),
  2626.  
  2627.     --Ancient Shores
  2628.     AncientShoresDocks = CFrame.new(-2244.64795, 42.2645645, -1716.90173),
  2629.     AncientShoresCasper = CFrame.new(-2582.82251, 51.214386, -1796.34143),
  2630.     AncientShoresGiant = CFrame.new(-2392.20386, 110.919983, -2110.41602),
  2631.     AncientShoresQuest1 = CFrame.new(-2625.92065, 162.517609, -2124.42725),
  2632.     AncientShoresQuest2 = CFrame.new(-2852.25513, 74.7504883, -2232.0437),
  2633.     AncientShoresQuest3 = CFrame.new(-2517.18921, 123.897522, -1611.0531),
  2634.     AncientShoresRiver = CFrame.new(-2427.65845, 45.6136932, -1902.73279),
  2635.  
  2636.     --Monster's Borough
  2637.     MonsterBoroughDocks = CFrame.new(-3200.25781, 41.6784821, 2732.46777),
  2638.  
  2639. }
  2640.  
  2641. local stringPorts = {
  2642.     "Aquarium",
  2643.     "Port Jackson's Docks",
  2644.     "Boat Shop",
  2645.     "Supply Shop",
  2646.     "Port Jackson's Caster",
  2647.     "Quest Tavern",
  2648.     "Rodney",
  2649.     "Coin Chests",
  2650.     "Port Jackson's Poperson",
  2651.     "Volcano Island's Docks",
  2652.     "Volcano Island's Caster",
  2653.     "Volcano Island's Obby",
  2654.     "Volcano Island's Obby End",
  2655.     "Volcano Island's Poperson",
  2656.     "Volcano Island's Quest",
  2657.     "Shadow Isles' Docks",
  2658.     "Shadow Isles' Poperson",
  2659.     "Shadow Isles' Cave",
  2660.     "Shadow Isles' Casper",
  2661.     "Shadow Isles' Fire Place",
  2662.     "Shadow Isles' Bomb Location",
  2663.     "Ancient Shores' Docks",
  2664.     "Ancient Shores' Casper",
  2665.     "Ancient Shores' Giant",
  2666.     "Ancient Shores' Quest 1",
  2667.     "Ancient Shores' Quest 2",
  2668.     "Ancient Shores' Quest 3",
  2669.     "Ancient Shores' River",
  2670.     "Monster's Borough Docks",
  2671. }
  2672.  
  2673. local tConsole
  2674. local searchIndex = {}
  2675. teleTab:AddTextBox("Search Teleports",
  2676.     function(text)
  2677.  
  2678.         local masterText = ""
  2679.  
  2680.         if next(searchIndex) == nil then
  2681.             for i, v in next, stringPorts do
  2682.                 if string.match(v:lower(), text:lower()) then
  2683.                     table.insert(searchIndex, v)
  2684.                     masterText = (masterText .. v .. "\n")
  2685.                 end
  2686.             end
  2687.         else
  2688.             for i, v in next, searchIndex do
  2689.                 if string.match(v:lower(), text:lower()) then
  2690.                     masterText = (masterText .. v .. "\n")
  2691.                 end
  2692.             end
  2693.         end
  2694.  
  2695.         tConsole:Set(masterText)
  2696.     end
  2697. )
  2698.  
  2699. tConsole = teleTab:AddConsole({
  2700.     ["y"] = 300,
  2701.     ["source"] = "Text",
  2702. })
  2703.  
  2704. local ha = teleTab:AddHorizontalAlignment()
  2705.  
  2706. ha:AddButton("Teleport",
  2707.     function()
  2708.         teleport(masterLocations[tConsole:Get():gsub("'s",""):gsub(" ",""):gsub("'",""):gsub("\n","")])
  2709.     end
  2710. )
  2711.  
  2712. ha:AddButton("Return to Last Location",
  2713.     function()
  2714.         teleport(bLocation)
  2715.     end
  2716. )
  2717.  
  2718. ha:AddButton("Reset Searches",
  2719.     function()
  2720.         searchIndex = {}
  2721.         tConsole:Set("")
  2722.     end
  2723. )
  2724.  
  2725.  
  2726. local consoleTab = Window:AddTab("Console")
  2727. local Console = consoleTab:AddConsole({
  2728.     ["y"] = 400,
  2729.     ["source"] = "Lua",
  2730. })
  2731. Console:Set("")
  2732.  
  2733. local nextTab = consoleTab:AddHorizontalAlignment()
  2734. nextTab:AddButton("Execute", function()
  2735.     loadstring(Console:Get())()
  2736. end)
  2737. nextTab:AddButton("Clear", function()
  2738.     Console:Set("")
  2739. end)
  2740.  
  2741.  
  2742. local debugTab = Window:AddTab("Debug")
  2743.  
  2744. local gilbertFolder = debugTab:AddFolder("Give Gilbert's Key")
  2745. gilbertFolder:AddLabel("Warning, this is permanent." )
  2746. gilbertFolder:AddLabel("If you give yourself more than one Gilbert's key,")
  2747. gilbertFolder:AddLabel("it will stay in your inventory forever.")
  2748. gilbertFolder:AddButton("Give Gilbert's Key",
  2749.     function()
  2750.         game.ReplicatedStorage.CloudClientResources.Communication.Events.GiveGillbertsKey:FireServer()
  2751.     end
  2752. )
  2753.  
  2754. debugTab:AddButton("Rejoin",
  2755.     function()
  2756.         game:GetService('TeleportService'):Teleport(game.PlaceId)
  2757.     end
  2758. )
  2759.  
  2760. local teleKey = Enum.KeyCode.K
  2761. debugTab:AddKeybind("Teleport Key",
  2762.     function(key)
  2763.         teleKey = key
  2764.     end, {
  2765.         ["standard"] = Enum.KeyCode.K
  2766.     }
  2767. )
  2768.  
  2769. local kTP
  2770. debugTab:AddSwitch("Click Key to TP",
  2771.     function(bool)
  2772.         if bool then
  2773.             kTP = game:GetService("UserInputService").InputBegan:Connect(function(input)
  2774.                 if game:GetService("UserInputService"):IsKeyDown(teleKey) then
  2775.                     if game.Players.LocalPlayer:GetMouse().Target then
  2776.                         game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game.Players.LocalPlayer:GetMouse().Hit.x, game.Players.LocalPlayer:GetMouse().Hit.y + 3, game.Players.LocalPlayer:GetMouse().Hit.z)
  2777.                     end
  2778.                 end
  2779.             end)
  2780.         else
  2781.             kTP:Disconnect()
  2782.         end
  2783.     end
  2784. )
  2785.  
  2786. debugTab:AddSwitch("Anti-AFK",
  2787.     function(bool)
  2788.         local VirtualUser = game:GetService('VirtualUser')
  2789.         game:GetService("Players").LocalPlayer.Idled:connect(function()
  2790.             if bool then
  2791.                 VirtualUser:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  2792.                 wait(3)
  2793.                 VirtualUser:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  2794.             end
  2795.         end)
  2796.     end
  2797. )
  2798.  
  2799. local clipKey = Enum.KeyCode.V
  2800. debugTab:AddKeybind("NoClip Key",
  2801.     function(key)
  2802.         clipKey = key
  2803.     end, {
  2804.         ["standard"] = Enum.KeyCode.V
  2805.     }
  2806. )
  2807.  
  2808. local noBind
  2809. local switchPath = false
  2810. debugTab:AddSwitch("NoClip",
  2811.     function(bool)
  2812.         if bool then
  2813.             noBind = game:GetService("UserInputService").InputBegan:Connect(function(input)
  2814.                 if game:GetService("UserInputService"):IsKeyDown(clipKey) and bool then
  2815.                     switchPath = not switchPath
  2816.                 end
  2817.             end)
  2818.  
  2819.             game:getService("RunService"):BindToRenderStep("",0,function()
  2820.                 if not game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid") and bool then return end
  2821.                
  2822.                 if bool and switchPath then
  2823.                     game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid"):ChangeState(11)
  2824.                 end
  2825.             end)
  2826.         else
  2827.             noBind:Disconnect()
  2828.         end
  2829.     end
  2830. )
  2831.  
  2832. debugTab:AddButton("Invisible [Not Working]",
  2833.     function()
  2834.         function rigCheck(rig)
  2835.             if rig.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
  2836.                 return true
  2837.             end
  2838.         end
  2839.        
  2840.         for i, v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  2841.             if v:IsA("Part") or v:IsA("MeshPart") then
  2842.                 if v.Name ~= "HumanoidRootPart" and v.Name ~= "Handle" or v:IsA("Part") then
  2843.                         v.Material = "ForceField"
  2844.                 end
  2845.             elseif v:IsA("Accessory") then
  2846.                 v:Destroy()
  2847.             end
  2848.             local function CheckRig()
  2849.                 if game.Players.LocalPlayer.Character then
  2850.                     if rigCheck(game.Players.LocalPlayer) then
  2851.                         return "R15"
  2852.                     else
  2853.                         return "R6"
  2854.                     end
  2855.                 end
  2856.             end
  2857.             local function InitiateInvis()
  2858.                 local StoredCF = game.Players.LocalPlayer.Character.PrimaryPart.CFrame
  2859.                 local Part = Instance.new('Part',workspace)
  2860.                 Part.Size = Vector3.new(5,0,5)
  2861.                 Part.Anchored = true
  2862.                 Part.CFrame = CFrame.new(Vector3.new(9999,9999,9999))
  2863.                 game.Players.LocalPlayer.Character.PrimaryPart.CFrame = Part.CFrame * CFrame.new(0,3,0)
  2864.                 wait(3)
  2865.                 Part:Destroy()
  2866.                 if CheckRig() == 'R6' then
  2867.                     local Clone = game.Players.LocalPlayer.Character.HumanoidRootPart:Clone()
  2868.                     game.Players.LocalPlayer.Character.HumanoidRootPart:Destroy()
  2869.                     Clone.Parent = game.Players.LocalPlayer.Character
  2870.                 else
  2871.                     local Clone = game.Players.LocalPlayer.Character.LowerTorso.Root:Clone()
  2872.                     game.Players.LocalPlayer.Character.LowerTorso.Root:Destroy()
  2873.                     Clone.Parent = game.Players.LocalPlayer.Character.LowerTorso
  2874.                 end
  2875.             end
  2876.             InitiateInvis()
  2877.         end
  2878.     end
  2879. )
  2880.  
  2881.  
  2882. local creditsTab = Window:AddTab("Credits")
  2883. creditsTab:AddLabel(" ")
  2884. creditsTab:AddLabel("                                 Created by Nymphoria")
  2885. creditsTab:AddLabel("                                     on V3rmillion.net")
  2886. creditsTab:AddLabel(" ")
  2887. creditsTab:AddLabel(" ")
  2888. creditsTab:AddLabel("                                    Special Thanks to")
  2889. creditsTab:AddLabel("                                      0xSingularity")
  2890. creditsTab:AddLabel("                                    on V3rmillion.net")
  2891. creditsTab:AddLabel("                                     for his amazing")
  2892. creditsTab:AddLabel("                                   Elerium UI Library")
Add Comment
Please, Sign In to add comment