Advertisement
Attrixx

Untitled

Oct 2nd, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.48 KB | None | 0 0
  1. local firstUi = nil
  2. local wins = {}
  3. local count = 0
  4. local circTime = 1
  5. local cooldown = false
  6. local enabled = false
  7. local mouse = game.Players.LocalPlayer:GetMouse()
  8. local uis = game:GetService("UserInputService")
  9. local tabs = {}
  10. local countTabs = 0
  11.  
  12. local TweenService = game:GetService("TweenService")
  13. local tween
  14. local tweenInfo = TweenInfo.new(
  15. 0.5, -- Time
  16. Enum.EasingStyle.Linear, -- EasingStyle
  17. Enum.EasingDirection.Out, -- EasingDirection
  18. 0, -- RepeatCount (when less than zero the tween will loop indefinitely)
  19. false, -- Reverses (tween will reverse once reaching it's goal)
  20. 0 -- DelayTime
  21. )
  22.  
  23. local Circle = Instance.new("ImageLabel")
  24. Circle.Name = "Circle"
  25. Circle.Parent = nil
  26. Circle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  27. Circle.BackgroundTransparency = 1.000
  28. Circle.ZIndex = 10
  29. Circle.Image = "rbxassetid://266543268"
  30. Circle.ImageColor3 = Color3.fromRGB(255, 255, 255)
  31. Circle.ImageTransparency = 0.500
  32.  
  33. function CircleClick(Button, X, Y)
  34. spawn(function()
  35. Button.ClipsDescendants = true
  36. local Circ = Circle:Clone()
  37. Circ.Parent = Button
  38. local NewX = X - Circ.AbsolutePosition.X
  39. local NewY = Y - Circ.AbsolutePosition.Y
  40. Circ.Position = UDim2.new(0, NewX, 0, NewY)
  41. local Size = 0
  42. if Button.AbsoluteSize.X > Button.AbsoluteSize.Y then
  43. Size = Button.AbsoluteSize.X * 1.5
  44. elseif Button.AbsoluteSize.X < Button.AbsoluteSize.Y then
  45. Size = Button.AbsoluteSize.Y * 1.5
  46. elseif Button.AbsoluteSize.X == Button.AbsoluteSize.Y then
  47. Size = Button.AbsoluteSize.X * 1.5
  48. end
  49. Circ:TweenSizeAndPosition(UDim2.new(0, Size, 0, Size), UDim2.new(0.5, -Size / 2, 0.5, -Size / 2), "Out", "Quad", circTime, false, nil)
  50. for i = 1, 10 do
  51. Circ.ImageTransparency = Circ.ImageTransparency + 0.1
  52. wait(circTime / 10)
  53. end
  54. Circ:Destroy()
  55. end)
  56. end
  57.  
  58. function startUi(name)
  59. if game.CoreGui:FindFirstChild("UI") ~= nil then
  60. game.CoreGui:FindFirstChild("UI"):Destroy()
  61. end
  62. table.insert(wins, name)
  63. count = count + 1
  64. local UILib = Instance.new("ScreenGui")
  65. local Main = Instance.new("ImageLabel")
  66. local Container = Instance.new("ImageLabel")
  67. local Label = Instance.new("TextLabel")
  68. local Tabs = Instance.new("Frame")
  69. --local UIGridLayout = Instance.new("UIGridLayout")
  70.  
  71. UILib.Name = "UI"
  72. UILib.Parent = game.CoreGui
  73.  
  74. Main.Name = "Main"
  75. Main.Parent = UILib
  76. Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  77. Main.BackgroundTransparency = 1.000
  78. Main.Position = UDim2.new(0.0600292832, 0, 0.145686001, 0)
  79. Main.Size = UDim2.new(0, 600, 0, 500)
  80. Main.Image = "rbxassetid://3570695787"
  81. Main.ImageColor3 = Color3.fromRGB(27, 32, 41)
  82. Main.ScaleType = Enum.ScaleType.Slice
  83. Main.SliceCenter = Rect.new(100, 100, 100, 100)
  84. Main.SliceScale = 0.120
  85.  
  86. Container.Name = "Container"
  87. Container.Parent = Main
  88. Container.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  89. Container.BackgroundTransparency = 1.000
  90. Container.Position = UDim2.new(0, 6, 0, 48)
  91. Container.Size = UDim2.new(1, -12, 1, -56)
  92. Container.Image = "rbxassetid://3570695787"
  93. Container.ImageColor3 = Color3.fromRGB(21, 25, 33)
  94. Container.ScaleType = Enum.ScaleType.Slice
  95. Container.SliceCenter = Rect.new(100, 100, 100, 100)
  96. Container.SliceScale = 0.120
  97.  
  98. Label.Name = "Label"
  99. Label.Parent = Main
  100. Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  101. Label.BackgroundTransparency = 1.000
  102. Label.Position = UDim2.new(0, 21, 0, 0)
  103. Label.Size = UDim2.new(0, 579, 0, 50)
  104. Label.ZIndex = 3
  105. Label.Font = Enum.Font.SourceSans
  106. Label.Text = name
  107. Label.TextColor3 = Color3.fromRGB(255, 255, 255)
  108. Label.TextSize = 25.000
  109. Label.TextXAlignment = Enum.TextXAlignment.Left
  110.  
  111. Tabs.Name = "Tabs"
  112. Tabs.Parent = Main
  113. Tabs.BackgroundColor3 = Color3.fromRGB(27, 32, 41)
  114. Tabs.BackgroundTransparency = 1.000
  115. Tabs.BorderSizePixel = 0
  116. Tabs.Position = UDim2.new(0,0,0,-40)
  117. Tabs.Size = UDim2.new(1, 0, 0, 60)
  118.  
  119. --[[UIGridLayout.Parent = Tabs
  120. UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
  121. UIGridLayout.CellPadding = UDim2.new(0, 10, 0, 5)
  122. UIGridLayout.CellSize = UDim2.new(0, 175, 1, 0)--]]
  123. -- toggle
  124. local Toggle = Instance.new("ImageButton")
  125. Toggle.Name = "Toggle"
  126. Toggle.Parent = Main
  127. Toggle.BackgroundTransparency = 1.000
  128. Toggle.Position = UDim2.new(1, -40, 0, 0)
  129. Toggle.Size = UDim2.new(0, 40, 0, 40)
  130. Toggle.ZIndex = 2
  131. Toggle.Image = "rbxassetid://3926305904"
  132. Toggle.ImageRectOffset = Vector2.new(404, 284)
  133. Toggle.ImageRectSize = Vector2.new(36, 36)
  134.  
  135. -- Scripts:
  136.  
  137. local function CINXDU_fake_script() -- Toggle.LocalScript
  138. local script = Instance.new('LocalScript', Toggle)
  139.  
  140. _G.on = true
  141. _G.wait = false
  142. script.Parent.MouseButton1Click:Connect(function()
  143. if _G.on == true then
  144. if _G.wait == false then
  145. _G.on = false
  146. _G.wait = true
  147. for i,v in pairs(script.Parent.Parent.Container:GetChildren()) do
  148. v.Visible = false
  149. end
  150. script.Parent.Parent:TweenSize(UDim2.new(0,600,0,50), Enum.EasingDirection.Out, Enum.EasingStyle.Sine, 1, false)
  151. wait(1)
  152. tween = TweenService:Create(script.Parent, tweenInfo, {Rotation = 180})
  153.  
  154. tween:Play()
  155. _G.wait = false
  156. end
  157. else
  158. if _G.wait == false then
  159. _G.on = true
  160. _G.wait = true
  161. script.Parent.Parent:TweenSize(UDim2.new(0,600,0,500), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 1, false)
  162. wait(1)
  163. tween = TweenService:Create(script.Parent, tweenInfo, {Rotation = 0})
  164.  
  165. tween:Play()
  166. _G.wait = false
  167. for i,v in pairs(script.Parent.Parent.Container:GetChildren()) do
  168. v.Visible = true
  169. end
  170. end
  171. end
  172. end)
  173. end
  174. coroutine.wrap(CINXDU_fake_script)()
  175. -- drag
  176. local function CKSQ_fake_script() -- Main.Drag
  177. local script = Instance.new('LocalScript', Main)
  178.  
  179. local UIS = game:GetService("UserInputService")
  180. function dragify(Frame)
  181. dragToggle = nil
  182. local dragSpeed = 0
  183. dragInput = nil
  184. dragStart = nil
  185. local dragPos = nil
  186. function updateInput(input)
  187. local Delta = input.Position - dragStart
  188. local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  189. game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.25), {Position = Position}):Play()
  190. end
  191. Frame.InputBegan:Connect(function(input)
  192. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
  193. dragToggle = true
  194. dragStart = input.Position
  195. startPos = Frame.Position
  196. input.Changed:Connect(function()
  197. if input.UserInputState == Enum.UserInputState.End then
  198. dragToggle = false
  199. end
  200. end)
  201. end
  202. end)
  203. Frame.InputChanged:Connect(function(input)
  204. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  205. dragInput = input
  206. end
  207. end)
  208. game:GetService("UserInputService").InputChanged:Connect(function(input)
  209. if input == dragInput and dragToggle then
  210. updateInput(input)
  211. end
  212. end)
  213. end
  214.  
  215. dragify(script.Parent)
  216. end
  217. coroutine.wrap(CKSQ_fake_script)()
  218. end
  219.  
  220. function addTab(name)
  221. if game.CoreGui:FindFirstChild("UI") then
  222. -- for container
  223. tabs[tostring(name)] = 1
  224. -- for actual tabs
  225. countTabs = countTabs + 31 + string.len(name) * 13 + 10
  226. if countTabs <= 600 then
  227. -- tab thing
  228. local Tab = Instance.new("ImageLabel")
  229. local Dot = Instance.new("ImageLabel")
  230. local TextLabel = Instance.new("TextLabel")
  231.  
  232. Tab.Name = name
  233. Tab.Parent = game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Tabs")
  234. Tab.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  235. Tab.BackgroundTransparency = 1.000
  236. Tab.Size = UDim2.new(0, 31 + string.len(name) * 13, 0, 90)
  237. Tab.Position = UDim2.new(0, countTabs - 31 - string.len(name) * 13 - 10, 0, 0)
  238. Tab.ZIndex = 0
  239. Tab.Image = "rbxassetid://3570695787"
  240. Tab.ImageColor3 = Color3.fromRGB(26, 33, 45)
  241. if firstUi ~= nil then
  242. Tab.ImageColor3 = Color3.fromRGB(27, 32, 41)
  243. end
  244. Tab.ScaleType = Enum.ScaleType.Slice
  245. Tab.SliceCenter = Rect.new(100, 100, 100, 100)
  246. Tab.SliceScale = 0.120
  247.  
  248. Dot.Name = "Dot"
  249. Dot.Parent = Tab
  250. Dot.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  251. Dot.BackgroundTransparency = 1.000
  252. Dot.Position = UDim2.new(0, 13, 0, 15)
  253. Dot.Size = UDim2.new(0, 8, 0, 8)
  254. Dot.ZIndex = 4
  255. Dot.Image = "rbxassetid://3570695787"
  256. Dot.ImageColor3 = Color3.fromRGB(255, 80, 60)
  257. if firstUi ~= nil then
  258. Dot.ImageColor3 = Color3.fromRGB(168, 66, 66)
  259. end
  260. Dot.ScaleType = Enum.ScaleType.Slice
  261. Dot.SliceCenter = Rect.new(100, 100, 100, 100)
  262. Dot.SliceScale = 0.120
  263.  
  264. TextLabel.Parent = Tab
  265. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  266. TextLabel.BackgroundTransparency = 1.000
  267. TextLabel.Position = UDim2.new(0, 31, 0, 0)
  268. TextLabel.Size = UDim2.new(1, -31, 0, 39)
  269. TextLabel.ZIndex = 3
  270. TextLabel.Font = Enum.Font.SourceSans
  271. TextLabel.Text = name
  272. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  273. if firstUi ~= nil then
  274. TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
  275. end
  276. TextLabel.TextSize = 25.000
  277. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  278. -- container
  279. local Tab = Instance.new("Frame")
  280. --local UIGridLayout2 = Instance.new("UIGridLayout")
  281. Tab.Name = name
  282. if firstUi == nil then
  283. Tab.Visible = true
  284. firstUi = TextLabel.Text
  285. else
  286. Tab.Visible = false
  287. end
  288. Tab.Parent = game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container")
  289. Tab.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  290. Tab.BackgroundTransparency = 1.000
  291. Tab.Position = UDim2.new(0, 10, 0, 10)
  292. Tab.Size = UDim2.new(1, -20, 1, -20)
  293.  
  294. --[[UIGridLayout2.Parent = Tab
  295. UIGridLayout2.SortOrder = Enum.SortOrder.LayoutOrder
  296. UIGridLayout2.CellSize = UDim2.new(1, 0, 0, 40)--]]
  297. -- btn
  298. local Toggle = Instance.new("TextButton")
  299.  
  300. Toggle.Name = "Toggle"
  301. Toggle.Parent = game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Tabs"):FindFirstChild(name)
  302. Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  303. Toggle.BackgroundTransparency = 12.000
  304. Toggle.Size = UDim2.new(1, 0, 0, 39)
  305. Toggle.Font = Enum.Font.SourceSans
  306. Toggle.TextColor3 = Color3.fromRGB(0, 0, 0)
  307. Toggle.TextSize = 14.000
  308. Toggle.TextTransparency = 1.000
  309.  
  310. function script() -- Toggle.LocalScript
  311. local script = Instance.new('LocalScript', Toggle)
  312.  
  313. script.Parent.MouseButton1Click:Connect(function()
  314. if _G.on == true then
  315. if game.CoreGui:FindFirstChild("UI") ~= nil then
  316. for i,v in pairs(game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Tabs"):GetChildren()) do
  317. if v.ClassName ~= "UIGridLayout" then
  318. v.ImageColor3 = Color3.fromRGB(26, 33, 45)
  319. v.Dot.ImageColor3 = Color3.fromRGB(168, 66, 66)
  320. v.TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
  321. end
  322. end
  323. local yes = game.CoreGui["UI"]["Main"]["Tabs"]:FindFirstChild(script.Parent.Parent.Name)
  324. yes.ImageColor3 = Color3.fromRGB(27, 32, 41)
  325. yes.Dot.ImageColor3 = Color3.fromRGB(255, 80, 60)
  326. yes.TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  327.  
  328. for i,v in pairs(game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):GetChildren()) do
  329. v.Visible = false
  330. end
  331. game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container")[script.Parent.Parent.Name].Visible = true
  332. end
  333. end
  334. end)
  335. end
  336. coroutine.wrap(script)()
  337. else
  338. notify("Max size or amount of tabs!")
  339. end
  340. end
  341. end
  342.  
  343. function addBtn(name, tab, callback)
  344. name = name or "New Button"
  345. callback = callback or function() end
  346. if game.CoreGui:FindFirstChild("UI") and game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab) then
  347. local Button = Instance.new("ImageButton")
  348. local TextLabel = Instance.new("TextLabel")
  349. local type = Instance.new("StringValue")
  350.  
  351. Button.Name = name
  352. Button.Parent = game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab)
  353. Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  354. Button.BackgroundTransparency = 1.000
  355. Button.Size = UDim2.new(1, 0, 0, 40)
  356. Button.Position = UDim2.new(0,0,0,tonumber(tabs[tostring(tab)]) * 45 - 45)
  357. Button.ZIndex = 3
  358. Button.Image = "rbxassetid://2790382281"
  359. Button.ImageColor3 = Color3.fromRGB(27, 32, 41)
  360. Button.ScaleType = Enum.ScaleType.Slice
  361. Button.SliceCenter = Rect.new(4, 4, 252, 252)
  362.  
  363. type.Name = "Type"
  364. type.Value = "Button"
  365. type.Parent = Button
  366.  
  367. TextLabel.Parent = Button
  368. TextLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  369. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  370. TextLabel.BackgroundTransparency = 1.000
  371. TextLabel.BorderSizePixel = 0
  372. TextLabel.Position = UDim2.new(0.5, 0, 0.5, 0)
  373. TextLabel.Size = UDim2.new(1, -5, 1, -5)
  374. TextLabel.ZIndex = 4
  375. TextLabel.Font = Enum.Font.GothamSemibold
  376. TextLabel.Text = name
  377. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  378. TextLabel.TextSize = 25
  379. TextLabel.Name = "Label"
  380.  
  381. Button.MouseButton1Click:Connect(function()
  382. pcall(callback)
  383. CircleClick(Button, mouse.X, mouse.Y)
  384. end)
  385. tabs[tostring(tab)] = tonumber(tabs[tostring(tab)]) + 1
  386. end
  387. end
  388.  
  389. function addToggle(name, tab, callback)
  390. name = name or "New Toggle"
  391. callback = callback or function() end
  392. local switchactions = {}
  393. if game.CoreGui:FindFirstChild("UI") and game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab) then
  394. local Toggle = Instance.new("ImageButton")
  395. local Label = Instance.new("TextLabel")
  396. local checkframe = Instance.new("ImageLabel")
  397. local checkmark = Instance.new("ImageButton")
  398. local type = Instance.new("StringValue")
  399.  
  400. Toggle.Name = name
  401. Toggle.Parent = game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab)
  402. Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  403. Toggle.BackgroundTransparency = 1.000
  404. Toggle.Size = UDim2.new(1, 0, 0, 40)
  405. Toggle.ZIndex = 3
  406. Toggle.Position = UDim2.new(0,0,0,tonumber(tabs[tostring(tab)]) * 45 - 45)
  407. Toggle.Image = "rbxassetid://2790382281"
  408. Toggle.ImageColor3 = Color3.fromRGB(27, 32, 41)
  409. Toggle.ScaleType = Enum.ScaleType.Slice
  410. Toggle.SliceCenter = Rect.new(4, 4, 252, 252)
  411.  
  412. type.Name = "Type"
  413. type.Value = "Toggle"
  414. type.Parent = Toggle
  415.  
  416. Label.Name = "Label"
  417. Label.Parent = Toggle
  418. Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  419. Label.BackgroundTransparency = 1.000
  420. Label.Size = UDim2.new(1.06602108, -40, 1, 0)
  421. Label.ZIndex = 4
  422. Label.Font = Enum.Font.GothamSemibold
  423. Label.Text = "This is a toggle"
  424. Label.TextColor3 = Color3.fromRGB(255, 255, 255)
  425. Label.TextSize = 25.000
  426. Label.TextWrapped = true
  427.  
  428. checkframe.Name = "checkframe"
  429. checkframe.Parent = Toggle
  430. checkframe.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  431. checkframe.BackgroundTransparency = 1.000
  432. checkframe.Position = UDim2.new(1, -35, 0, 5)
  433. checkframe.Size = UDim2.new(0, 30, 0, 30)
  434. checkframe.ZIndex = 4
  435. checkframe.Image = "rbxassetid://3570695787"
  436. checkframe.ImageColor3 = Color3.fromRGB(21, 25, 33)
  437. checkframe.ScaleType = Enum.ScaleType.Slice
  438. checkframe.SliceCenter = Rect.new(100, 100, 100, 100)
  439. checkframe.SliceScale = 0.120
  440.  
  441. checkmark.Name = "checkmark"
  442. checkmark.Parent = checkframe
  443. checkmark.BackgroundTransparency = 1.000
  444. checkmark.BorderSizePixel = 0
  445. checkmark.Size = UDim2.new(1, 0, 1, 0)
  446. checkmark.ZIndex = 5
  447. checkmark.Image = "rbxassetid://3926305904"
  448. checkmark.ImageRectOffset = Vector2.new(284, 4)
  449. checkmark.ImageRectSize = Vector2.new(24, 24)
  450. tabs[tostring(tab)] = tonumber(tabs[tostring(tab)]) + 1
  451. function Trigger ()
  452. if cooldown == false then
  453. enabled = not enabled
  454. if enabled == false then
  455. cooldown = true
  456. tween = TweenService:Create(checkmark, tweenInfo, {Rotation = 360})
  457. tween:Play()
  458. wait(0.25)
  459. checkmark.ImageRectOffset = Vector2.new(284,4)
  460. checkmark.ImageRectSize = Vector2.new(24,24)
  461. wait(0.4)
  462. cooldown = false
  463. else
  464. cooldown = true
  465. tween = TweenService:Create(checkmark, tweenInfo, {Rotation = 0})
  466. tween:Play()
  467. wait(0.25)
  468. checkmark.ImageRectOffset = Vector2.new(644,204)
  469. checkmark.ImageRectSize = Vector2.new(36,36)
  470. wait(0.4)
  471. cooldown = false
  472. end
  473. pcall(callback, enabled)
  474. end
  475. end
  476. checkmark.MouseButton1Click:connect(Trigger)
  477. function switchactions:Set (state)
  478. if cooldown == false then
  479. enabled = state
  480. if enabled == false then
  481. cooldown = true
  482. tween = TweenService:Create(checkmark, tweenInfo, {Rotation = 360})
  483. tween:Play()
  484. wait(0.25)
  485. checkmark.ImageRectOffset = Vector2.new(284,4)
  486. checkmark.ImageRectSize = Vector2.new(24,24)
  487. wait(0.4)
  488. cooldown = false
  489. else
  490. cooldown = true
  491. tween = TweenService:Create(checkmark, tweenInfo, {Rotation = 0})
  492. tween:Play()
  493. wait(0.25)
  494. checkmark.ImageRectOffset = Vector2.new(644,204)
  495. checkmark.ImageRectSize = Vector2.new(36,36)
  496. wait(0.4)
  497. cooldown = false
  498. end
  499. pcall(callback, enabled)
  500. end
  501. end
  502.  
  503. return switchactions
  504. end
  505. end
  506.  
  507. function addSlider(name, tab, min, max, callback)
  508. name = name or "New Slider"
  509. callback = callback or function() end
  510. if game.CoreGui:FindFirstChild("UI") and game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab) then
  511. local Slider = Instance.new("ImageButton")
  512. local label = Instance.new("TextLabel")
  513. local btn = Instance.new("TextButton")
  514. local slider = Instance.new("ImageLabel")
  515. local val = Instance.new("TextLabel")
  516. local type = Instance.new("StringValue")
  517.  
  518. Slider.Name = name
  519. Slider.Parent = game.CoreGui:FindFirstChild("UI") and game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab)
  520. Slider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  521. Slider.BackgroundTransparency = 1.000
  522. Slider.Size = UDim2.new(1, 0, 0, 40)
  523. Slider.Position = UDim2.new(0,0,0,tonumber(tabs[tostring(tab)]) * 45 - 45)
  524. Slider.ZIndex = 3
  525. Slider.Image = "rbxassetid://2790382281"
  526. Slider.ImageColor3 = Color3.fromRGB(27, 32, 41)
  527. Slider.ScaleType = Enum.ScaleType.Slice
  528. Slider.SliceCenter = Rect.new(4, 4, 252, 252)
  529.  
  530. type.Name = "Type"
  531. type.Value = "Slider"
  532. type.Parent = Slider
  533.  
  534. label.Name = "label"
  535. label.Parent = Slider
  536. label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  537. label.BackgroundTransparency = 1.000
  538. label.Size = UDim2.new(0.5, 0, 1, 0)
  539. label.ZIndex = 4
  540. label.Font = Enum.Font.GothamSemibold
  541. label.Text = name
  542. label.TextColor3 = Color3.fromRGB(255, 255, 255)
  543. label.TextSize = 25.000
  544. label.TextWrapped = true
  545.  
  546. btn.Name = "btn"
  547. btn.Parent = Slider
  548. btn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  549. btn.BackgroundTransparency = 1.000
  550. btn.Position = UDim2.new(0.439999998, 0, 0.375, 0)
  551. btn.Size = UDim2.new(0.5, 0, 0, 10)
  552. btn.ZIndex = 4
  553. btn.Font = Enum.Font.SourceSans
  554. btn.TextColor3 = Color3.fromRGB(0, 0, 0)
  555. btn.TextSize = 14.000
  556. btn.TextTransparency = 1.000
  557.  
  558. slider.Name = "slider"
  559. slider.Parent = btn
  560. slider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  561. slider.BackgroundTransparency = 1.000
  562. slider.Size = UDim2.new(0, 0, 0, 10)
  563. slider.ZIndex = 4
  564. slider.Image = "rbxassetid://3570695787"
  565. slider.ImageColor3 = Color3.fromRGB(255, 80, 60)
  566. slider.ScaleType = Enum.ScaleType.Slice
  567. slider.SliceCenter = Rect.new(100, 100, 100, 100)
  568. slider.SliceScale = 0.120
  569.  
  570. val.Name = "value"
  571. val.Parent = Slider
  572. val.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  573. val.BackgroundTransparency = 1.000
  574. val.Position = UDim2.new(1, -60, 0, 0)
  575. val.Size = UDim2.new(0.1, 0, 1, 0)
  576. val.ZIndex = 4
  577. val.Font = Enum.Font.GothamSemibold
  578. val.Text = min .. "/" .. max
  579. val.TextColor3 = Color3.fromRGB(255, 255, 255)
  580. val.TextScaled = true
  581. --val.TextSize = 25.000
  582. val.TextWrapped = true
  583.  
  584. btn.MouseButton1Down:Connect(function()
  585. Value = math.floor((((tonumber(max) - tonumber(min)) / 250) * slider.AbsoluteSize.X) + tonumber(min)) or 0
  586. pcall(function()
  587. callback(Value)
  588. end)
  589. slider.Size = UDim2.new(0, math.clamp(mouse.X - slider.AbsolutePosition.X, 0, 250), 0, 15)
  590. moveconnection = mouse.Move:Connect(function()
  591. val.Text = Value .. "/" .. max
  592. Value = math.floor((((tonumber(max) - tonumber(min)) / 250) * slider.AbsoluteSize.X) + tonumber(min))
  593. pcall(function()
  594. callback(Value)
  595. end)
  596. slider.Size = UDim2.new(0, math.clamp(mouse.X - slider.AbsolutePosition.X, 0, 250), 0, 15)
  597. end)
  598. releaseconnection = uis.InputEnded:Connect(function(Mouse)
  599. if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
  600. Value = math.floor((((tonumber(max) - tonumber(min)) / 250) * slider.AbsoluteSize.X) + tonumber(min))
  601. pcall(function()
  602. callback(Value)
  603. end)
  604. slider.Size = UDim2.new(0, math.clamp(mouse.X - slider.AbsolutePosition.X, 0, 250), 0, 15)
  605. moveconnection:Disconnect()
  606. releaseconnection:Disconnect()
  607. end
  608. end)
  609. end)
  610. tabs[tostring(tab)] = tonumber(tabs[tostring(tab)]) + 1
  611. end
  612. end
  613.  
  614. function addLabel(name, tab)
  615. name = name or "New Label"
  616. if game.CoreGui:FindFirstChild("UI") and game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab) then
  617. local Label = Instance.new("ImageButton")
  618. local label = Instance.new("TextLabel")
  619. local type = Instance.new("StringValue")
  620. Label.Name = name
  621. Label.Parent = game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab)
  622. Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  623. Label.BackgroundTransparency = 1.000
  624. Label.Size = UDim2.new(1, 0, 0, 40)
  625. Label.ZIndex = 3
  626. Label.Image = "rbxassetid://2790382281"
  627. Label.ImageColor3 = Color3.fromRGB(27, 32, 41)
  628. Label.ScaleType = Enum.ScaleType.Slice
  629. Label.SliceCenter = Rect.new(4, 4, 252, 252)
  630. Label.Position = UDim2.new(0,0,0,tonumber(tabs[tostring(tab)]) * 45 - 45)
  631.  
  632. type.Name = "Type"
  633. type.Value = "Label"
  634. type.Parent = Label
  635.  
  636. label.Name = "label"
  637. label.Parent = Label
  638. label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  639. label.BackgroundTransparency = 1.000
  640. label.Size = UDim2.new(1, 0, 0, 40)
  641. label.ZIndex = 4
  642. label.Font = Enum.Font.GothamSemibold
  643. label.Text = name
  644. label.TextColor3 = Color3.fromRGB(255, 255, 255)
  645. label.TextSize = 25.000
  646. label.TextWrapped = true
  647. tabs[tostring(tab)] = tonumber(tabs[tostring(tab)]) + 1
  648. end
  649. end
  650.  
  651. function notify(text, image, waitTime)
  652. text = text or "New Notification"
  653. image = image or ""
  654. waitTime = waitTime or 2
  655. if game.CoreGui:FindFirstChild("UI") then
  656. local Notification = Instance.new("ImageLabel")
  657. local Border = Instance.new("ImageLabel")
  658. local Label = Instance.new("TextLabel")
  659. local Image = Instance.new("ImageLabel")
  660.  
  661. Notification.Name = text
  662. Notification.Parent = game.CoreGui:FindFirstChild("UI")
  663. Notification.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  664. Notification.BackgroundTransparency = 1.000
  665. Notification.BorderSizePixel = 0
  666. Notification.Position = UDim2.new(1, 10, 1, -80)
  667. Notification.Size = UDim2.new(0, 250, 0, 60)
  668. Notification.ZIndex = 2
  669. Notification.Image = "rbxassetid://3570695787"
  670. Notification.ImageColor3 = Color3.fromRGB(33, 39, 50)
  671. Notification.ScaleType = Enum.ScaleType.Slice
  672. Notification.SliceCenter = Rect.new(100, 100, 100, 100)
  673. Notification.SliceScale = 0.120
  674.  
  675. Border.Name = "Border"
  676. Border.Parent = Notification
  677. Border.AnchorPoint = Vector2.new(0.5, 0.5)
  678. Border.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  679. Border.BackgroundTransparency = 1.000
  680. Border.Position = UDim2.new(0.5, 0, 0.5, 0)
  681. Border.Size = UDim2.new(1, 8, 1, 8)
  682. Border.Image = "rbxassetid://3570695787"
  683. Border.ImageColor3 = Color3.fromRGB(21, 25, 33)
  684. Border.ScaleType = Enum.ScaleType.Slice
  685. Border.SliceCenter = Rect.new(100, 100, 100, 100)
  686. Border.SliceScale = 0.040
  687.  
  688. Label.Name = "Label"
  689. Label.Parent = Notification
  690. Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  691. Label.BackgroundTransparency = 1.000
  692. Label.Size = UDim2.new(0.944000006, -75, 1, 0)
  693. Label.ZIndex = 3
  694. Label.Font = Enum.Font.GothamSemibold
  695. Label.Text = text
  696. Label.TextColor3 = Color3.fromRGB(255, 255, 255)
  697. Label.TextScaled = true
  698. Label.TextSize = 25.000
  699. Label.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  700. Label.TextWrapped = true
  701. Label.TextXAlignment = Enum.TextXAlignment.Left
  702.  
  703. Image.Name = "Image"
  704. Image.Parent = Notification
  705. Image.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  706. Image.BackgroundTransparency = 1.000
  707. Image.Position = UDim2.new(1, -80, 0, 5)
  708. Image.Size = UDim2.new(0, 50, 0, 50)
  709. Image.ZIndex = 3
  710. Image.Image = image
  711.  
  712. Notification:TweenPosition(UDim2.new(1, -225, 1, -80), Enum.EasingDirection.In, Enum.EasingStyle.Bounce, 1.5)
  713. wait(1.5)
  714. wait(tonumber(waitTime))
  715. Notification:TweenPosition(UDim2.new(1, 10, 1, -80), Enum.EasingDirection.Out, Enum.EasingStyle.Bounce, 1.5)
  716. wait(1.5)
  717. Notification:Destroy()
  718. end
  719. end
  720.  
  721. function addSection(name, tab)
  722. name = name or "New Section"
  723. if game.CoreGui:FindFirstChild("UI") then
  724. local Section = Instance.new("ImageButton")
  725. local Text = Instance.new("TextLabel")
  726. local type = Instance.new()
  727.  
  728. Section.Name = name
  729. Section.Parent = game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab)
  730. Section.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  731. Section.BackgroundTransparency = 1.000
  732. Section.ZIndex = 1
  733. Section.Position = UDim2.new(0,0,0,tonumber(tabs[tostring(tab)]) * 45 - 45)
  734. Section.Image = "rbxassetid://2790382281"
  735. Section.ImageColor3 = Color3.fromRGB(27, 32, 41)
  736. Section.ScaleType = Enum.ScaleType.Slice
  737. Section.SliceCenter = Rect.new(4, 4, 252, 252)
  738. Section.Size = UDim2.new(1,0,0,0)
  739.  
  740. type.Name = "Type"
  741. type.Value = "Section"
  742. type.Parent = Section
  743.  
  744. Text.Name = "Label"
  745. Text.Parent = Section
  746. Text.BackgroundTransparency = 1
  747. Text.ZIndex = 2
  748. Text.Position = UDim2.new(0,15,0,5)
  749. Text.Text = name
  750. Text.TextSize = 25
  751. Text.Font = Enum.Font.SourceSansBold
  752. Text.TextColor3 = Color3.new(255,255,255)
  753. Texst.Size = UDim2.new(1, -15,0,15)
  754. Text.TextXAlignment = "Left"
  755. end
  756. end
  757.  
  758. function addToSection(tab, item, section)
  759. if item ~= nil and section ~= nil then
  760. if game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab):FindFirstChild(section) ~= nil then
  761. game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab):FindFirstChild(section).Size = game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab):FindFirstChild(section).Size + UDim2.new(0,0,0,43)
  762. game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab):FindFirstChild(item).BackgroundTransparency = 1
  763. game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab):FindFirstChild(item).ImageTransparency = 1
  764. end
  765. end
  766. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement