Advertisement
Jsjdbot

Untitled

Jan 20th, 2025 (edited)
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.90 KB | None | 0 0
  1. local module = {}
  2.  
  3. -- Función para crear el "Tween" y aplicar transiciones suaves
  4. function tween(obj, tweeninfo, goal)
  5. local t = game:GetService('TweenService'):Create(obj, tweeninfo, goal)
  6. t:Play()
  7. end
  8.  
  9. -- Función para hacer que un Frame sea arrastrable
  10. function Dragify(Frame)
  11. local dragToggle = false
  12. local dragStart = nil
  13. local startPos = Frame.Position
  14. local dragInput = nil
  15.  
  16. local function updateInput(input)
  17. local delta = input.Position - dragStart
  18. local position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  19. Frame.Position = position
  20. end
  21.  
  22. Frame.InputBegan:Connect(function(input)
  23. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and game:GetService("UserInputService"):GetFocusedTextBox() == nil then
  24. dragToggle = true
  25. dragStart = input.Position
  26. startPos = Frame.Position
  27. end
  28. end)
  29.  
  30. Frame.InputChanged:Connect(function(input)
  31. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  32. dragInput = input
  33. end
  34. end)
  35.  
  36. game:GetService("UserInputService").InputChanged:Connect(function(input)
  37. if input == dragInput and dragToggle then
  38. updateInput(input)
  39. end
  40. end)
  41.  
  42. Frame.InputEnded:Connect(function(input)
  43. if input == dragInput then
  44. dragToggle = false
  45. end
  46. end)
  47. end
  48.  
  49. module.__index = module
  50.  
  51. function module:New(name)
  52. -- Crear la pantalla GUI
  53. local window = {}
  54. window.__index = window
  55.  
  56. local ScreenGui = Instance.new("ScreenGui")
  57. ScreenGui.Parent = game:GetService("CoreGui")
  58. ScreenGui.Name = name
  59. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  60.  
  61. -- Crear la ventana principal
  62. local Main = Instance.new("Frame")
  63. Main.Name = "Main"
  64. Main.Parent = ScreenGui
  65. Main.BackgroundColor3 = Color3.fromRGB(139, 0, 0) -- Rojo oscuro
  66. Main.BorderColor3 = Color3.fromRGB(255, 99, 71) -- Rojo claro
  67. Main.Position = UDim2.new(0.341, 0, 0.403, 0)
  68. Main.Size = UDim2.new(0, 602, 0, 360)
  69.  
  70. -- Agregar efecto de borde
  71. local UIStroke = Instance.new('UIStroke')
  72. UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  73. UIStroke.Color = Color3.fromRGB(102, 61, 255)
  74. UIStroke.LineJoinMode = Enum.LineJoinMode.Round
  75. UIStroke.Thickness = 2.5
  76. UIStroke.Transparency = 0
  77. UIStroke.Parent = Main
  78.  
  79. Dragify(Main)
  80.  
  81. -- Agregar esquinas redondeadas
  82. local UICorner = Instance.new("UICorner")
  83. UICorner.CornerRadius = UDim.new(0, 5)
  84. UICorner.Parent = Main
  85.  
  86. -- Título de la ventana
  87. local Title = Instance.new("TextLabel")
  88. Title.Parent = Main
  89. Title.BackgroundTransparency = 1
  90. Title.Position = UDim2.new(0.0307, 0, 0, 0)
  91. Title.Size = UDim2.new(0, 410, 0, 37)
  92. Title.Font = Enum.Font.SourceSans
  93. Title.Text = name
  94. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  95. Title.TextSize = 25
  96. Title.TextXAlignment = Enum.TextXAlignment.Left
  97.  
  98. -- Botón de cerrar
  99. local close = Instance.new("ImageButton")
  100. close.Name = "close"
  101. close.Parent = Main
  102. close.BackgroundTransparency = 1
  103. close.Position = UDim2.new(0.9369, 0, 0.0149, 0)
  104. close.Size = UDim2.new(0, 25, 0, 25)
  105. close.Image = "http://www.roblox.com/asset/?id=6236220207"
  106. close.MouseButton1Click:Connect(function()
  107. tween(Main, TweenInfo.new(0.5), {Position = UDim2.new(1, 0, 0, 0)}) -- animación de cierre
  108. wait(0.5)
  109. ScreenGui:Destroy()
  110. end)
  111.  
  112. local tabbuttons = Instance.new("ScrollingFrame")
  113. local UIListLayout = Instance.new("UIListLayout")
  114. tabbuttons.Name = "tab buttons"
  115. tabbuttons.Parent = Main
  116. tabbuttons.Active = true
  117. tabbuttons.ScrollBarImageColor3 = Color3.fromRGB(69, 69, 107)
  118. tabbuttons.BackgroundColor3 = Color3.fromRGB(26, 32, 58)
  119. tabbuttons.BorderSizePixel = 0
  120. tabbuttons.Position = UDim2.new(0, 0, 0.0918, 0)
  121. tabbuttons.Size = UDim2.new(0, 182, 0, 320)
  122.  
  123. -- Crea el botón de minimizar
  124. local min = Instance.new("ImageButton")
  125. min.Name = "min"
  126. min.Parent = Main
  127. min.BackgroundTransparency = 1
  128. min.Position = UDim2.new(0.877, 0, 0.0149, 0)
  129. min.Size = UDim2.new(0, 25, 0, 25)
  130. min.Image = "rbxassetid://8836139185" -- Imagen del botón de minimizar
  131.  
  132. -- Establece las variables iniciales
  133. local isMinimized = false -- Controla el estado de minimización
  134. local mainFrame = Main -- Referencia al marco que deseas minimizar/restaurar
  135.  
  136. -- Conectar el evento de clic del botón de minimizar
  137. min.MouseButton1Click:Connect(function()
  138. if isMinimized then
  139. mainFrame.Size = UDim2.new(0, 600, 0, 360) -- Tamaño restaurado
  140. isMinimized = false
  141. else
  142. mainFrame.Size = UDim2.new(0, 600, 0, 30) -- Tamaño minimizado
  143. isMinimized = true
  144. end
  145. end)
  146.  
  147. local tabspacing = Instance.new("TextButton")
  148. tabspacing.Name = "tabspacing"
  149. tabspacing.Parent = tabbuttons
  150. tabspacing.Active = false
  151. tabspacing.BackgroundColor3 = Color3.fromRGB(66, 66, 66)
  152. tabspacing.BackgroundTransparency = 1.000
  153. tabspacing.Position = UDim2.new(0.0449172594, 0, -3.76760227e-07, 0)
  154. tabspacing.Selectable = false
  155. tabspacing.Size = UDim2.new(0, 385, 0, 1)
  156. tabspacing.Font = Enum.Font.Roboto
  157. tabspacing.Text = " "
  158. tabspacing.TextColor3 = Color3.fromRGB(255, 255, 255)
  159. tabspacing.TextSize = 22.000
  160.  
  161. UIListLayout.Parent = tabbuttons
  162. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  163. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  164. UIListLayout.Padding = UDim.new(0, 13)
  165.  
  166. local selected = Instance.new('Sound', Main)
  167. selected.SoundId = 'rbxassetid://3314301672'
  168.  
  169. local tabselected = Instance.new('Sound', Main)
  170. tabselected.SoundId = 'rbxassetid://6228296129'
  171. tabselected.Volume = 1
  172.  
  173. function window:SetMainTab(tab)
  174. if tab.Tab:IsA('Frame') and tab.Tab.Parent == Main then
  175. for _,v in next, Main:GetChildren() do
  176. if v.Name == tab.Tab.Name then v.Visible = false end
  177. end
  178. end
  179. tab.Tab.Visible = true
  180. end
  181. function window:NewTab(namee)
  182. local tab = {}
  183. local Tab = Instance.new("Frame")
  184. local UICorner_2 = Instance.new("UICorner")
  185. Tab.Name = namee
  186. Tab.Parent = Main
  187. Tab.BackgroundColor3 = Color3.fromRGB(26,32,58)
  188. Tab.Position = UDim2.new(0.302325577, 0, 0.0918114111, 0)
  189. Tab.Size = UDim2.new(0, 420, 0, 320)
  190. Tab.Visible = false
  191.  
  192. local currenttab = Instance.new("TextLabel")
  193. currenttab.Parent = Tab
  194. currenttab.Name = 'currenttab'
  195. currenttab.Text = namee
  196. currenttab.Position = UDim2.new(0, 20, 0, 11)
  197. currenttab.TextXAlignment = Enum.TextXAlignment.Left
  198. currenttab.TextSize = 14
  199. currenttab.Font = Enum.Font.Ubuntu
  200. currenttab.TextColor3 = Color3.fromRGB(255,255,255)
  201.  
  202. UICorner_2.CornerRadius = UDim.new(0, 5)
  203. UICorner_2.Parent = Tab
  204.  
  205. local tabbutton = Instance.new("TextButton")
  206. tabbutton.Name = "tabbutton"
  207. tabbutton.Parent = tabbuttons
  208. tabbutton.BackgroundColor3 = Color3.fromRGB(178, 34, 34) -- Rojo medio
  209. tabbutton.Position = UDim2.new(0.0405405387, 0, 0.0399999991, 0)
  210. tabbutton.Size = UDim2.new(0, 149, 0, 39)
  211. tabbutton.Font = Enum.Font.Ubuntu
  212. tabbutton.Text = namee
  213. tabbutton.TextColor3 = Color3.fromRGB(255, 255, 255)
  214. tabbutton.TextSize = 17.000
  215. tabbutton.AutoButtonColor = false
  216.  
  217. tabbutton.MouseEnter:Connect(function()
  218. tween(tabbutton, TweenInfo.new(0.4, Enum.EasingStyle.Linear), {BackgroundColor3 = Color3.fromRGB(255, 69, 0)}) -- Rojo más brillante
  219. end)
  220.  
  221. tabbutton.MouseLeave:Connect(function()
  222. tween(tabbutton, TweenInfo.new(0.4, Enum.EasingStyle.Linear), {BackgroundColor3 = Color3.fromRGB(178, 34, 34)}) -- Rojo medio
  223. end)
  224.  
  225. tabbutton.MouseEnter:Connect(function()
  226. tween(tabbutton,TweenInfo.new(0.4,Enum.EasingStyle.Linear),{BackgroundColor3 = Color3.fromRGB(103, 103, 158)})
  227. end)
  228. tabbutton.MouseLeave:Connect(function()
  229. tween(tabbutton,TweenInfo.new(0.4,Enum.EasingStyle.Linear),{BackgroundColor3 = Color3.fromRGB(69, 69, 107)})
  230. end)
  231.  
  232. local UICorner = Instance.new("UICorner")
  233. UICorner.CornerRadius = UDim.new(0, 5)
  234. UICorner.Parent = tabbutton
  235.  
  236. tabbutton.MouseButton1Click:Connect(function()
  237. for _,v in pairs(Main:GetChildren()) do
  238. if v:IsA('Frame') and v.Name ~= 'tab buttons' then
  239. v.Visible = false
  240. end
  241. end
  242. tabselected:Play()
  243. Tab.Visible = true
  244. end)
  245.  
  246. local ScrollingFrame = Instance.new("ScrollingFrame")
  247. ScrollingFrame.Parent = Tab
  248. ScrollingFrame.Active = true
  249. ScrollingFrame.Size = UDim2.new(0, 420, 0, 261)
  250. ScrollingFrame.ScrollBarImageColor3 = Color3.fromRGB(69, 69, 107)
  251. ScrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  252. ScrollingFrame.BackgroundTransparency = 1.000
  253. ScrollingFrame.BorderColor3 = Color3.fromRGB(27, 42, 53)
  254. ScrollingFrame.BorderSizePixel = 0
  255. ScrollingFrame.Position = UDim2.new(0, 0, 0.082, 0)
  256. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 15, 0)
  257. ScrollingFrame.Size = UDim2.new(0, 420, 0, 294)
  258. Tab.ChildAdded:Connect(function(child)
  259. if child.Name == 'SearchBar' then
  260. ScrollingFrame.Size = UDim2.new(0, 420, 0, 261)
  261. ScrollingFrame.Position = UDim2.new(0, 0, 0.183206141, 0)
  262. end
  263. end)
  264. Tab.ChildRemoved:Connect(function(child)
  265. if child.Name == 'SearchBar' then
  266. ScrollingFrame.Size = UDim2.new(0, 420, 0, 294)
  267. ScrollingFrame.Position = UDim2.new(0, 0, 0.082, 0)
  268. end
  269. end)
  270.  
  271. local UIListLayout = Instance.new("UIListLayout")
  272. UIListLayout.Parent = ScrollingFrame
  273. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  274. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  275. UIListLayout.Padding = UDim.new(0, 7)
  276.  
  277. local tabspacing = Instance.new("TextButton")
  278. tabspacing.Name = "tabspacing"
  279. tabspacing.Parent = ScrollingFrame
  280. tabspacing.Active = false
  281. tabspacing.BackgroundColor3 = Color3.fromRGB(66, 66, 66)
  282. tabspacing.BackgroundTransparency = 1.000
  283. tabspacing.Position = UDim2.new(0.0449172594, 0, -3.76760227e-07, 0)
  284. tabspacing.Selectable = false
  285. tabspacing.Size = UDim2.new(0, 385, 0, 1)
  286. tabspacing.Font = Enum.Font.Roboto
  287. tabspacing.Text = " "
  288. tabspacing.TextColor3 = Color3.fromRGB(255, 255, 255)
  289. tabspacing.TextSize = 22.000
  290.  
  291. function tab:NewLabel(text)
  292. local label = Instance.new("TextLabel")
  293. local UICorner_3 = Instance.new("UICorner")
  294. label.Name = name
  295. label.Parent = ScrollingFrame
  296. label.BackgroundColor3 = Color3.fromRGB(70, 70, 224)
  297. label.Position = UDim2.new(0.150118202, 0, 0.000254076178, 0)
  298. label.Size = UDim2.new(0, 385, 0, 39)
  299. label.Font = Enum.Font.Roboto
  300. label.Text = text
  301. label.TextColor3 = Color3.fromRGB(255,255,255)
  302. label.TextSize = 14.000
  303. UICorner_3.CornerRadius = UDim.new(0, 5)
  304. UICorner_3.Parent = label
  305. ScrollingFrame.CanvasSize = UDim2.fromOffset(ScrollingFrame.CanvasSize.X.Offset,ScrollingFrame.CanvasSize.Y.Offset+50)
  306. local t = setmetatable({}, {__index = function(t,k)if k == 'Text' then return text end end, __newindex = function(t,k,v)if k == 'Text' then label.Text = v; text = v end end})
  307. return t
  308. end
  309.  
  310. function tab:NewSearchBar()
  311. if Tab:FindFirstChild('SearchBar') then return end
  312. local SearchBar = Instance.new("TextBox")
  313. local UICorner_3 = Instance.new("UICorner")
  314.  
  315. SearchBar.Name = "SearchBar"
  316. SearchBar.Parent = Tab
  317. SearchBar.BackgroundColor3 = Color3.fromRGB(69, 69, 107)
  318. SearchBar.Position = UDim2.new(0,12,0,21) --UDim2.new(0.0309039894, 0, 0.0229007639, 0)
  319. SearchBar.BackgroundTransparency = 0.5
  320. SearchBar.Size = UDim2.new(0, 396, 0, 34)
  321. SearchBar.Font = Enum.Font.SourceSans
  322. SearchBar.PlaceholderText = "search bar"
  323. SearchBar.Text = ""
  324. SearchBar.TextColor3 = Color3.fromRGB(255, 255, 255)
  325. SearchBar.TextSize = 20.000
  326.  
  327. local searchicon = Instance.new("ImageLabel")
  328.  
  329. searchicon.Name = "searchicon"
  330. searchicon.Parent = SearchBar
  331. searchicon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  332. searchicon.BackgroundTransparency = 1.000
  333. searchicon.Position = UDim2.new(0.0379999988, 0, 0.230000004, 0)
  334. searchicon.Size = UDim2.new(0, 20, 0, 20)
  335. searchicon.Image = "rbxassetid://2804603863"
  336.  
  337. UICorner_3.CornerRadius = UDim.new(0, 5)
  338. UICorner_3.Parent = SearchBar
  339.  
  340. SearchBar.Changed:Connect(function()
  341. for _,v in pairs(ScrollingFrame:GetChildren()) do
  342. if v:IsA("GuiObject") then
  343. local Text = v.Name:lower()
  344. if Text:match(SearchBar.Text:lower()) or SearchBar.Text == "" or Text == 'decoylmao' then -- or v == SearchBar then
  345. v.Visible = true
  346. else
  347. v.Visible = false
  348. end
  349. end
  350. end
  351. end)
  352. end
  353.  
  354. function tab:NewButton(name, desc, callback)
  355. local button = Instance.new("TextButton")
  356. local butcorner = Instance.new("UICorner")
  357.  
  358. button.Name = name
  359. button.Parent = ScrollingFrame
  360. button.BackgroundColor3 = Color3.fromRGB(139, 0, 0) -- Dark Red
  361.  
  362. button.Position = UDim2.new(0.150118202, 0, 0.000254076178, 0)
  363. button.Size = UDim2.new(0, 385, 0, 39)
  364. button.Font = Enum.Font.Roboto
  365. button.Text = name
  366. button.TextColor3 = Color3.fromRGB(255,255,255)
  367. button.TextSize = 17.000
  368. button.AutoButtonColor = false
  369. button.ZIndex = 0
  370.  
  371. butcorner.CornerRadius = UDim.new(0, 5)
  372. butcorner.Name = "butcorner"
  373. butcorner.Parent = button
  374.  
  375. local infobutton = Instance.new("ImageButton")
  376.  
  377. infobutton.Name = "infobutton"
  378. infobutton.Parent = button
  379. infobutton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  380. infobutton.BackgroundTransparency = 1.000
  381. infobutton.Position = UDim2.new(0.0285714287, 0, 0.230769247, 0)
  382. infobutton.Size = UDim2.new(0, 20, 0, 21)
  383. infobutton.Image = "http://www.roblox.com/asset/?id=6294110112"
  384.  
  385. ScrollingFrame.CanvasSize = UDim2.fromOffset(ScrollingFrame.CanvasSize.X.Offset,ScrollingFrame.CanvasSize.Y.Offset+50)
  386.  
  387. local clicked = false
  388. local holding = false
  389. button.MouseButton1Down:Connect(function()
  390. if clicked then return end
  391. if holding == false then holding = true end
  392. tween(button,TweenInfo.new(0.2,Enum.EasingStyle.Linear), {BackgroundColor3 = Color3.fromRGB(100, 100, 156)})
  393. end)
  394. button.MouseButton1Up:Connect(function()
  395. if clicked then return end
  396. if holding == true then holding = false end
  397. tween(button,TweenInfo.new(0.2,Enum.EasingStyle.Linear), {BackgroundColor3 = Color3.fromRGB(69, 69, 107)})
  398. end)
  399.  
  400. button.MouseLeave:Connect(function()
  401. if holding and not clicked then tween(button,TweenInfo.new(0.2,Enum.EasingStyle.Linear), {BackgroundColor3 = Color3.fromRGB(69, 69, 107)}) end
  402. end)
  403.  
  404. button.MouseButton1Click:Connect(function() selected:Play() callback() end)
  405.  
  406. infobutton.MouseButton1Click:Connect(function()
  407. clicked = not clicked
  408. if clicked then
  409. button.Text = desc
  410. button.TextSize = 13.000
  411. tween(button,TweenInfo.new(0.2,Enum.EasingStyle.Linear), {BackgroundColor3 = Color3.fromRGB(53, 53, 82)})
  412. else
  413. button.Text = name
  414. button.TextSize = 17.000
  415. tween(button,TweenInfo.new(0.2,Enum.EasingStyle.Linear), {BackgroundColor3 = Color3.fromRGB(69, 69, 107)})
  416.  
  417. end
  418. end)
  419. end
  420. function tab:NewBoolButton(name, desc, callback, toggled)
  421. local button = Instance.new("TextButton")
  422. local butcorner = Instance.new("UICorner")
  423.  
  424. button.Name = name
  425. button.Parent = ScrollingFrame
  426. button.BackgroundColor3 = Color3.fromRGB(69, 69, 107)
  427.  
  428. button.Position = UDim2.new(0.150118202, 0, 0.000254076178, 0)
  429. button.Size = UDim2.new(0, 385, 0, 39)
  430. button.Font = Enum.Font.Roboto
  431. button.Text = name
  432. button.TextColor3 = Color3.fromRGB(255,255,255)
  433. button.TextSize = 17.000
  434. button.AutoButtonColor = false
  435.  
  436. butcorner.CornerRadius = UDim.new(0, 5)
  437. butcorner.Name = "butcorner"
  438. butcorner.Parent = button
  439.  
  440. local infobutton = Instance.new("ImageButton")
  441.  
  442. infobutton.Name = "infobutton"
  443. infobutton.Parent = button
  444. infobutton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  445. infobutton.BackgroundTransparency = 1.000
  446. infobutton.Position = UDim2.new(0.0285714287, 0, 0.230769247, 0)
  447. infobutton.Size = UDim2.new(0, 20, 0, 21)
  448. infobutton.Image = "http://www.roblox.com/asset/?id=6294110112"
  449.  
  450. ScrollingFrame.CanvasSize = UDim2.fromOffset(ScrollingFrame.CanvasSize.X.Offset,ScrollingFrame.CanvasSize.Y.Offset+50)
  451.  
  452. local clicked = false
  453.  
  454. infobutton.MouseButton1Click:Connect(function()
  455. clicked = not clicked
  456. tabselected:Play()
  457. if clicked then
  458. button.Text = desc
  459. button.TextSize = 13.000
  460. tween(button,TweenInfo.new(0.2,Enum.EasingStyle.Linear), {BackgroundColor3 = Color3.fromRGB(53, 53, 82)})
  461. else
  462. button.Text = name
  463. button.TextSize = 17.000
  464. tween(button,TweenInfo.new(0.2,Enum.EasingStyle.Linear), {BackgroundColor3 = Color3.fromRGB(69, 69, 107)})
  465. end
  466. end)
  467.  
  468. local slider = Instance.new('Frame',button)
  469. slider.Name = "slider"
  470. slider.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
  471. slider.Size = UDim2.new(0, 25, 0, 10)
  472. slider.Position = UDim2.new(0,button.Size.X.Offset - 40,0,15)
  473. slider.BorderSizePixel = 0
  474. local slidercorners = Instance.new("UICorner",slider)
  475. slidercorners.CornerRadius = UDim.new(0,5)
  476. local sliderthing = Instance.new('Frame',slider)
  477. sliderthing.Size = UDim2.new(0,15,0,15)
  478. sliderthing.Position = UDim2.new(0,-5,0,-3)
  479. local sliderthingc = Instance.new("UICorner",sliderthing)
  480. sliderthingc.CornerRadius = UDim.new(0,20)
  481.  
  482. local pressed = toggled or false
  483.  
  484. if not pressed then
  485. sliderthing.Position = UDim2.new(0,-5,0,-3)
  486. slider.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
  487. else
  488. sliderthing.Position = UDim2.new(0,15,0,-3)
  489. slider.BackgroundColor3 = Color3.fromRGB(0, 240, 0)
  490. --callback(pressed)
  491. end
  492.  
  493. pressed = not pressed
  494. if not pressed then
  495. tween(sliderthing,TweenInfo.new(0.2,Enum.EasingStyle.Linear), {Position = UDim2.new(0,-5,0,-3)})
  496. tween(slider,TweenInfo.new(0.2,Enum.EasingStyle.Linear), {BackgroundColor3 = Color3.fromRGB(200, 0, 0)})
  497. callback(pressed)
  498. else
  499. tween(sliderthing,TweenInfo.new(0.2,Enum.EasingStyle.Linear), {Position = UDim2.new(0,15,0,-3)})
  500. tween(slider,TweenInfo.new(0.2,Enum.EasingStyle.Linear), {BackgroundColor3 = Color3.fromRGB(0, 240, 0)})
  501. callback(pressed)
  502. end
  503. end)
  504. end
  505.  
  506. function tab:NewTextBar(name, desc, defval)
  507. local button = Instance.new("Frame")
  508. local butcorner = Instance.new("UICorner")
  509.  
  510. button.Name = name
  511. button.Parent = ScrollingFrame
  512. button.BackgroundColor3 = Color3.fromRGB(69, 69, 107)
  513.  
  514. button.Position = UDim2.new(0.150118202, 0, 0.000254076178, 0)
  515. button.Size = UDim2.new(0, 385, 0, 39)
  516.  
  517. butcorner.CornerRadius = UDim.new(0, 5)
  518. butcorner.Name = "butcorner"
  519. butcorner.Parent = button
  520.  
  521. local infobutton = Instance.new("ImageButton")
  522.  
  523. infobutton.Name = "infobutton"
  524. infobutton.Parent = button
  525. infobutton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  526. infobutton.BackgroundTransparency = 1.000
  527. infobutton.Position = UDim2.new(0.0285714287, 0, 0.230769247, 0)
  528. infobutton.Size = UDim2.new(0, 20, 0, 21)
  529. infobutton.Image = "http://www.roblox.com/asset/?id=6294110112"
  530.  
  531. ScrollingFrame.CanvasSize = UDim2.fromOffset(ScrollingFrame.CanvasSize.X.Offset,ScrollingFrame.CanvasSize.Y.Offset+50)
  532.  
  533. local clicked = false
  534. local box = Instance.new('TextBox',button)
  535.  
  536. box.Name = "box"
  537. box.BackgroundColor3 = Color3.fromRGB(26,32,58)
  538. box.Size = UDim2.new(0, button.Size.X.Offset - 45, 0, 33)
  539. box.Position = UDim2.new(0, 40, 0, 3.5)
  540. box.Font = Enum.Font.Roboto
  541. box.PlaceholderText = name
  542. box.PlaceholderColor3 = Color3.fromRGB(145, 145, 145)
  543. box.Text = defval and defval or ''
  544. box.TextXAlignment = Enum.TextXAlignment.Left
  545. box.TextSize = 17.000
  546. box.TextColor3 = Color3.fromRGB(255,255,255)
  547. box.TextTruncate = Enum.TextTruncate.AtEnd
  548.  
  549. infobutton.MouseButton1Click:Connect(function()
  550. clicked = not clicked
  551. if clicked then
  552. box.PlaceholderText = desc
  553. else
  554. box.PlaceholderText = name
  555. end
  556. end)
  557.  
  558. local boxcorner = Instance.new("UICorner",box)
  559. boxcorner.CornerRadius = UDim.new(0,5)
  560. local boxpad = Instance.new("UIPadding",box)
  561. boxpad.PaddingLeft = UDim.new(0,10)
  562.  
  563. local tab = {}
  564. function tab:GetText()
  565. return box.Text
  566. end
  567. setmetatable(tab, {__index=function(t,k)if k == 'Text' then return box.Text end end, __newindex=function(t,k,v)if k == 'Text' then box.Text = v end end})
  568. return tab
  569. end
  570. tab.Tab = Tab
  571. return tab
  572. end
  573.  
  574. function window:Hide()
  575. Main.Visible = false
  576. end
  577. function window:Show()
  578. Main.Visible = true
  579. end
  580. function window:SetFooter(text)
  581. footer.Text = text
  582. end
  583. function window:NewCommandBar(label)
  584. local cmd = {}
  585. local folder = Instance.new("Folder",ScreenGui)
  586. local bar = Instance.new("Frame", folder)
  587. local screensize = ScreenGui.AbsoluteSize
  588. bar.Size = UDim2.new(0, screensize.X - (screensize.X/2), 0, 50)
  589. bar.Position = UDim2.new(0, screensize.X/2, 0, screensize.Y - 50)
  590. ScreenGui:GetPropertyChangedSignal('AbsoluteSize'):Connect(function()
  591. screensize = ScreenGui.AbsoluteSize
  592. bar.Size = UDim2.new(0, screensize.X - (screensize.X/2), 0, 50)
  593. bar.Position = UDim2.new(0, screensize.X/2, 0, screensize.Y - 50)
  594. end)
  595. bar.BackgroundColor3 = Color3.fromRGB(38, 45, 71)
  596. bar.BackgroundTransparency = 0.4
  597. bar.AnchorPoint = Vector2.new(0.5, 0)
  598. bar.Transparency = 1
  599. local crn = Instance.new("UICorner", bar)
  600. crn.CornerRadius = UDim.new(0, 10)
  601. local command = Instance.new("TextBox", bar)
  602. command.Size = UDim2.new(0, bar.Size.X.Offset-15, 0, 40)
  603. command.Position = UDim2.new(0, 6, 0, 6)
  604. command.PlaceholderText = label;
  605. command.Font = Enum.Font.Ubuntu
  606. command.TextSize = 30
  607. command.TextXAlignment = Enum.TextXAlignment.Left
  608. command.BackgroundTransparency = 1
  609. command.Text = ''
  610. command.TextColor3 = Color3.fromRGB(255,255,255)
  611. command.PlaceholderColor3 = Color3.fromRGB(156, 156, 156)
  612. command.Transparency = 1
  613.  
  614. local cmds = Instance.new('ScrollingFrame', folder)
  615. cmds.Size = UDim2.new(0, bar.Size.X.Offset, 0, 300)
  616. cmds.Position = UDim2.new(0, screensize.X/4, 0, bar.Position.Y.Offset-300, 0)
  617. cmds.Visible = true
  618. cmds.BackgroundTransparency = 1
  619. cmds.ScrollBarImageTransparency = 1
  620. cmds.CanvasSize = UDim2.new(0,0,0,100)
  621.  
  622. local cmdlist = Instance.new('UIListLayout', cmds)
  623. cmdlist.FillDirection = Enum.FillDirection.Vertical
  624. cmdlist.HorizontalAlignment = Enum.HorizontalAlignment.Left
  625. cmdlist.VerticalAlignment = Enum.VerticalAlignment.Bottom
  626. cmdlist.Padding = UDim.new(0,15)
  627.  
  628. local hfix = Instance.new('UIAspectRatioConstraint', cmdlist)
  629. hfix.AspectType = Enum.AspectType.ScaleWithParentSize
  630. hfix.DominantAxis = Enum.DominantAxis.Height
  631.  
  632. game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(key)
  633. if key == ';' then
  634. coroutine.wrap(function()
  635. tween(bar, TweenInfo.new(0.1, Enum.EasingStyle.Linear), {BackgroundTransparency = 0.4})
  636. tween(command, TweenInfo.new(0.1, Enum.EasingStyle.Linear), {TextTransparency = 0})
  637. end)()
  638. task.wait() --because without this its gonna add a ; on the textbox
  639. command:CaptureFocus()
  640. end
  641. end)
  642.  
  643. end
  644. return window
  645. end
  646. return module
  647.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement