Advertisement
pa1nx9

Super Sabers AUTO FARM – NOVEMBER 2021

Nov 6th, 2021
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 81.66 KB | None | 0 0
  1.  
  2.  
  3. if game.CoreGui:FindFirstChild("Library") then
  4. game.CoreGui:FindFirstChild("Library"):Destroy()
  5. end
  6. local VLib = {RainbowColorValue = 0, HueSelectionPosition = 0}
  7. local UserInputService = game:GetService("UserInputService")
  8. local TweenService = game:GetService("TweenService")
  9. local RunService = game:GetService("RunService")
  10. local LocalPlayer = game:GetService("Players").LocalPlayer
  11. local Mouse = LocalPlayer:GetMouse()
  12.  
  13.  
  14. coroutine.wrap(
  15. function()
  16. while wait() do
  17. VLib.RainbowColorValue = VLib.RainbowColorValue + 1 / 255
  18. VLib.HueSelectionPosition = VLib.HueSelectionPosition + 1
  19.  
  20. if VLib.RainbowColorValue >= 1 then
  21. VLib.RainbowColorValue = 0
  22. end
  23.  
  24. if VLib.HueSelectionPosition == 80 then
  25. VLib.HueSelectionPosition = 0
  26. end
  27. end
  28. end
  29. )()
  30.  
  31. local function MakeDraggable(topbarobject, object)
  32. local Dragging = nil
  33. local DragInput = nil
  34. local DragStart = nil
  35. local StartPosition = nil
  36.  
  37. local function Update(input)
  38. local Delta = input.Position - DragStart
  39. local pos =
  40. UDim2.new(
  41. StartPosition.X.Scale,
  42. StartPosition.X.Offset + Delta.X,
  43. StartPosition.Y.Scale,
  44. StartPosition.Y.Offset + Delta.Y
  45. )
  46. local Tween = TweenService:Create(object, TweenInfo.new(0.2), {Position = pos})
  47. Tween:Play()
  48. end
  49.  
  50. topbarobject.InputBegan:Connect(
  51. function(input)
  52. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  53. Dragging = true
  54. DragStart = input.Position
  55. StartPosition = object.Position
  56.  
  57. input.Changed:Connect(
  58. function()
  59. if input.UserInputState == Enum.UserInputState.End then
  60. Dragging = false
  61. end
  62. end
  63. )
  64. end
  65. end
  66. )
  67.  
  68. topbarobject.InputChanged:Connect(
  69. function(input)
  70. if
  71. input.UserInputType == Enum.UserInputType.MouseMovement or
  72. input.UserInputType == Enum.UserInputType.Touch
  73. then
  74. DragInput = input
  75. end
  76. end
  77. )
  78.  
  79. UserInputService.InputChanged:Connect(
  80. function(input)
  81. if input == DragInput and Dragging then
  82. Update(input)
  83. end
  84. end
  85. )
  86. end
  87.  
  88. local Library = Instance.new("ScreenGui")
  89. Library.Name = "Library"
  90. Library.Parent = game.CoreGui
  91. Library.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  92.  
  93. local uitoggled = false
  94. UserInputService.InputBegan:Connect(
  95. function(io, p)
  96. if io.KeyCode == Enum.KeyCode.RightControl then
  97. if uitoggled == false then
  98. Library.Enabled = false
  99. uitoggled = true
  100. else
  101. Library.Enabled = true
  102. uitoggled = false
  103. end
  104. end
  105. end
  106. )
  107.  
  108. function VLib:Window(text, textgame, textcircle)
  109. local FirstTab = false
  110. local MainFrame = Instance.new("Frame")
  111. local MainCorner = Instance.new("UICorner")
  112. local LeftFrame = Instance.new("Frame")
  113. local LeftFrameCorner = Instance.new("UICorner")
  114. local MainTitle = Instance.new("TextLabel")
  115. local Circle = Instance.new("Frame")
  116. local CircleCorner = Instance.new("UICorner")
  117. local CircleName = Instance.new("TextLabel")
  118. local GameTitle = Instance.new("TextLabel")
  119. local TabHolder = Instance.new("Frame")
  120. local TabHoldLayout = Instance.new("UIListLayout")
  121. local RainbowLine = Instance.new("Frame")
  122. local RainbowLineCorner = Instance.new("UICorner")
  123. local ContainerHold = Instance.new("Folder")
  124. local DragFrame = Instance.new("Frame")
  125. local Glow = Instance.new("ImageLabel")
  126.  
  127. MainFrame.Name = "MainFrame"
  128. MainFrame.Parent = Library
  129. MainFrame.BackgroundColor3 = Color3.fromRGB(27, 27, 27)
  130. MainFrame.Position = UDim2.new(0.5, -325, 0.5, -250)
  131. MainFrame.Size = UDim2.new(0, 650, 0, 500)
  132.  
  133. MainCorner.CornerRadius = UDim.new(0, 5)
  134. MainCorner.Name = "MainCorner"
  135. MainCorner.Parent = MainFrame
  136.  
  137. LeftFrame.Name = "LeftFrame"
  138. LeftFrame.Parent = MainFrame
  139. LeftFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  140. LeftFrame.Position = UDim2.new(-0.000674468291, 0, -0.000149806539, 0)
  141. LeftFrame.Size = UDim2.new(0, 190, 0, 500)
  142.  
  143. LeftFrameCorner.CornerRadius = UDim.new(0, 5)
  144. LeftFrameCorner.Name = "LeftFrameCorner"
  145. LeftFrameCorner.Parent = LeftFrame
  146.  
  147. MainTitle.Name = "MainTitle"
  148. MainTitle.Parent = LeftFrame
  149. MainTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  150. MainTitle.BackgroundTransparency = 1.000
  151. MainTitle.Position = UDim2.new(0.168, 0, 0.043, 0)
  152. MainTitle.Size = UDim2.new(0, 71, 0, 20)
  153. MainTitle.Font = Enum.Font.Gotham
  154. MainTitle.Text = text
  155. MainTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  156. MainTitle.TextSize = 25.000
  157. MainTitle.TextXAlignment = Enum.TextXAlignment.Left
  158.  
  159.  
  160. GameTitle.Name = "GameTitle"
  161. GameTitle.Parent = LeftFrame
  162. GameTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  163. GameTitle.BackgroundTransparency = 1.000
  164. GameTitle.Position = UDim2.new(0.168, 0, 0.089, 6)
  165. GameTitle.Size = UDim2.new(0, 71, 0, 20)
  166. GameTitle.Font = Enum.Font.Gotham
  167. GameTitle.Text = textgame
  168. GameTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  169. GameTitle.TextSize = 17.000
  170. GameTitle.TextTransparency = 0.400
  171. GameTitle.TextXAlignment = Enum.TextXAlignment.Left
  172.  
  173. TabHolder.Name = "TabHolder"
  174. TabHolder.Parent = LeftFrame
  175. TabHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  176. TabHolder.BackgroundTransparency = 1.000
  177. TabHolder.Position = UDim2.new(0.0806451589, 0, 0.189360261, 0)
  178. TabHolder.Size = UDim2.new(0, 159, 0, 309)
  179.  
  180. TabHoldLayout.Name = "TabHoldLayout"
  181. TabHoldLayout.Parent = TabHolder
  182. TabHoldLayout.SortOrder = Enum.SortOrder.LayoutOrder
  183. TabHoldLayout.Padding = UDim.new(0,5)
  184.  
  185. ContainerHold.Name = "ContainerHold"
  186. ContainerHold.Parent = MainFrame
  187.  
  188. DragFrame.Name = "DragFrame"
  189. DragFrame.Parent = MainFrame
  190. DragFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  191. DragFrame.BackgroundTransparency = 1.000
  192. DragFrame.Position = UDim2.new(0.30130294, 0, 0.00253164559, 0)
  193. DragFrame.Size = UDim2.new(0, 428, 0, 21)
  194.  
  195. Glow.Name = "Glow"
  196. Glow.Parent = LeftFrame
  197. Glow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  198. Glow.BackgroundTransparency = 1.000
  199. Glow.BorderSizePixel = 0
  200. Glow.Position = UDim2.new(0, -15, 0, -15)
  201. Glow.Size = UDim2.new(1, 30, 1, 30)
  202. Glow.ZIndex = 0
  203. Glow.Image = "rbxassetid://4996891970"
  204. Glow.ImageColor3 = Color3.fromRGB(15, 15, 15)
  205. Glow.ScaleType = Enum.ScaleType.Slice
  206. Glow.SliceCenter = Rect.new(20, 20, 280, 280)
  207.  
  208. MakeDraggable(DragFrame, MainFrame)
  209.  
  210. function VLib:Notification(textdesc)
  211. local NotificationHold = Instance.new("TextButton")
  212. local NotificationFrame = Instance.new("Frame")
  213. local OkayBtn = Instance.new("TextButton")
  214. local OkayBtnCorner = Instance.new("UICorner")
  215. local OkayBtnTitle = Instance.new("TextLabel")
  216. local NotificationTitle = Instance.new("TextLabel")
  217. local NotificationDesc = Instance.new("TextLabel")
  218.  
  219. NotificationHold.Name = "NotificationHold"
  220. NotificationHold.Parent = MainFrame
  221. NotificationHold.BackgroundColor3 = Color3.fromRGB(125, 125, 125)
  222. NotificationHold.BackgroundTransparency = 0.700
  223. NotificationHold.BorderSizePixel = 0
  224. NotificationHold.Size = UDim2.new(0, 650, 0, 500)
  225. NotificationHold.AutoButtonColor = false
  226. NotificationHold.Font = Enum.Font.SourceSans
  227. NotificationHold.Text = ""
  228. NotificationHold.TextColor3 = Color3.fromRGB(0, 0, 0)
  229. NotificationHold.TextSize = 14.000
  230.  
  231. TweenService:Create(
  232. NotificationHold,
  233. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  234. {BackgroundTransparency = 0.7}
  235. ):Play()
  236. wait(0.4)
  237.  
  238. NotificationFrame.Name = "NotificationFrame"
  239. NotificationFrame.Parent = NotificationHold
  240. NotificationFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  241. NotificationFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  242. NotificationFrame.BorderSizePixel = 0
  243. NotificationFrame.ClipsDescendants = true
  244. NotificationFrame.Position = UDim2.new(0.5, 0, 0.498432577, 0)
  245. NotificationFrame.Size = UDim2.new(0, 0, 0, 0)
  246.  
  247. NotificationFrame:TweenSize(UDim2.new(0, 305,0, 283), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  248.  
  249. OkayBtn.Name = "OkayBtn"
  250. OkayBtn.Parent = NotificationFrame
  251. OkayBtn.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  252. OkayBtn.Position = UDim2.new(0.171131134, 0, 0.759717345, 0)
  253. OkayBtn.Size = UDim2.new(0, 200, 0, 42)
  254. OkayBtn.AutoButtonColor = false
  255. OkayBtn.Font = Enum.Font.SourceSans
  256. OkayBtn.Text = ""
  257. OkayBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  258. OkayBtn.TextSize = 14.000
  259.  
  260. OkayBtnCorner.CornerRadius = UDim.new(0, 5)
  261. OkayBtnCorner.Name = "OkayBtnCorner"
  262. OkayBtnCorner.Parent = OkayBtn
  263.  
  264. OkayBtnTitle.Name = "OkayBtnTitle"
  265. OkayBtnTitle.Parent = OkayBtn
  266. OkayBtnTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  267. OkayBtnTitle.BackgroundTransparency = 1.000
  268. OkayBtnTitle.Size = UDim2.new(0, 200, 0, 42)
  269. OkayBtnTitle.Text = "Okey"
  270. OkayBtnTitle.Font = Enum.Font.Gotham
  271. OkayBtnTitle.TextColor3 = Color3.fromRGB(202, 202, 202)
  272. OkayBtnTitle.TextSize = 24.000
  273.  
  274. NotificationTitle.Name = "NotificationTitle"
  275. NotificationTitle.Parent = NotificationFrame
  276. NotificationTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  277. NotificationTitle.BackgroundTransparency = 1.000
  278. NotificationTitle.Position = UDim2.new(0.0559394211, 0, 0.0652336925, 0)
  279. NotificationTitle.Size = UDim2.new(0, 272, 0, 26)
  280. NotificationTitle.ZIndex = 3
  281. NotificationTitle.Font = Enum.Font.Gotham
  282. NotificationTitle.Text = "Notification"
  283. NotificationTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  284. NotificationTitle.TextSize = 24.000
  285.  
  286. NotificationDesc.Name = "NotificationDesc"
  287. NotificationDesc.Parent = NotificationFrame
  288. NotificationDesc.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  289. NotificationDesc.BackgroundTransparency = 1.000
  290. NotificationDesc.Position = UDim2.new(0.0670000017, 0, 0.218999997, 0)
  291. NotificationDesc.Size = UDim2.new(0, 274, 0, 146)
  292. NotificationDesc.Font = Enum.Font.Gotham
  293. NotificationDesc.Text = textdesc
  294. NotificationDesc.TextColor3 = Color3.fromRGB(255, 255, 255)
  295. NotificationDesc.TextSize = 20.000
  296. NotificationDesc.TextWrapped = true
  297. NotificationDesc.TextXAlignment = Enum.TextXAlignment.Center
  298. NotificationDesc.TextYAlignment = Enum.TextYAlignment.Top
  299.  
  300. OkayBtn.MouseEnter:Connect(function()
  301. TweenService:Create(
  302. OkayBtn,
  303. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  304. {BackgroundColor3 = Color3.fromRGB(37,37,37)}
  305. ):Play()
  306. end)
  307.  
  308. OkayBtn.MouseLeave:Connect(function()
  309. TweenService:Create(
  310. OkayBtn,
  311. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  312. {BackgroundColor3 = Color3.fromRGB(34, 34, 34)}
  313. ):Play()
  314. end)
  315.  
  316. OkayBtn.MouseButton1Click:Connect(function()
  317. NotificationFrame:TweenSize(UDim2.new(0, 0,0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .6, true)
  318.  
  319. wait(0.4)
  320.  
  321. TweenService:Create(
  322. NotificationHold,
  323. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  324. {BackgroundTransparency = 1}
  325. ):Play()
  326.  
  327. wait(.3)
  328.  
  329. NotificationHold:Destroy()
  330. end)
  331. end
  332.  
  333. coroutine.wrap(
  334. function()
  335. while wait() do
  336. end
  337. end
  338. )()
  339. local Tabs = {}
  340. function Tabs:Tab(text)
  341. local Tab = Instance.new("TextButton")
  342. local TabCorner = Instance.new("UICorner")
  343. local Title = Instance.new("TextLabel")
  344. local UIGradient = Instance.new('UIGradient')
  345. Tab.Name = "Tab"
  346. Tab.Parent = TabHolder
  347. Tab.BackgroundColor3 = Color3.fromRGB(255,255,255)
  348. Tab.Size = UDim2.new(0, 170, 0, 35)
  349. Tab.AutoButtonColor = false
  350. Tab.Font = Enum.Font.SourceSans
  351. Tab.Text = ""
  352. Tab.TextColor3 = Color3.fromRGB(0, 0, 0)
  353. Tab.TextSize = 15.000
  354. Tab.BackgroundTransparency = 1
  355.  
  356. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(160, 207, 236)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(102, 152, 255))}
  357. UIGradient.Parent = Tab
  358.  
  359.  
  360. TabCorner.CornerRadius = UDim.new(0, 3)
  361. TabCorner.Name = "TabCorner"
  362. TabCorner.Parent = Tab
  363.  
  364. Title.Name = "Title"
  365. Title.Parent = Tab
  366. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  367. Title.BackgroundTransparency = 1.000
  368. Title.Position = UDim2.new(0.0566037744, 0, 0.1, 0)
  369. Title.Size = UDim2.new(0, 150, 0, 29)
  370. Title.Font = Enum.Font.Gotham
  371. Title.Text = text
  372. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  373. Title.TextSize = 17.000
  374. Title.TextXAlignment = Enum.TextXAlignment.Left
  375.  
  376. local Container = Instance.new("ScrollingFrame")
  377. local ContainerLayout = Instance.new("UIListLayout")
  378.  
  379. Container.Name = "Container"
  380. Container.Parent = ContainerHold
  381. Container.Active = true
  382. Container.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  383. Container.BackgroundTransparency = 1.000
  384. Container.BorderSizePixel = 0
  385. Container.Position = UDim2.new(0.34, 0, 0.0506329127, 0)
  386. Container.Size = UDim2.new(0, 420, 0, 450)
  387. Container.ScrollBarThickness = 5
  388. Container.CanvasSize = UDim2.new(0, 0, 0, 0)
  389. Container.Visible = false
  390. Container.ScrollBarImageColor3 = Color3.fromRGB(100, 100, 100)
  391.  
  392. ContainerLayout.Name = "ContainerLayout"
  393. ContainerLayout.Parent = Container
  394. ContainerLayout.SortOrder = Enum.SortOrder.LayoutOrder
  395. ContainerLayout.Padding = UDim.new(0, 15)
  396.  
  397. if FirstTab == false then
  398. FirstTab = true
  399. Tab.BackgroundTransparency = 0
  400. Container.Visible = true
  401. end
  402. Tab.MouseButton1Click:Connect(
  403. function()
  404. for i, v in next, ContainerHold:GetChildren() do
  405. if v.Name == "Container" then
  406. v.Visible = false
  407. end
  408. end
  409.  
  410. for i, v in next, TabHolder:GetChildren() do
  411. if v.ClassName == "TextButton" then
  412. TweenService:Create(
  413. v,
  414. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  415. {BackgroundTransparency = 1}
  416. ):Play()
  417. TweenService:Create(
  418. Tab,
  419. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  420. {BackgroundTransparency = 0}
  421. ):Play()
  422. end
  423. end
  424. Container.Visible = true
  425. end
  426. )
  427. local ContainerItems = {}
  428. function ContainerItems:Button(text, callback)
  429. local Button = Instance.new("TextButton")
  430. local ButtonCorner = Instance.new("UICorner")
  431.  
  432. Button.Name = "Button"
  433. Button.Parent = Container
  434. Button.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  435. Button.Size = UDim2.new(0, 405, 0, 40)
  436. Button.AutoButtonColor = false
  437. Button.Font = Enum.Font.Gotham
  438. Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  439. Button.TextSize = 15.000
  440. Button.Text = text
  441.  
  442. ButtonCorner.CornerRadius = UDim.new(0, 5)
  443. ButtonCorner.Name = "ButtonCorner"
  444. ButtonCorner.Parent = Button
  445.  
  446. Button.MouseEnter:Connect(
  447. function()
  448. TweenService:Create(
  449. Button,
  450. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  451. {BackgroundColor3 = Color3.fromRGB(45, 45, 45)}
  452. ):Play()
  453. end
  454. )
  455. Button.MouseLeave:Connect(
  456. function()
  457. TweenService:Create(
  458. Button,
  459. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  460. {BackgroundColor3 = Color3.fromRGB(35, 35, 35)}
  461. ):Play()
  462. end
  463. )
  464.  
  465. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  466.  
  467. Button.MouseButton1Click:Connect(
  468. function()
  469. pcall(callback)
  470. Button.TextSize = 0
  471. TweenService:Create(Button, TweenInfo.new(.2, Enum.EasingStyle.Quad), {TextSize = 17}):Play()
  472. wait(.2)
  473. TweenService:Create(Button, TweenInfo.new(.2, Enum.EasingStyle.Quad), {TextSize = 14}):Play()
  474. end
  475. )
  476. end
  477. function ContainerItems:Toggle(text,Default,callback)
  478. local Toggled = Default or false
  479. local ValueToggle = ValueTogglea or false
  480. local Toggle = Instance.new("TextButton")
  481. local ToggleCorner = Instance.new("UICorner")
  482. local Title = Instance.new("TextLabel")
  483. local ToggleFrame = Instance.new("Frame")
  484. local ToggleFrameCorner = Instance.new("UICorner")
  485. local ToggleFrameRainbow = Instance.new("Frame")
  486. local ToggleFrameRainbowCorner = Instance.new("UICorner")
  487. local ToggleDot = Instance.new("Frame")
  488. local ToggleDotCorner = Instance.new("UICorner")
  489. local UIGradient_2 = Instance.new('UIGradient')
  490. Toggle.Name = "Toggle"
  491. Toggle.Parent = Container
  492. Toggle.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  493. Toggle.Position = UDim2.new(-0.747557044, 0, 0.729113936, 0)
  494. Toggle.Size = UDim2.new(0, 405, 0, 40)
  495. Toggle.AutoButtonColor = false
  496. Toggle.Font = Enum.Font.Gotham
  497. Toggle.Text = ""
  498. Toggle.TextColor3 = Color3.fromRGB(255, 255, 255)
  499. Toggle.TextSize = 14.000
  500.  
  501. ToggleCorner.CornerRadius = UDim.new(0, 5)
  502. ToggleCorner.Name = "ToggleCorner"
  503. ToggleCorner.Parent = Toggle
  504.  
  505. Title.Name = "Title"
  506. Title.Parent = Toggle
  507. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  508. Title.BackgroundTransparency = 1.000
  509. Title.Position = UDim2.new(0.0198511165, 0, 0, 0)
  510. Title.Size = UDim2.new(0, 430, 0, 40)
  511. Title.Font = Enum.Font.Gotham
  512. Title.Text = text
  513. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  514. Title.TextSize = 15.000
  515. Title.TextXAlignment = Enum.TextXAlignment.Left
  516.  
  517. ToggleFrame.Name = "ToggleFrame"
  518. ToggleFrame.Parent = Toggle
  519. ToggleFrame.BackgroundColor3 = Color3.fromRGB(22, 23, 27)
  520. ToggleFrame.Position = UDim2.new(0.88, 0, 0.21, 0)
  521. ToggleFrame.Size = UDim2.new(0, 40, 0, 22)
  522.  
  523. ToggleFrameCorner.CornerRadius = UDim.new(1, 0)
  524. ToggleFrameCorner.Name = "ToggleFrameCorner"
  525. ToggleFrameCorner.Parent = ToggleFrame
  526.  
  527. ToggleFrameRainbow.Name = "ToggleFrameRainbow"
  528. ToggleFrameRainbow.Parent = ToggleFrame
  529. ToggleFrameRainbow.BackgroundColor3 = Color3.fromRGB(27,27,27)
  530. ToggleFrameRainbow.BackgroundTransparency = 1.000
  531. ToggleFrameRainbow.Position = UDim2.new(-0.0198377371, 0, 0.00601506233, 0)
  532. ToggleFrameRainbow.Size = UDim2.new(0, 40, 0, 22)
  533.  
  534. ToggleFrameRainbowCorner.CornerRadius = UDim.new(1, 0)
  535. ToggleFrameRainbowCorner.Name = "ToggleFrameRainbowCorner"
  536. ToggleFrameRainbowCorner.Parent = ToggleFrameRainbow
  537.  
  538. ToggleDot.Name = "ToggleDot"
  539. ToggleDot.Parent = ToggleFrameRainbow
  540. ToggleDot.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  541. ToggleDot.Position = UDim2.new(0.104999997, -3, 0.289000005, -4)
  542. ToggleDot.Size = UDim2.new(0, 16, 0, 16)
  543.  
  544. UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(160, 207, 236)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(102, 152, 255))}
  545. UIGradient_2.Parent = ToggleDot
  546.  
  547. ToggleDotCorner.CornerRadius = UDim.new(1, 0)
  548. ToggleDotCorner.Name = "ToggleDotCorner"
  549. ToggleDotCorner.Parent = ToggleDot
  550.  
  551. Toggle.MouseEnter:Connect(
  552. function()
  553. TweenService:Create(
  554. Toggle,
  555. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  556. {BackgroundColor3 = Color3.fromRGB(45, 45, 45)}
  557. ):Play()
  558.  
  559. end
  560. )
  561. Toggle.MouseLeave:Connect(
  562. function()
  563. TweenService:Create(
  564. Toggle,
  565. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  566. {BackgroundColor3 = Color3.fromRGB(35, 35, 35)}
  567. ):Play()
  568. end
  569. )
  570.  
  571. if Toggled == true then
  572. UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(160, 207, 236)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(102, 152, 255))}
  573.  
  574. TweenService:Create(
  575. ToggleFrameRainbow,
  576. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  577. {BackgroundTransparency = 0}
  578. ):Play()
  579. TweenService:Create(
  580. ToggleDot,
  581. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  582. {Position = UDim2.new(0.595, -3, 0.289000005, -4)}
  583. ):Play()
  584. pcall(callback, Toggled)
  585. else
  586. ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(46, 255, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(228, 92, 255))}
  587.  
  588. TweenService:Create(
  589. ToggleFrameRainbow,
  590. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  591. {BackgroundTransparency = 1}
  592. ):Play()
  593. TweenService:Create(
  594. ToggleDot,
  595. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  596. {Position = UDim2.new(0.104999997, -3, 0.289000005, -4)}
  597. ):Play()
  598. end
  599.  
  600. Toggle.MouseButton1Click:Connect(
  601. function()
  602. if Toggled == false then
  603. UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(160, 207, 236)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(102, 152, 255))}
  604.  
  605. TweenService:Create(
  606. ToggleFrameRainbow,
  607. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  608. {BackgroundTransparency = 0}
  609. ):Play()
  610. TweenService:Create(
  611. ToggleDot,
  612. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  613. {Position = UDim2.new(0.595, -3, 0.289000005, -4)}
  614. ):Play()
  615. else
  616. UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(160, 207, 236)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(102, 152, 255))}
  617.  
  618. TweenService:Create(
  619. ToggleFrameRainbow,
  620. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  621. {BackgroundTransparency = 1}
  622. ):Play()
  623. TweenService:Create(
  624. ToggleDot,
  625. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  626. {Position = UDim2.new(0.104999997, -3, 0.289000005, -4)}
  627. ):Play()
  628. end
  629. Toggled = not Toggled
  630. pcall(callback, Toggled)
  631. end
  632. )
  633.  
  634. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  635. end
  636. function ContainerItems:Slider(text, min, max, start, callback)
  637. local dragging = false
  638. local Slider = Instance.new("TextButton")
  639. local Title = Instance.new("TextLabel")
  640. local SliderFrame = Instance.new("Frame")
  641. local SliderFrameCorner = Instance.new("UICorner")
  642. local SliderIndicator = Instance.new("Frame")
  643. local SliderIndicatorCorner = Instance.new("UICorner")
  644. local SliderCorner = Instance.new("UICorner")
  645. local Value = Instance.new("TextLabel")
  646. local UIGradient_3 = Instance.new('UIGradient')
  647.  
  648. Slider.Name = "Slider"
  649. Slider.Parent = Container
  650. Slider.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  651. Slider.Position = UDim2.new(-0.747557044, 0, 0.729113936, 0)
  652. Slider.Size = UDim2.new(0, 405, 0, 49)
  653. Slider.AutoButtonColor = false
  654. Slider.Font = Enum.Font.Gotham
  655. Slider.Text = ""
  656. Slider.TextColor3 = Color3.fromRGB(255, 255, 255)
  657. Slider.TextSize = 14.000
  658.  
  659. Title.Name = "Title"
  660. Title.Parent = Slider
  661. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  662. Title.BackgroundTransparency = 1.000
  663. Title.Position = UDim2.new(0.0198511165, 0, 0, 0)
  664. Title.Size = UDim2.new(0, 192, 0, 28)
  665. Title.Font = Enum.Font.Gotham
  666. Title.Text = text
  667. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  668. Title.TextSize = 14.000
  669. Title.TextXAlignment = Enum.TextXAlignment.Left
  670.  
  671. SliderFrame.Name = "SliderFrame"
  672. SliderFrame.Parent = Slider
  673. SliderFrame.BackgroundColor3 = Color3.fromRGB(29, 29, 29)
  674. SliderFrame.Position = UDim2.new(0.0223324299, 0, 0.563266039, 0)
  675. SliderFrame.Size = UDim2.new(0, 384, 0, 11)
  676.  
  677. SliderFrameCorner.Name = "SliderFrameCorner"
  678. SliderFrameCorner.Parent = SliderFrame
  679.  
  680. SliderIndicator.Name = "SliderIndicator"
  681. SliderIndicator.Parent = SliderFrame
  682. SliderIndicator.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  683. SliderIndicator.BorderSizePixel = 0
  684. SliderIndicator.Position = UDim2.new(-0.00260408712, 0, 0.0363603085, 0)
  685. SliderIndicator.Size = UDim2.new((start or 0) / max, 0, 0, 11)
  686.  
  687. UIGradient_3.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(160, 207, 236)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(102, 152, 255))}
  688. UIGradient_3.Parent = SliderIndicator
  689.  
  690. SliderIndicatorCorner.Name = "SliderIndicatorCorner"
  691. SliderIndicatorCorner.Parent = SliderIndicator
  692.  
  693. SliderCorner.CornerRadius = UDim.new(0, 6)
  694. SliderCorner.Name = "SliderCorner"
  695. SliderCorner.Parent = Slider
  696.  
  697. Value.Name = "Value"
  698. Value.Parent = Slider
  699. Value.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  700. Value.BackgroundTransparency = 1.000
  701. Value.Position = UDim2.new(0.496277869, 0, 0, 0)
  702. Value.Size = UDim2.new(0, 192, 0, 28)
  703. Value.Font = Enum.Font.Gotham
  704. Value.Text = tostring(start and math.floor((start / max) * (max - min) + min) or 0)
  705. Value.TextColor3 = Color3.fromRGB(255, 255, 255)
  706. Value.TextSize = 14.000
  707. Value.TextXAlignment = Enum.TextXAlignment.Right
  708.  
  709. local function slide(input)
  710. local pos =
  711. UDim2.new(
  712. math.clamp((input.Position.X - SliderFrame.AbsolutePosition.X) / SliderFrame.AbsoluteSize.X, 0, 1),
  713. 0,
  714. 0,
  715. 11
  716. )
  717. SliderIndicator:TweenSize(pos, Enum.EasingDirection.Out, Enum.EasingStyle.Quart, 0.3, true)
  718. local val = math.floor(((pos.X.Scale * max) / max) * (max - min) + min)
  719. Value.Text = tostring(val)
  720. pcall(callback, val)
  721. end
  722.  
  723. SliderFrame.InputBegan:Connect(
  724. function(input)
  725. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  726. slide(input)
  727. dragging = true
  728. end
  729. end
  730. )
  731.  
  732. SliderFrame.InputEnded:Connect(
  733. function(input)
  734. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  735. dragging = false
  736. end
  737. end
  738. )
  739.  
  740. UserInputService.InputChanged:Connect(
  741. function(input)
  742. if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
  743. slide(input)
  744. end
  745. end
  746. )
  747.  
  748. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  749.  
  750. end
  751. function ContainerItems:Dropdown(text, list, callback)
  752. local dropfunc = {}
  753. local DropToggled = false
  754. local FrameSize = 0
  755. local ItemCount = 0
  756.  
  757. local Dropdown = Instance.new("TextButton")
  758. local Title = Instance.new("TextLabel")
  759. local DropdownCorner = Instance.new("UICorner")
  760. local Arrow = Instance.new("ImageLabel")
  761.  
  762. Dropdown.Name = "Dropdown"
  763. Dropdown.Parent = Container
  764. Dropdown.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  765. Dropdown.Position = UDim2.new(-0.747557044, 0, 0.729113936, 0)
  766. Dropdown.Size = UDim2.new(0, 405, 0, 45)
  767. Dropdown.AutoButtonColor = false
  768. Dropdown.Font = Enum.Font.Gotham
  769. Dropdown.Text = ""
  770. Dropdown.TextColor3 = Color3.fromRGB(255, 255, 255)
  771. Dropdown.TextSize = 15.000
  772.  
  773. Title.Name = "Title"
  774. Title.Parent = Dropdown
  775. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  776. Title.BackgroundTransparency = 1.000
  777. Title.Position = UDim2.new(0.0198511165, 0, 0, 0)
  778. Title.Size = UDim2.new(0, 192, 0, 40)
  779. Title.Font = Enum.Font.Gotham
  780. Title.Text = text
  781. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  782. Title.TextSize = 15.000
  783. Title.TextXAlignment = Enum.TextXAlignment.Left
  784.  
  785. DropdownCorner.CornerRadius = UDim.new(0, 6)
  786. DropdownCorner.Name = "DropdownCorner"
  787. DropdownCorner.Parent = Dropdown
  788.  
  789. Arrow.Name = "Arrow"
  790. Arrow.Parent = Dropdown
  791. Arrow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  792. Arrow.BackgroundTransparency = 1.000
  793. Arrow.Position = UDim2.new(0.9, 0, 0.2, 0)
  794. Arrow.Size = UDim2.new(0, 27, 0, 27)
  795. Arrow.Image = "http://www.roblox.com/asset/?id=6034818372"
  796.  
  797. local DropdownFrame = Instance.new("Frame")
  798. local DropdownFrameCorner = Instance.new("UICorner")
  799. local DropdownHolder = Instance.new("ScrollingFrame")
  800. local DropdownItemLayout = Instance.new("UIListLayout")
  801. local DropdownItemHolder = Instance.new("UIPadding")
  802.  
  803. DropdownFrame.Name = "DropdownFrame"
  804. DropdownFrame.Parent = Container
  805. DropdownFrame.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  806. DropdownFrame.BorderSizePixel = 0
  807. DropdownFrame.Position = UDim2.new(0.334374994, 0, 0.604166687, 0)
  808. DropdownFrame.Size = UDim2.new(0, 403, 0, 0)
  809. DropdownFrame.Visible = false
  810.  
  811. DropdownFrameCorner.Name = "DropdownFrameCorner"
  812. DropdownFrameCorner.Parent = DropdownFrame
  813.  
  814. DropdownHolder.Name = "DropdownHolder"
  815. DropdownHolder.Parent = DropdownFrame
  816. DropdownHolder.Active = true
  817. DropdownHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  818. DropdownHolder.BackgroundTransparency = 1.000
  819. DropdownHolder.BorderSizePixel = 0
  820. DropdownHolder.Position = UDim2.new(0.0263156947, 0, 0.00326599111, 0)
  821. DropdownHolder.Size = UDim2.new(0, 386, 0, 0)
  822. DropdownHolder.ScrollBarThickness = 3
  823. DropdownHolder.CanvasSize = UDim2.new(0, 0, 0, 0)
  824. DropdownHolder.ScrollBarImageColor3 = Color3.fromRGB(48, 48, 48)
  825.  
  826. DropdownItemLayout.Name = "DropdownItemLayout"
  827. DropdownItemLayout.Parent = DropdownHolder
  828. DropdownItemLayout.SortOrder = Enum.SortOrder.LayoutOrder
  829. DropdownItemLayout.Padding = UDim.new(0, 5)
  830.  
  831. DropdownItemHolder.Name = "DropdownItemHolder"
  832. DropdownItemHolder.Parent = DropdownHolder
  833. DropdownItemHolder.PaddingBottom = UDim.new(0, 5)
  834. DropdownItemHolder.PaddingTop = UDim.new(0, 5)
  835.  
  836. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  837.  
  838. Dropdown.MouseEnter:Connect(
  839. function()
  840. TweenService:Create(
  841. Dropdown,
  842. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  843. {BackgroundColor3 = Color3.fromRGB(45, 45, 45)}
  844. ):Play()
  845. end
  846. )
  847. Dropdown.MouseLeave:Connect(
  848. function()
  849. TweenService:Create(
  850. Dropdown,
  851. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  852. {BackgroundColor3 = Color3.fromRGB(35, 35, 35)}
  853. ):Play()
  854. end
  855. )
  856.  
  857. Dropdown.MouseButton1Click:Connect(
  858. function()
  859. if DropToggled == false then
  860. DropdownFrame.Visible = true
  861. DropdownFrame:TweenSize(
  862. UDim2.new(0, 403, 0, FrameSize),
  863. Enum.EasingDirection.Out,
  864. Enum.EasingStyle.Quart,
  865. 0.1,
  866. true
  867. )
  868. DropdownHolder:TweenSize(
  869. UDim2.new(0, 386, 0, FrameSize),
  870. Enum.EasingDirection.Out,
  871. Enum.EasingStyle.Quart,
  872. 0.1,
  873. true
  874. )
  875. TweenService:Create(
  876. Arrow,
  877. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  878. {Rotation = 180}
  879. ):Play()
  880. repeat
  881. wait()
  882. until DropdownFrame.Size == UDim2.new(0, 403, 0, FrameSize)
  883. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  884. else
  885. DropdownFrame:TweenSize(
  886. UDim2.new(0, 403, 0, 0),
  887. Enum.EasingDirection.Out,
  888. Enum.EasingStyle.Quart,
  889. 0.1,
  890. true
  891. )
  892. DropdownHolder:TweenSize(
  893. UDim2.new(0, 386, 0, 0),
  894. Enum.EasingDirection.Out,
  895. Enum.EasingStyle.Quart,
  896. 0.1,
  897. true
  898. )
  899. TweenService:Create(
  900. Arrow,
  901. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  902. {Rotation = 0}
  903. ):Play()
  904. repeat
  905. wait()
  906. until DropdownFrame.Size == UDim2.new(0, 403, 0, 0)
  907. DropdownFrame.Visible = false
  908. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  909. end
  910. DropToggled = not DropToggled
  911. end
  912. )
  913.  
  914. for i, v in next, list do
  915. ItemCount = ItemCount + 1
  916.  
  917. if ItemCount == 1 then
  918. FrameSize = 39
  919. elseif ItemCount == 2 then
  920. FrameSize = 69
  921. elseif ItemCount >= 3 then
  922. FrameSize = 100
  923. end
  924.  
  925. local Item = Instance.new("TextButton")
  926. local ItemCorner = Instance.new("UICorner")
  927.  
  928. Item.Name = "Item"
  929. Item.Parent = DropdownHolder
  930. Item.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  931. Item.Position = UDim2.new(0, 0, 0.0808080807, 0)
  932. Item.Size = UDim2.new(0, 405, 0, 24)
  933. Item.AutoButtonColor = false
  934. Item.Font = Enum.Font.Gotham
  935. Item.TextColor3 = Color3.fromRGB(255, 255, 255)
  936. Item.TextSize = 14.000
  937. Item.Text = v
  938.  
  939. ItemCorner.Name = "ItemCorner"
  940. ItemCorner.Parent = Item
  941.  
  942. Item.MouseEnter:Connect(
  943. function()
  944. TweenService:Create(
  945. Item,
  946. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  947. {BackgroundColor3 = Color3.fromRGB(37, 37, 37)}
  948. ):Play()
  949. end
  950. )
  951. Item.MouseLeave:Connect(
  952. function()
  953. TweenService:Create(
  954. Item,
  955. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  956. {BackgroundColor3 = Color3.fromRGB(32, 32, 32)}
  957. ):Play()
  958. end
  959. )
  960.  
  961. Item.MouseButton1Click:Connect(
  962. function()
  963. Title.Text = text .. " - " .. v
  964. pcall(callback, v)
  965. DropToggled = false
  966. DropdownFrame:TweenSize(
  967. UDim2.new(0, 403, 0, 0),
  968. Enum.EasingDirection.Out,
  969. Enum.EasingStyle.Quart,
  970. 0.1,
  971. true
  972. )
  973. DropdownHolder:TweenSize(
  974. UDim2.new(0, 386, 0, 0),
  975. Enum.EasingDirection.Out,
  976. Enum.EasingStyle.Quart,
  977. 0.1,
  978. true
  979. )
  980. TweenService:Create(
  981. Arrow,
  982. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  983. {Rotation = 0}
  984. ):Play()
  985. repeat
  986. wait()
  987. until DropdownFrame.Size == UDim2.new(0, 403, 0, 0)
  988. DropdownFrame.Visible = false
  989. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  990. end
  991. )
  992.  
  993. DropdownHolder.CanvasSize = UDim2.new(0, 0, 0, DropdownItemLayout.AbsoluteContentSize.Y + 15)
  994. end
  995.  
  996. function dropfunc:Clear()
  997. Title.Text = text
  998. FrameSize = 0
  999. ItemCount = 0
  1000.  
  1001. for i,v in next, DropdownHolder:GetChildren() do
  1002. if v.Name == "Item" then
  1003. v:Destroy()
  1004. end
  1005. end
  1006.  
  1007. DropdownFrame:TweenSize(
  1008. UDim2.new(0, 403, 0, 0),
  1009. Enum.EasingDirection.Out,
  1010. Enum.EasingStyle.Quart,
  1011. 0.1,
  1012. true
  1013. )
  1014. DropdownHolder:TweenSize(
  1015. UDim2.new(0, 386, 0, 0),
  1016. Enum.EasingDirection.Out,
  1017. Enum.EasingStyle.Quart,
  1018. 0.1,
  1019. true
  1020. )
  1021. TweenService:Create(
  1022. Arrow,
  1023. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1024. {Rotation = 0}
  1025. ):Play()
  1026. repeat
  1027. wait()
  1028. until DropdownFrame.Size == UDim2.new(0, 403, 0, 0)
  1029. DropdownFrame.Visible = false
  1030. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1031. end
  1032.  
  1033. function dropfunc:Add(toadd)
  1034. ItemCount = ItemCount + 1
  1035.  
  1036. if ItemCount == 1 then
  1037. FrameSize = 39
  1038. elseif ItemCount == 2 then
  1039. FrameSize = 69
  1040. elseif ItemCount >= 3 then
  1041. FrameSize = 100
  1042. end
  1043.  
  1044. local Item = Instance.new("TextButton")
  1045. local ItemCorner = Instance.new("UICorner")
  1046.  
  1047. Item.Name = "Item"
  1048. Item.Parent = DropdownHolder
  1049. Item.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  1050. Item.Position = UDim2.new(0, 0, 0.0808080807, 0)
  1051. Item.Size = UDim2.new(0, 405, 0, 24)
  1052. Item.AutoButtonColor = false
  1053. Item.Font = Enum.Font.Gotham
  1054. Item.TextColor3 = Color3.fromRGB(255, 255, 255)
  1055. Item.TextSize = 14.000
  1056. Item.Text = toadd
  1057.  
  1058. ItemCorner.Name = "ItemCorner"
  1059. ItemCorner.Parent = Item
  1060.  
  1061. Item.MouseEnter:Connect(
  1062. function()
  1063. TweenService:Create(
  1064. Item,
  1065. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  1066. {BackgroundColor3 = Color3.fromRGB(37, 37, 37)}
  1067. ):Play()
  1068. end
  1069. )
  1070. Item.MouseLeave:Connect(
  1071. function()
  1072. TweenService:Create(
  1073. Item,
  1074. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  1075. {BackgroundColor3 = Color3.fromRGB(32, 32, 32)}
  1076. ):Play()
  1077. end
  1078. )
  1079.  
  1080. Item.MouseButton1Click:Connect(
  1081. function()
  1082. Title.Text = text .. " - " .. toadd
  1083. pcall(callback, toadd)
  1084. DropToggled = false
  1085. DropdownFrame:TweenSize(
  1086. UDim2.new(0, 403, 0, 0),
  1087. Enum.EasingDirection.Out,
  1088. Enum.EasingStyle.Quart,
  1089. 0.1,
  1090. true
  1091. )
  1092. DropdownHolder:TweenSize(
  1093. UDim2.new(0, 386, 0, 0),
  1094. Enum.EasingDirection.Out,
  1095. Enum.EasingStyle.Quart,
  1096. 0.1,
  1097. true
  1098. )
  1099. TweenService:Create(
  1100. Arrow,
  1101. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1102. {Rotation = 0}
  1103. ):Play()
  1104. repeat
  1105. wait()
  1106. until DropdownFrame.Size == UDim2.new(0, 403, 0, 0)
  1107. DropdownFrame.Visible = false
  1108. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1109. end
  1110. )
  1111.  
  1112. DropdownHolder.CanvasSize = UDim2.new(0, 0, 0, DropdownItemLayout.AbsoluteContentSize.Y + 15)
  1113. end
  1114.  
  1115. return dropfunc
  1116. end
  1117. function ContainerItems:Colorpicker(text, preset, callback)
  1118. local ColorPickerToggled = false
  1119. local OldToggleColor = Color3.fromRGB(0, 0, 0)
  1120. local OldColor = Color3.fromRGB(0, 0, 0)
  1121. local OldColorSelectionPosition = nil
  1122. local OldHueSelectionPosition = nil
  1123. local ColorH, ColorS, ColorV = 1, 1, 1
  1124. local RainbowColorPicker = false
  1125. local ColorPickerInput = nil
  1126. local ColorInput = nil
  1127. local HueInput = nil
  1128.  
  1129. local Colorpicker = Instance.new("TextButton")
  1130. local Title = Instance.new("TextLabel")
  1131. local BoxColor = Instance.new("Frame")
  1132. local BoxcolorCorner = Instance.new("UICorner")
  1133. local ColorpickerCorner = Instance.new("UICorner")
  1134.  
  1135. Colorpicker.Name = "Colorpicker"
  1136. Colorpicker.Parent = Container
  1137. Colorpicker.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  1138. Colorpicker.Position = UDim2.new(-0.747557044, 0, 0.729113936, 0)
  1139. Colorpicker.Size = UDim2.new(0, 405, 0, 40)
  1140. Colorpicker.AutoButtonColor = false
  1141. Colorpicker.Font = Enum.Font.Gotham
  1142. Colorpicker.Text = ""
  1143. Colorpicker.TextColor3 = Color3.fromRGB(255, 255, 255)
  1144. Colorpicker.TextSize = 14.000
  1145.  
  1146. Title.Name = "Title"
  1147. Title.Parent = Colorpicker
  1148. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1149. Title.BackgroundTransparency = 1.000
  1150. Title.Position = UDim2.new(0.0198511165, 0, 0, 0)
  1151. Title.Size = UDim2.new(0, 405, 0, 40)
  1152. Title.Font = Enum.Font.Gotham
  1153. Title.Text = text
  1154. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  1155. Title.TextSize = 15.000
  1156. Title.TextXAlignment = Enum.TextXAlignment.Left
  1157.  
  1158. BoxColor.Name = "Boxcolor"
  1159. BoxColor.Parent = Colorpicker
  1160. BoxColor.BackgroundColor3 = preset
  1161. BoxColor.Position = UDim2.new(0.88, 0, 0.3, 0)
  1162. BoxColor.Size = UDim2.new(0, 36, 0, 19)
  1163.  
  1164. BoxcolorCorner.CornerRadius = UDim.new(0, 6)
  1165. BoxcolorCorner.Name = "BoxcolorCorner"
  1166. BoxcolorCorner.Parent = BoxColor
  1167.  
  1168. ColorpickerCorner.CornerRadius = UDim.new(0, 4)
  1169. ColorpickerCorner.Name = "ColorpickerCorner"
  1170. ColorpickerCorner.Parent = Colorpicker
  1171.  
  1172. local ColorpickerFrame = Instance.new("Frame")
  1173. local DropdownFrameCorner = Instance.new("UICorner")
  1174. local Hue = Instance.new("ImageLabel")
  1175. local HueCorner = Instance.new("UICorner")
  1176. local HueGradient = Instance.new("UIGradient")
  1177. local HueSelection = Instance.new("ImageLabel")
  1178. local Color = Instance.new("ImageLabel")
  1179. local ColorCorner = Instance.new("UICorner")
  1180. local ColorSelection = Instance.new("ImageLabel")
  1181. local Confirm = Instance.new("TextButton")
  1182. local ButtonCorner = Instance.new("UICorner")
  1183. local RainbowToggle = Instance.new("TextButton")
  1184. local RainbowToggleCorner = Instance.new("UICorner")
  1185. local RainbowTitle = Instance.new("TextLabel")
  1186. local RainbowToggleFrame = Instance.new("Frame")
  1187. local RainbowToggleFrameCorner = Instance.new("UICorner")
  1188. local RainbowToggleFrameRainbow = Instance.new("Frame")
  1189. local RainbowToggleFrameRainbowCorner = Instance.new("UICorner")
  1190. local RainbowToggleDot = Instance.new("Frame")
  1191. local RainbowToggleDotCorner = Instance.new("UICorner")
  1192.  
  1193. ColorpickerFrame.Name = "ColorpickerFrame"
  1194. ColorpickerFrame.Parent = Container
  1195. ColorpickerFrame.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  1196. ColorpickerFrame.BorderSizePixel = 0
  1197. ColorpickerFrame.Position = UDim2.new(0.165624991, 0, 0.671052635, 0)
  1198. ColorpickerFrame.Size = UDim2.new(0, 403, 0, 0)
  1199. ColorpickerFrame.Visible = false
  1200. ColorpickerFrame.ClipsDescendants = true
  1201.  
  1202. DropdownFrameCorner.Name = "DropdownFrameCorner"
  1203. DropdownFrameCorner.Parent = ColorpickerFrame
  1204.  
  1205. Hue.Name = "Hue"
  1206. Hue.Parent = ColorpickerFrame
  1207. Hue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1208. Hue.Position = UDim2.new(0, 209, 0, 9)
  1209. Hue.Size = UDim2.new(0, 25, 0, 80)
  1210.  
  1211. HueCorner.CornerRadius = UDim.new(0, 3)
  1212. HueCorner.Name = "HueCorner"
  1213. HueCorner.Parent = Hue
  1214.  
  1215. HueGradient.Color =
  1216. ColorSequence.new {
  1217. ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 4)),
  1218. ColorSequenceKeypoint.new(0.20, Color3.fromRGB(234, 255, 0)),
  1219. ColorSequenceKeypoint.new(0.40, Color3.fromRGB(21, 255, 0)),
  1220. ColorSequenceKeypoint.new(0.60, Color3.fromRGB(0, 255, 255)),
  1221. ColorSequenceKeypoint.new(0.80, Color3.fromRGB(0, 17, 255)),
  1222. ColorSequenceKeypoint.new(0.90, Color3.fromRGB(255, 0, 251)),
  1223. ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 4))
  1224. }
  1225. HueGradient.Rotation = 270
  1226. HueGradient.Name = "HueGradient"
  1227. HueGradient.Parent = Hue
  1228.  
  1229. HueSelection.Name = "HueSelection"
  1230. HueSelection.Parent = Hue
  1231. HueSelection.AnchorPoint = Vector2.new(0.5, 0.5)
  1232. HueSelection.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1233. HueSelection.BackgroundTransparency = 1.000
  1234. HueSelection.Position = UDim2.new(0.48, 0, 1 - select(1, Color3.toHSV(preset)))
  1235. HueSelection.Size = UDim2.new(0, 18, 0, 18)
  1236. HueSelection.Image = "http://www.roblox.com/asset/?id=4805639000"
  1237.  
  1238. Color.Name = "Color"
  1239. Color.Parent = ColorpickerFrame
  1240. Color.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
  1241. Color.Position = UDim2.new(0, 9, 0, 9)
  1242. Color.Size = UDim2.new(0, 194, 0, 80)
  1243. Color.ZIndex = 10
  1244. Color.Image = "rbxassetid://4155801252"
  1245.  
  1246. ColorCorner.CornerRadius = UDim.new(0, 3)
  1247. ColorCorner.Name = "ColorCorner"
  1248. ColorCorner.Parent = Color
  1249.  
  1250. ColorSelection.Name = "ColorSelection"
  1251. ColorSelection.Parent = Color
  1252. ColorSelection.AnchorPoint = Vector2.new(0.5, 0.5)
  1253. ColorSelection.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1254. ColorSelection.BackgroundTransparency = 1.000
  1255. ColorSelection.Position = UDim2.new(preset and select(3, Color3.toHSV(preset)))
  1256. ColorSelection.Size = UDim2.new(0, 18, 0, 18)
  1257. ColorSelection.Image = "http://www.roblox.com/asset/?id=4805639000"
  1258. ColorSelection.ScaleType = Enum.ScaleType.Fit
  1259.  
  1260. Confirm.Name = "Confirm"
  1261. Confirm.Parent = ColorpickerFrame
  1262. Confirm.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  1263. Confirm.BackgroundTransparency = 0.010
  1264. Confirm.Position = UDim2.new(0.612244904, 0, 0.0900000036, 0)
  1265. Confirm.Size = UDim2.new(0, 145, 0, 27)
  1266. Confirm.AutoButtonColor = false
  1267. Confirm.Font = Enum.Font.Gotham
  1268. Confirm.Text = "Confirm"
  1269. Confirm.TextColor3 = Color3.fromRGB(255, 255, 255)
  1270. Confirm.TextSize = 14.000
  1271.  
  1272. ButtonCorner.Name = "ButtonCorner"
  1273. ButtonCorner.Parent = Confirm
  1274.  
  1275. RainbowToggle.Name = "RainbowToggle"
  1276. RainbowToggle.Parent = ColorpickerFrame
  1277. RainbowToggle.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  1278. RainbowToggle.Position = UDim2.new(0.610732794, 0, 0.431324542, 0)
  1279. RainbowToggle.Size = UDim2.new(0, 145, 0, 27)
  1280. RainbowToggle.AutoButtonColor = false
  1281. RainbowToggle.Font = Enum.Font.Gotham
  1282. RainbowToggle.Text = ""
  1283. RainbowToggle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1284. RainbowToggle.TextSize = 14.000
  1285.  
  1286. RainbowToggleCorner.Name = "RainbowToggleCorner"
  1287. RainbowToggleCorner.Parent = RainbowToggle
  1288.  
  1289. RainbowTitle.Name = "RainbowTitle"
  1290. RainbowTitle.Parent = RainbowToggle
  1291. RainbowTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1292. RainbowTitle.BackgroundTransparency = 1.000
  1293. RainbowTitle.Position = UDim2.new(0.0204080511, 0, 0, 0)
  1294. RainbowTitle.Size = UDim2.new(0, 29, 0, 27)
  1295. RainbowTitle.Font = Enum.Font.Gotham
  1296. RainbowTitle.Text = "Rainbow"
  1297. RainbowTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1298. RainbowTitle.TextSize = 14.000
  1299. RainbowTitle.TextXAlignment = Enum.TextXAlignment.Left
  1300.  
  1301. RainbowToggleFrame.Name = "RainbowToggleFrame"
  1302. RainbowToggleFrame.Parent = RainbowToggle
  1303. RainbowToggleFrame.BackgroundColor3 = Color3.fromRGB(22, 23, 27)
  1304. RainbowToggleFrame.Position = UDim2.new(0.693, 0, 0.142857149, 0)
  1305. RainbowToggleFrame.Size = UDim2.new(0, 36, 0, 19)
  1306.  
  1307. RainbowToggleFrameCorner.CornerRadius = UDim.new(1, 0)
  1308. RainbowToggleFrameCorner.Name = "RainbowToggleFrameCorner"
  1309. RainbowToggleFrameCorner.Parent = RainbowToggleFrame
  1310.  
  1311. RainbowToggleFrameRainbow.Name = "RainbowToggleFrameRainbow"
  1312. RainbowToggleFrameRainbow.Parent = RainbowToggleFrame
  1313. RainbowToggleFrameRainbow.BackgroundColor3 = Color3.fromRGB(67,136,246)
  1314. RainbowToggleFrameRainbow.BackgroundTransparency = 1.000
  1315. RainbowToggleFrameRainbow.Position = UDim2.new(-0.0198377371, 0, 0.00601506233, 0)
  1316. RainbowToggleFrameRainbow.Size = UDim2.new(0, 36, 0, 19)
  1317.  
  1318. RainbowToggleFrameRainbowCorner.CornerRadius = UDim.new(1, 0)
  1319. RainbowToggleFrameRainbowCorner.Name = "RainbowToggleFrameRainbowCorner"
  1320. RainbowToggleFrameRainbowCorner.Parent = RainbowToggleFrameRainbow
  1321.  
  1322. RainbowToggleDot.Name = "RainbowToggleDot"
  1323. RainbowToggleDot.Parent = RainbowToggleFrameRainbow
  1324. RainbowToggleDot.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1325. RainbowToggleDot.Position = UDim2.new(0.104999997, -3, 0.289000005, -4)
  1326. RainbowToggleDot.Size = UDim2.new(0, 16, 0, 16)
  1327.  
  1328. RainbowToggleDotCorner.CornerRadius = UDim.new(1, 0)
  1329. RainbowToggleDotCorner.Name = "RainbowToggleDotCorner"
  1330. RainbowToggleDotCorner.Parent = RainbowToggleDot
  1331.  
  1332. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1333.  
  1334. Colorpicker.MouseEnter:Connect(
  1335. function()
  1336. TweenService:Create(
  1337. Colorpicker,
  1338. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  1339. {BackgroundColor3 = Color3.fromRGB(45, 45, 45)}
  1340. ):Play()
  1341. end
  1342. )
  1343. Colorpicker.MouseLeave:Connect(
  1344. function()
  1345. TweenService:Create(
  1346. Colorpicker,
  1347. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  1348. {BackgroundColor3 = Color3.fromRGB(35, 35, 35)}
  1349. ):Play()
  1350. end
  1351. )
  1352.  
  1353. local function UpdateColorPicker(nope)
  1354. BoxColor.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
  1355. Color.BackgroundColor3 = Color3.fromHSV(ColorH, 1, 1)
  1356.  
  1357. pcall(callback, BoxColor.BackgroundColor3)
  1358. end
  1359.  
  1360. ColorH =
  1361. 1 -
  1362. (math.clamp(HueSelection.AbsolutePosition.Y - Hue.AbsolutePosition.Y, 0, Hue.AbsoluteSize.Y) /
  1363. Hue.AbsoluteSize.Y)
  1364. ColorS =
  1365. (math.clamp(ColorSelection.AbsolutePosition.X - Color.AbsolutePosition.X, 0, Color.AbsoluteSize.X) /
  1366. Color.AbsoluteSize.X)
  1367. ColorV =
  1368. 1 -
  1369. (math.clamp(ColorSelection.AbsolutePosition.Y - Color.AbsolutePosition.Y, 0, Color.AbsoluteSize.Y) /
  1370. Color.AbsoluteSize.Y)
  1371.  
  1372. BoxColor.BackgroundColor3 = preset
  1373. Color.BackgroundColor3 = preset
  1374. pcall(callback, BoxColor.BackgroundColor3)
  1375.  
  1376. Color.InputBegan:Connect(
  1377. function(input)
  1378. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1379. if RainbowColorPicker then
  1380. return
  1381. end
  1382.  
  1383. if ColorInput then
  1384. ColorInput:Disconnect()
  1385. end
  1386.  
  1387. ColorInput =
  1388. RunService.RenderStepped:Connect(
  1389. function()
  1390. local ColorX =
  1391. (math.clamp(Mouse.X - Color.AbsolutePosition.X, 0, Color.AbsoluteSize.X) /
  1392. Color.AbsoluteSize.X)
  1393. local ColorY =
  1394. (math.clamp(Mouse.Y - Color.AbsolutePosition.Y, 0, Color.AbsoluteSize.Y) /
  1395. Color.AbsoluteSize.Y)
  1396.  
  1397. ColorSelection.Position = UDim2.new(ColorX, 0, ColorY, 0)
  1398. ColorS = ColorX
  1399. ColorV = 1 - ColorY
  1400.  
  1401. UpdateColorPicker(true)
  1402. end
  1403. )
  1404. end
  1405. end
  1406. )
  1407.  
  1408. Color.InputEnded:Connect(
  1409. function(input)
  1410. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1411. if ColorInput then
  1412. ColorInput:Disconnect()
  1413. end
  1414. end
  1415. end
  1416. )
  1417.  
  1418. Hue.InputBegan:Connect(
  1419. function(input)
  1420. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1421. if RainbowColorPicker then
  1422. return
  1423. end
  1424.  
  1425. if HueInput then
  1426. HueInput:Disconnect()
  1427. end
  1428.  
  1429. HueInput =
  1430. RunService.RenderStepped:Connect(
  1431. function()
  1432. local HueY =
  1433. (math.clamp(Mouse.Y - Hue.AbsolutePosition.Y, 0, Hue.AbsoluteSize.Y) /
  1434. Hue.AbsoluteSize.Y)
  1435.  
  1436. HueSelection.Position = UDim2.new(0.48, 0, HueY, 0)
  1437. ColorH = 1 - HueY
  1438.  
  1439. UpdateColorPicker(true)
  1440. end
  1441. )
  1442. end
  1443. end
  1444. )
  1445.  
  1446. Hue.InputEnded:Connect(
  1447. function(input)
  1448. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1449. if HueInput then
  1450. HueInput:Disconnect()
  1451. end
  1452. end
  1453. end
  1454. )
  1455.  
  1456. RainbowToggle.MouseButton1Down:Connect(
  1457. function()
  1458. RainbowColorPicker = not RainbowColorPicker
  1459.  
  1460. if ColorInput then
  1461. ColorInput:Disconnect()
  1462. end
  1463.  
  1464. if HueInput then
  1465. HueInput:Disconnect()
  1466. end
  1467.  
  1468. if RainbowColorPicker then
  1469. TweenService:Create(
  1470. RainbowToggleFrameRainbow,
  1471. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  1472. {BackgroundTransparency = 0}
  1473. ):Play()
  1474. TweenService:Create(
  1475. RainbowToggleDot,
  1476. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  1477. {Position = UDim2.new(0.595, -3, 0.289000005, -4)}
  1478. ):Play()
  1479.  
  1480. OldToggleColor = BoxColor.BackgroundColor3
  1481. OldColor = Color.BackgroundColor3
  1482. OldColorSelectionPosition = ColorSelection.Position
  1483. OldHueSelectionPosition = HueSelection.Position
  1484.  
  1485. while RainbowColorPicker do
  1486. BoxColor.BackgroundColor3 = Color3.fromHSV(VLib.RainbowColorValue, 1, 1)
  1487. Color.BackgroundColor3 = Color3.fromHSV(VLib.RainbowColorValue, 1, 1)
  1488.  
  1489. ColorSelection.Position = UDim2.new(1, 0, 0, 0)
  1490. HueSelection.Position = UDim2.new(0.48, 0, 0, VLib.HueSelectionPosition)
  1491.  
  1492. pcall(callback, BoxColor.BackgroundColor3)
  1493. wait()
  1494. end
  1495. elseif not RainbowColorPicker then
  1496. TweenService:Create(
  1497. RainbowToggleFrameRainbow,
  1498. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  1499. {BackgroundTransparency = 1}
  1500. ):Play()
  1501. TweenService:Create(
  1502. RainbowToggleDot,
  1503. TweenInfo.new(.2, Enum.EasingStyle.Quad),
  1504. {Position = UDim2.new(0.104999997, -3, 0.289000005, -4)}
  1505. ):Play()
  1506.  
  1507. BoxColor.BackgroundColor3 = OldToggleColor
  1508. Color.BackgroundColor3 = OldColor
  1509.  
  1510. ColorSelection.Position = OldColorSelectionPosition
  1511. HueSelection.Position = OldHueSelectionPosition
  1512.  
  1513. pcall(callback, BoxColor.BackgroundColor3)
  1514. end
  1515. end
  1516. )
  1517.  
  1518. Colorpicker.MouseButton1Click:Connect(
  1519. function()
  1520. if ColorPickerToggled == false then
  1521. ColorPickerToggled = not ColorPickerToggled
  1522. ColorpickerFrame.Visible = true
  1523. ColorpickerFrame:TweenSize(
  1524. UDim2.new(0, 403, 0, 100),
  1525. Enum.EasingDirection.Out,
  1526. Enum.EasingStyle.Quart,
  1527. 0.1,
  1528. true
  1529. )
  1530. repeat
  1531. wait()
  1532. until ColorpickerFrame.Size == UDim2.new(0, 403, 0, 100)
  1533. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1534. else
  1535. ColorPickerToggled = not ColorPickerToggled
  1536. ColorpickerFrame:TweenSize(
  1537. UDim2.new(0, 403, 0, 0),
  1538. Enum.EasingDirection.Out,
  1539. Enum.EasingStyle.Quart,
  1540. 0.1,
  1541. true
  1542. )
  1543. repeat
  1544. wait()
  1545. until ColorpickerFrame.Size == UDim2.new(0, 403, 0, 0)
  1546. ColorpickerFrame.Visible = false
  1547. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1548. end
  1549. end
  1550. )
  1551.  
  1552. Confirm.MouseButton1Click:Connect(
  1553. function()
  1554. ColorPickerToggled = not ColorPickerToggled
  1555. ColorpickerFrame:TweenSize(
  1556. UDim2.new(0, 403, 0, 0),
  1557. Enum.EasingDirection.Out,
  1558. Enum.EasingStyle.Quart,
  1559. 0.1,
  1560. true
  1561. )
  1562. repeat
  1563. wait()
  1564. until ColorpickerFrame.Size == UDim2.new(0, 403, 0, 0)
  1565. ColorpickerFrame.Visible = false
  1566. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1567. end)
  1568.  
  1569. coroutine.wrap(
  1570. function()
  1571. while wait() do
  1572.  
  1573. end
  1574. end
  1575. )()
  1576. end
  1577. function ContainerItems:Label(text)
  1578. local labelfunc = {}
  1579. local Label = Instance.new("TextButton")
  1580. local LabelCorner = Instance.new("UICorner")
  1581.  
  1582. Label.Name = "Label"
  1583. Label.Parent = Container
  1584. Label.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  1585. Label.Size = UDim2.new(0, 405, 0, 40)
  1586. Label.AutoButtonColor = false
  1587. Label.Font = Enum.Font.Gotham
  1588. Label.TextColor3 = Color3.fromRGB(255, 255, 255)
  1589. Label.TextSize = 17.000
  1590. Label.Text = text
  1591.  
  1592. LabelCorner.CornerRadius = UDim.new(0, 5)
  1593. LabelCorner.Name = "LabelCorner"
  1594. LabelCorner.Parent = Label
  1595.  
  1596. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1597.  
  1598. function labelfunc:Refresh(tochange)
  1599. Label.Text = tochange
  1600. end
  1601.  
  1602. return labelfunc
  1603. end
  1604.  
  1605. function ContainerItems:line()
  1606. local labelfunc = {}
  1607. local Label = Instance.new("TextButton")
  1608. local LabelCorner = Instance.new("UICorner")
  1609.  
  1610. Label.Name = "Label"
  1611. Label.Parent = Container
  1612. Label.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  1613. Label.Size = UDim2.new(0, 405, 0, 5)
  1614. Label.AutoButtonColor = false
  1615. Label.Font = Enum.Font.Gotham
  1616. Label.TextColor3 = Color3.fromRGB(255, 255, 255)
  1617. Label.TextSize = 17.000
  1618. Label.Text = ""
  1619.  
  1620. LabelCorner.CornerRadius = UDim.new(0, 5)
  1621. LabelCorner.Name = "LabelCorner"
  1622. LabelCorner.Parent = Label
  1623.  
  1624. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1625.  
  1626. function labelfunc:Refresh(tochange)
  1627. Label.Text = tochange
  1628. end
  1629.  
  1630. return labelfunc
  1631. end
  1632.  
  1633. function ContainerItems:Bind(Title, keybind_options, callback)
  1634. local keybind_data = {}
  1635.  
  1636. local Keybind = Instance.new("TextButton")
  1637. local Title = Instance.new("TextLabel")
  1638. local KeybindFrame = Instance.new("Frame")
  1639. local KeybindFrameCorner = Instance.new("UICorner")
  1640. local TextButton = Instance.new("TextButton")
  1641. local KeybindCorner = Instance.new("UICorner")
  1642. local ContainerLayout = Instance.new("UIListLayout")
  1643.  
  1644.  
  1645. Keybind.Name = "Keybind"
  1646. Keybind.Parent = Container
  1647. Keybind.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  1648. Keybind.Position = UDim2.new(-0.747557044, 0, 0.729113936, 0)
  1649. Keybind.Size = UDim2.new(0, 405, 0, 40)
  1650. Keybind.AutoButtonColor = false
  1651. Keybind.Font = Enum.Font.Gotham
  1652. Keybind.Text = ""
  1653. Keybind.TextColor3 = Color3.fromRGB(255, 255, 255)
  1654. Keybind.TextSize = 14.000
  1655.  
  1656. Title.Name = "Title"
  1657. Title.Parent = Keybind
  1658. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1659. Title.BackgroundTransparency = 1.000
  1660. Title.Position = UDim2.new(0.0198511165, 0, 0, 0)
  1661. Title.Size = UDim2.new(0, 405, 0, 40)
  1662. Title.Font = Enum.Font.Gotham
  1663. Title.Text = "Keybind"
  1664. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  1665. Title.TextSize = 15.000
  1666. Title.TextXAlignment = Enum.TextXAlignment.Left
  1667.  
  1668. KeybindFrame.Name = "KeybindFrame"
  1669. KeybindFrame.Parent = Keybind
  1670. KeybindFrame.BackgroundColor3 = Color3.fromRGB(56, 56, 56)
  1671. KeybindFrame.Position = UDim2.new(0.650124013, 0, 0.159999996, 0)
  1672. KeybindFrame.Size = UDim2.new(0, 134, 0, 24)
  1673.  
  1674. KeybindFrameCorner.CornerRadius = UDim.new(0, 6)
  1675. KeybindFrameCorner.Name = "KeybindFrameCorner"
  1676. KeybindFrameCorner.Parent = KeybindFrame
  1677.  
  1678. TextButton.Parent = KeybindFrame
  1679. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1680. TextButton.BackgroundTransparency = 1.000
  1681. TextButton.Size = UDim2.new(0, 134, 0, 23)
  1682. TextButton.Font = Enum.Font.Gotham
  1683. TextButton.Text = "Keybind"
  1684. TextButton.TextColor3 = Color3.fromRGB(178, 178, 178)
  1685. TextButton.TextSize = 15.000
  1686.  
  1687. KeybindCorner.CornerRadius = UDim.new(0, 6)
  1688. KeybindCorner.Name = "KeybindCorner"
  1689. KeybindCorner.Parent = Keybind
  1690.  
  1691. ContainerLayout.Name = "ContainerLayout"
  1692. ContainerLayout.Parent = Container
  1693. ContainerLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1694. ContainerLayout.Padding = UDim.new(0, 15)
  1695.  
  1696. local UIS = game:GetService('UserInputService')
  1697.  
  1698.  
  1699. keybind_name = tostring(keybind_name or "New Keybind")
  1700. callback = typeof(callback) == "function" and callback or function()end
  1701. keybind_options = typeof(keybind_options) == "table" and keybind_options or {}
  1702. keybind_options = {
  1703. ["standard"] = keybind_options.standard or Enum.KeyCode.RightShift,
  1704. }
  1705.  
  1706.  
  1707.  
  1708. callback = typeof(callback) == "function" and callback or function()end
  1709. keybind_options = typeof(keybind_options) == "table" and keybind_options or {}
  1710. keybind_options = {
  1711. ["standard"] = keybind_options.standard or Enum.KeyCode.RightShift,
  1712. }
  1713.  
  1714. local shortkeys = { -- thanks to stroketon for helping me out with this
  1715. RightControl = 'RightCtrl',
  1716. LeftControl = 'LeftCtrl',
  1717. LeftShift = 'LShift',
  1718. RightShift = 'RShift',
  1719. MouseButton1 = "Mouse1",
  1720. MouseButton2 = "Mouse2"
  1721. }
  1722. local checks = {
  1723. binding = false,
  1724.  
  1725. }
  1726. function keybind_data:SetKeybind(Keybind)
  1727. local key = shortkeys[Keybind.Name] or Keybind.Name
  1728. TextButton.Text = key
  1729. keybind = Keybind
  1730. end
  1731.  
  1732. UIS.InputBegan:Connect(function(a, b)
  1733. if checks.binding then
  1734. spawn(function()
  1735. wait()
  1736. checks.binding = false
  1737. end)
  1738. return
  1739. end
  1740. if a.KeyCode == keybind and not b then
  1741. pcall(callback, keybind)
  1742. end
  1743. end)
  1744.  
  1745. keybind_data:SetKeybind(keybind_options.standard)
  1746.  
  1747. TextButton.MouseButton1Click:Connect(function()
  1748. if checks.binding then return end
  1749. TextButton.Text = "..."
  1750. checks.binding = true
  1751. local a, b = UIS.InputBegan:Wait()
  1752. keybind_data:SetKeybind(a.KeyCode)
  1753. end)
  1754. return keybind_data
  1755. end
  1756.  
  1757.  
  1758. function ContainerItems:Textbox(text, disapper, callback)
  1759. local Textbox = Instance.new("TextButton")
  1760. local Title = Instance.new("TextLabel")
  1761. local TextboxFrame = Instance.new("Frame")
  1762. local TextboxFrameCorner = Instance.new("UICorner")
  1763. local TextBox = Instance.new("TextBox")
  1764. local TextboxCorner = Instance.new("UICorner")
  1765.  
  1766. Textbox.Name = "Textbox"
  1767. Textbox.Parent = Container
  1768. Textbox.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  1769. Textbox.Position = UDim2.new(-0.747557044, 0, 0.729113936, 0)
  1770. Textbox.Size = UDim2.new(0, 405, 0, 40)
  1771. Textbox.AutoButtonColor = false
  1772. Textbox.Font = Enum.Font.Gotham
  1773. Textbox.Text = ""
  1774. Textbox.TextColor3 = Color3.fromRGB(255, 255, 255)
  1775. Textbox.TextSize = 14.000
  1776.  
  1777. Title.Name = "Title"
  1778. Title.Parent = Textbox
  1779. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1780. Title.BackgroundTransparency = 1.000
  1781. Title.Position = UDim2.new(0.0198511165, 0, 0, 0)
  1782. Title.Size = UDim2.new(0, 405, 0, 40)
  1783. Title.Font = Enum.Font.Gotham
  1784. Title.Text = text
  1785. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  1786. Title.TextSize = 15.000
  1787. Title.TextXAlignment = Enum.TextXAlignment.Left
  1788.  
  1789. TextboxFrame.Name = "TextboxFrame"
  1790. TextboxFrame.Parent = Textbox
  1791. TextboxFrame.BackgroundColor3 = Color3.fromRGB(56, 56, 56)
  1792. TextboxFrame.Position = UDim2.new(0.650124013, 0, 0.16, 0)
  1793. TextboxFrame.Size = UDim2.new(0, 134, 0, 24)
  1794.  
  1795. TextboxFrameCorner.CornerRadius = UDim.new(0, 6)
  1796. TextboxFrameCorner.Name = "TextboxFrameCorner"
  1797. TextboxFrameCorner.Parent = TextboxFrame
  1798.  
  1799. TextBox.Parent = TextboxFrame
  1800. TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1801. TextBox.BackgroundTransparency = 1.000
  1802. TextBox.Size = UDim2.new(0, 134, 0, 19)
  1803. TextBox.Font = Enum.Font.Gotham
  1804. TextBox.Text = ""
  1805. TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  1806. TextBox.TextSize = 15.000
  1807.  
  1808. TextboxCorner.CornerRadius = UDim.new(0, 6)
  1809. TextboxCorner.Name = "TextboxCorner"
  1810. TextboxCorner.Parent = Textbox
  1811.  
  1812. TextBox.FocusLost:Connect(
  1813. function(ep)
  1814. if ep then
  1815. if #TextBox.Text > 0 then
  1816. pcall(callback, TextBox.Text)
  1817. if disapper then
  1818. TextBox.Text = ""
  1819. end
  1820. end
  1821. end
  1822. end
  1823. )
  1824.  
  1825. Container.CanvasSize = UDim2.new(0, 0, 0, ContainerLayout.AbsoluteContentSize.Y)
  1826. end
  1827. return ContainerItems
  1828. end
  1829. return Tabs
  1830. end
  1831. repeat wait() until game:IsLoaded()
  1832. if workspace:FindFirstChild("CCoff") then
  1833. game:GetService("Workspace").CCoff:Destroy()
  1834. end
  1835.  
  1836.  
  1837. local win = VLib:Window("Manahub", "Super Saber")
  1838. local Main = win:Tab("Main")
  1839. local Autofarm = win:Tab("Autofarm")
  1840. local BossFarm = win:Tab("Boss Farm")
  1841. local AutoBuy = win:Tab("Auto Buy")
  1842. local Eggs = win:Tab("Eggs")
  1843. local Credits = win:Tab("Credits")
  1844.  
  1845. Main:Slider("WalkSpeed", 0, 250, 16, function(v)
  1846.  
  1847. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = v
  1848.  
  1849. end)
  1850.  
  1851. Main:Slider("JumpPower", 0, 250, 50, function(v)
  1852.  
  1853. game.Players.LocalPlayer.Character.Humanoid.JumpPower = v
  1854.  
  1855. end)
  1856.  
  1857. Main:Toggle("Infinite Jump", false, function()
  1858.  
  1859. game:GetService("UserInputService").JumpRequest:connect(function()
  1860. game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
  1861. end)
  1862.  
  1863. end)
  1864.  
  1865. Main:Toggle("Anti-Afk", true, function(t)
  1866.  
  1867. local VirtualUser=game:service'VirtualUser'
  1868. game:service'Players'.LocalPlayer.Idled:connect(function()
  1869. warn("anti-afk")
  1870. VirtualUser:CaptureController()
  1871. VirtualUser:ClickButton2(Vector2.new())
  1872.  
  1873. end)
  1874. end)
  1875.  
  1876. Main:Toggle("Noclip", false, function()
  1877.  
  1878.  
  1879. if state then
  1880.  
  1881. noclip = false
  1882. game:GetService('RunService').Stepped:connect(function()
  1883. if noclip then
  1884. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  1885. end
  1886. end)
  1887.  
  1888. else
  1889.  
  1890. noclip = not noclip
  1891. game:GetService('RunService').Stepped:connect(function()
  1892. if noclip then
  1893. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  1894. end
  1895. end)
  1896. print(t)
  1897. end
  1898.  
  1899. end)
  1900.  
  1901. Credits:Button("Mana#9724", function()
  1902.  
  1903.  
  1904. end)
  1905.  
  1906. Autofarm:Toggle("Turn off stat effects", true, function(state)
  1907. if state then
  1908. local args = {
  1909. [1] = "Disable Currency PopUp",
  1910. [2] = true
  1911. }
  1912. game:GetService("ReplicatedStorage").Events.RemoteEvents.SettingsEvent:FireServer(unpack(args))
  1913. else
  1914. local args = {
  1915. [1] = "Disable Currency PopUp",
  1916. [2] = false
  1917. }
  1918. game:GetService("ReplicatedStorage").Events.RemoteEvents.SettingsEvent:FireServer(unpack(args))
  1919. end
  1920. end)
  1921.  
  1922. Autofarm:Toggle("Auto Swing", false, function(state)
  1923. swing = state
  1924. while swing do wait()
  1925. local virtualUser = game:GetService("VirtualUser")
  1926. virtualUser:CaptureController()
  1927. wait(.45)
  1928. virtualUser:Button1Down(Vector2.new(), CFrame.new())
  1929. end
  1930. end)
  1931.  
  1932. Autofarm:Toggle("Auto Sell", false, function(sta)
  1933. sell = sta
  1934. while sell do wait()
  1935. for _,v in pairs(game:GetService("Workspace").Map.ImportantAssets.Sells:GetDescendants()) do
  1936. if v:IsA("TouchTransmitter") then
  1937. firetouchinterest(game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart"), v.Parent, 0)
  1938. firetouchinterest(game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart"), v.Parent, 1)
  1939. end
  1940. end
  1941. end
  1942. end)
  1943.  
  1944. Autofarm:Toggle("Auto Collect Gems", false, function(state)
  1945. collect = state
  1946. while collect do wait()
  1947. for _,v in pairs(game:GetService("Workspace").Currencies:GetDescendants()) do
  1948. if v:IsA("TouchTransmitter") then
  1949. firetouchinterest(game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart"), v.Parent, 0)
  1950. firetouchinterest(game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart"), v.Parent, 1)
  1951. end
  1952. end
  1953. end
  1954. end)
  1955.  
  1956. selectEgg = ""
  1957. Egg = {}
  1958. for _,v in next, game:GetService("Workspace").Eggs:GetChildren() do
  1959. if not table.find(Egg, v.Name) then
  1960. table.insert(Egg, v.Name)
  1961. end
  1962. end
  1963.  
  1964. Eggs:Dropdown("Select Egg", Egg, function(a)
  1965. selectEgg = a
  1966. end)
  1967.  
  1968. Eggs:Toggle("Auto Open Egg", false, function(state)
  1969. openeg = state
  1970. while openeg do wait()
  1971. local args = {
  1972. [1] = selectEgg,
  1973. [2] = "Triple"
  1974. }
  1975.  
  1976. game:GetService("ReplicatedStorage").Events.RemoteFunctions.OpenEgg:InvokeServer(unpack(args))
  1977.  
  1978. end
  1979. end)
  1980.  
  1981. Autofarm:Button("Collect Chests", function()
  1982. for _,v in pairs(game:GetService("Workspace").Chests:GetDescendants()) do
  1983. if v:IsA("TouchTransmitter") then
  1984. firetouchinterest(game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart"), v.Parent, 0)
  1985. firetouchinterest(game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart"), v.Parent, 1)
  1986. end
  1987. end
  1988. end)
  1989.  
  1990. Autofarm:Button("Redeam Secret Codes", function()
  1991.  
  1992. local args = {
  1993. [1] = "Easy"
  1994. }
  1995.  
  1996. game:GetService("ReplicatedStorage").Events.RemoteFunctions.RedeemCode:InvokeServer(unpack(args))
  1997.  
  1998. local args = {
  1999. [1] = "Banana"
  2000. }
  2001.  
  2002. game:GetService("ReplicatedStorage").Events.RemoteFunctions.RedeemCode:InvokeServer(unpack(args))
  2003.  
  2004. local args = {
  2005. [1] = "SECRETEGG"
  2006. }
  2007.  
  2008. game:GetService("ReplicatedStorage").Events.RemoteFunctions.RedeemCode:InvokeServer(unpack(args))
  2009.  
  2010. local args = {
  2011. [1] = "EZMUSH"
  2012. }
  2013.  
  2014. game:GetService("ReplicatedStorage").Events.RemoteFunctions.RedeemCode:InvokeServer(unpack(args))
  2015.  
  2016. local args = {
  2017. [1] = "UnderWater"
  2018. }
  2019.  
  2020. game:GetService("ReplicatedStorage").Events.RemoteFunctions.RedeemCode:InvokeServer(unpack(args))
  2021.  
  2022. local args = {
  2023. [1] = "BOSSAR"
  2024. }
  2025.  
  2026. game:GetService("ReplicatedStorage").Events.RemoteFunctions.RedeemCode:InvokeServer(unpack(args))
  2027. end)
  2028.  
  2029. Autofarm:Button("unlock all islands", function()
  2030. local oldcframe = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  2031. for _,v in pairs(game:GetService("Workspace").Islands:GetChildren()) do
  2032. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.CFrame
  2033. wait(.5)
  2034. end
  2035. wait(0.1)
  2036. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = oldcframe
  2037. end)
  2038.  
  2039. AutoBuy:Toggle("Buy Sabers", false, function(state)
  2040. saber = state
  2041. while saber do wait()
  2042. local args = {
  2043. [1] = "BuyAll"
  2044. }
  2045. game:GetService("ReplicatedStorage").Events.RemoteEvents.SwordEvent:FireServer(unpack(args))
  2046. end
  2047. end)
  2048.  
  2049. AutoBuy:Toggle("AutoBuy DNA", false, function(state)
  2050. DNA = state
  2051. while DNA do wait()
  2052. local args = {
  2053. [1] = "BuyAll"
  2054. }
  2055. game:GetService("ReplicatedStorage").Events.RemoteEvents.DNAEvent:FireServer(unpack(args))
  2056. end
  2057. end)
  2058.  
  2059. AutoBuy:Toggle("AutoBuy Rank", false, function(state)
  2060. Rank = state
  2061. while Rank do wait()
  2062. local args = {
  2063. [1] = "BuyAll"
  2064. }
  2065. game:GetService("ReplicatedStorage").Events.RemoteEvents.DNAEvent:FireServer(unpack(args))
  2066. end
  2067. end)
  2068.  
  2069. AutoBuy:line()
  2070.  
  2071. AutoBuy:Toggle("Upgrade Pets Equipped", false, function(t)
  2072. PetsEquipped = t
  2073. while PetsEquipped do wait()
  2074. local args = {
  2075. [1] = "PetsEquipped"
  2076. }
  2077. game:GetService("ReplicatedStorage").Events.RemoteEvents.Upgrade:FireServer(unpack(args))
  2078. end
  2079. end)
  2080.  
  2081. AutoBuy:Toggle("Upgrade Jump Power", false, function(t)
  2082. speed = t
  2083. while speed do wait()
  2084. local args = {
  2085. [1] = "JumpPower"
  2086. }
  2087.  
  2088. game:GetService("ReplicatedStorage").Events.RemoteEvents.Upgrade:FireServer(unpack(args))
  2089. end
  2090. end)
  2091.  
  2092. AutoBuy:Toggle("Upgrade Health", false, function(t)
  2093. Health = t
  2094. while Health do wait()
  2095. local args = {
  2096. [1] = "Health"
  2097. }
  2098.  
  2099. game:GetService("ReplicatedStorage").Events.RemoteEvents.Upgrade:FireServer(unpack(args))
  2100.  
  2101. end
  2102. end)
  2103.  
  2104. AutoBuy:Toggle("Upgrade EggOpeningSpeed", false, function(t)
  2105. EggOpeningSpeed = t
  2106. while EggOpeningSpeed do wait()
  2107. local args = {
  2108. [1] = "EggOpeningSpeed"
  2109. }
  2110.  
  2111. game:GetService("ReplicatedStorage").Events.RemoteEvents.Upgrade:FireServer(unpack(args))
  2112. end
  2113. end)
  2114.  
  2115. AutoBuy:Toggle("Upgrade Pet Storage", false, function(t)
  2116. PetStorage = t
  2117. while PetStorage do wait()
  2118. local args = {
  2119. [1] = "PetStorage"
  2120. }
  2121.  
  2122. game:GetService("ReplicatedStorage").Events.RemoteEvents.Upgrade:FireServer(unpack(args))
  2123. end
  2124. end)
  2125.  
  2126. AutoBuy:Toggle("Upgrade Walk Speed", false, function(t)
  2127. WalkSpeed = t
  2128. while WalkSpeed do wait()
  2129. local args = {
  2130. [1] = "WalkSpeed"
  2131. }
  2132.  
  2133. game:GetService("ReplicatedStorage").Events.RemoteEvents.Upgrade:FireServer(unpack(args))
  2134.  
  2135. end
  2136. end)
  2137. local farmboss;
  2138. BossFarm:Toggle("Autofarm Boss", false, function(t)
  2139. if state then
  2140.  
  2141. noclip = false
  2142. game:GetService('RunService').Stepped:connect(function()
  2143. if noclip then
  2144. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  2145. end
  2146. end)
  2147.  
  2148. else
  2149.  
  2150. noclip = not noclip
  2151. game:GetService('RunService').Stepped:connect(function()
  2152. if noclip then
  2153. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  2154. end
  2155. end)
  2156. print(t)
  2157. end
  2158. farmboss = t
  2159. end)
  2160.  
  2161. spawn(function()
  2162. while wait() do
  2163. if farmboss then
  2164. for _,v in next, game:GetService("Workspace").Bosses:GetChildren() do
  2165. if v:FindFirstChild("HumanoidRootPart") then
  2166. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame * CFrame.new(0,8,5)
  2167. end
  2168. end
  2169. end
  2170. end
  2171. end)
  2172.  
  2173. spawn(function()
  2174. while wait() do
  2175. if farmboss then
  2176. local virtualUser = game:GetService("VirtualUser")
  2177. virtualUser:CaptureController()
  2178. wait(.45)
  2179. virtualUser:Button1Down(Vector2.new(), CFrame.new())
  2180. end
  2181. end
  2182. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement