Advertisement
JasonJJK

sowdui swt42g2

Nov 23rd, 2020
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.50 KB | None | 0 0
  1. local SowdUI = {}
  2.  
  3. -- // services
  4. local Players = game:GetService("Players")
  5. local TweenService = game:GetService("TweenService")
  6. local uis = game:GetService("UserInputService")
  7.  
  8. -- // variables
  9. local Player = Players.LocalPlayer
  10. local Mouse,ms = Player:GetMouse(), Player:GetMouse()
  11.  
  12. -- // constructor
  13. function SowdUI.new(WIndowName)
  14. local SowdUITable = {}
  15.  
  16. -- // table values
  17. SowdUITable.IntroScenes = {}
  18.  
  19. -- // local values
  20. local IntroLoaded
  21. local CategoryLoaded
  22. local ObjectTable = {}
  23.  
  24. -- // gui creation
  25. do
  26. local UI = Instance.new("ScreenGui")
  27. local Main = Instance.new("ImageLabel")
  28. local Border = Instance.new("ImageLabel")
  29. local Content = Instance.new("Frame")
  30. local Topbar = Instance.new("ImageLabel")
  31. local UIListLayout = Instance.new("UIListLayout")
  32. local RightSection = Instance.new("ImageLabel")
  33. local Border_2 = Instance.new("ImageLabel")
  34. local Title = Instance.new("TextLabel")
  35. local Cheats = Instance.new("ScrollingFrame")
  36. local UIListLayout_2 = Instance.new("UIListLayout")
  37. local LeftSection = Instance.new("ImageLabel")
  38. local Border_3 = Instance.new("ImageLabel")
  39. local Title_2 = Instance.new("TextLabel")
  40. local Cheats_2 = Instance.new("ScrollingFrame")
  41. local UIListLayout_3 = Instance.new("UIListLayout")
  42. local Dragger = Instance.new("ImageButton")
  43.  
  44. UI.Name = "SowdHub™"
  45. UI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  46. UI.Enabled = false
  47. UI.ZIndexBehavior = Enum.ZIndexBehavior.Global
  48.  
  49. Main.Name = "Main"
  50. Main.Parent = UI
  51. Main.AnchorPoint = Vector2.new(0, 0)
  52. Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  53. Main.BackgroundTransparency = 1.000
  54. Main.BorderSizePixel = 0
  55. Main.Position = UDim2.new(0.5, -200, 0.5, -150)
  56. Main.Size = UDim2.new(0, 400, 0, 300)
  57. Main.ZIndex = 3
  58. Main.Image = "rbxassetid://3570695787"
  59. Main.ImageColor3 = Color3.fromRGB(32, 32, 32)
  60. Main.ScaleType = Enum.ScaleType.Slice
  61. Main.SliceCenter = Rect.new(100, 100, 100, 100)
  62. Main.SliceScale = 0.120
  63.  
  64. Border.Name = "Border"
  65. Border.Parent = Main
  66. Border.AnchorPoint = Vector2.new(0.5, 0.5)
  67. Border.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  68. Border.BackgroundTransparency = 1.000
  69. Border.BorderSizePixel = 0
  70. Border.Position = UDim2.new(0.5, 0, 0.5, 0)
  71. Border.Size = UDim2.new(1, 2, 1, 2)
  72. Border.ZIndex = 2
  73. Border.Image = "rbxassetid://3570695787"
  74. Border.ImageColor3 = Color3.fromRGB(235, 28, 58)
  75. Border.ScaleType = Enum.ScaleType.Slice
  76. Border.SliceCenter = Rect.new(100, 100, 100, 100)
  77. Border.SliceScale = 0.120
  78.  
  79. Content.Name = "Content"
  80. Content.Parent = Main
  81. Content.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  82. Content.BackgroundTransparency = 1.000
  83. Content.Size = UDim2.new(1, 0, 1, 0)
  84. Content.ZIndex = 3
  85.  
  86. Topbar.Name = "Topbar"
  87. Topbar.Parent = Content
  88. Topbar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  89. Topbar.BackgroundTransparency = 1.000
  90. Topbar.Position = UDim2.new(0, 15, 0, 15)
  91. Topbar.Size = UDim2.new(1, -30, 0, 35)
  92. Topbar.ZIndex = 3
  93. Topbar.Image = "rbxassetid://3570695787"
  94. Topbar.ImageColor3 = Color3.fromRGB(235, 28, 58)
  95. Topbar.ScaleType = Enum.ScaleType.Slice
  96. Topbar.SliceCenter = Rect.new(100, 100, 100, 100)
  97. Topbar.SliceScale = 0.060
  98.  
  99. UIListLayout.Parent = Topbar
  100. UIListLayout.FillDirection = Enum.FillDirection.Horizontal
  101. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  102. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  103. UIListLayout.Padding = UDim.new(0, 5)
  104.  
  105. RightSection.Name = "RightSection"
  106. RightSection.Parent = Content
  107. RightSection.AnchorPoint = Vector2.new(1, 1)
  108. RightSection.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  109. RightSection.BackgroundTransparency = 1.000
  110. RightSection.BorderSizePixel = 0
  111. RightSection.Position = UDim2.new(1, -15, 1, -15)
  112. RightSection.Size = UDim2.new(0.5, -20, 1, -80)
  113. RightSection.ZIndex = 4
  114. RightSection.Image = "rbxassetid://3570695787"
  115. RightSection.ImageColor3 = Color3.fromRGB(32, 32, 32)
  116. RightSection.ScaleType = Enum.ScaleType.Slice
  117. RightSection.SliceCenter = Rect.new(100, 100, 100, 100)
  118. RightSection.SliceScale = 0.120
  119.  
  120. Border_2.Name = "Border"
  121. Border_2.Parent = RightSection
  122. Border_2.AnchorPoint = Vector2.new(0.5, 0.5)
  123. Border_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  124. Border_2.BackgroundTransparency = 1.000
  125. Border_2.BorderSizePixel = 0
  126. Border_2.Position = UDim2.new(0.5, 0, 0.5, 0)
  127. Border_2.Size = UDim2.new(1, 2, 1, 2)
  128. Border_2.ZIndex = 3
  129. Border_2.Image = "rbxassetid://3570695787"
  130. Border_2.ImageColor3 = Color3.fromRGB(235, 28, 58)
  131. Border_2.ScaleType = Enum.ScaleType.Slice
  132. Border_2.SliceCenter = Rect.new(100, 100, 100, 100)
  133. Border_2.SliceScale = 0.120
  134.  
  135. Title.Name = "Title"
  136. Title.Parent = RightSection
  137. Title.AnchorPoint = Vector2.new(0.5, 0.5)
  138. Title.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  139. Title.BorderSizePixel = 0
  140. Title.Position = UDim2.new(0.5, 0, 0, -2)
  141. Title.Size = UDim2.new(0, 28, 0, 20)
  142. Title.ZIndex = 4
  143. Title.Font = Enum.Font.SourceSans
  144. Title.Text = "xd?"
  145. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  146. Title.TextSize = 16.000
  147.  
  148. Cheats.Name = "Cheats"
  149. Cheats.Parent = RightSection
  150. Cheats.Active = true
  151. Cheats.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  152. Cheats.BackgroundTransparency = 1.000
  153. Cheats.BorderSizePixel = 0
  154. Cheats.Position = UDim2.new(0, 5, 0, 5)
  155. Cheats.Size = UDim2.new(1, -10, 1, -10)
  156. Cheats.ZIndex = 4
  157. Cheats.CanvasSize = UDim2.new(0, 0, 0, 400)
  158. Cheats.ScrollBarThickness = 6
  159. Cheats.ScrollBarImageColor3 = Color3.fromRGB(235, 28, 58)
  160. Cheats.VerticalScrollBarInset = Enum.ScrollBarInset.ScrollBar
  161.  
  162. UIListLayout_2.Parent = Cheats
  163. UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  164. UIListLayout_2.Padding = UDim.new(0, 5)
  165.  
  166. LeftSection.Name = "LeftSection"
  167. LeftSection.Parent = Content
  168. LeftSection.AnchorPoint = Vector2.new(0, 1)
  169. LeftSection.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  170. LeftSection.BackgroundTransparency = 1.000
  171. LeftSection.BorderSizePixel = 0
  172. LeftSection.Position = UDim2.new(0, 15, 1, -15)
  173. LeftSection.Size = UDim2.new(0.5, -20, 1, -80)
  174. LeftSection.ZIndex = 4
  175. LeftSection.Image = "rbxassetid://3570695787"
  176. LeftSection.ImageColor3 = Color3.fromRGB(32, 32, 32)
  177. LeftSection.ScaleType = Enum.ScaleType.Slice
  178. LeftSection.SliceCenter = Rect.new(100, 100, 100, 100)
  179. LeftSection.SliceScale = 0.120
  180.  
  181. Border_3.Name = "Border"
  182. Border_3.Parent = LeftSection
  183. Border_3.AnchorPoint = Vector2.new(0.5, 0.5)
  184. Border_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  185. Border_3.BackgroundTransparency = 1.000
  186. Border_3.BorderSizePixel = 0
  187. Border_3.Position = UDim2.new(0.5, 0, 0.5, 0)
  188. Border_3.Size = UDim2.new(1, 2, 1, 2)
  189. Border_3.ZIndex = 3
  190. Border_3.Image = "rbxassetid://3570695787"
  191. Border_3.ImageColor3 = Color3.fromRGB(235, 28, 58)
  192. Border_3.ScaleType = Enum.ScaleType.Slice
  193. Border_3.SliceCenter = Rect.new(100, 100, 100, 100)
  194. Border_3.SliceScale = 0.120
  195.  
  196. Title_2.Name = "Title"
  197. Title_2.Parent = LeftSection
  198. Title_2.AnchorPoint = Vector2.new(0.5, 0.5)
  199. Title_2.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  200. Title_2.BorderSizePixel = 0
  201. Title_2.Position = UDim2.new(0.5, 0, 0, -2)
  202. Title_2.Size = UDim2.new(0, 68, 0, 20)
  203. Title_2.ZIndex = 4
  204. Title_2.Font = Enum.Font.SourceSans
  205. Title_2.Text = "Name LOL"
  206. Title_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  207. Title_2.TextSize = 16.000
  208.  
  209. Cheats_2.Name = "Cheats"
  210. Cheats_2.Parent = LeftSection
  211. Cheats_2.Active = true
  212. Cheats_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  213. Cheats_2.BackgroundTransparency = 1.000
  214. Cheats_2.BorderSizePixel = 0
  215. Cheats_2.Position = UDim2.new(0, 5, 0, 5)
  216. Cheats_2.Size = UDim2.new(1, -10, 1, -10)
  217. Cheats_2.ZIndex = 4
  218. Cheats_2.CanvasSize = UDim2.new(0, 0, 0, 400)
  219. Cheats_2.ScrollBarThickness = 6
  220. Cheats_2.ScrollBarImageColor3 = Color3.fromRGB(235, 28, 58)
  221. Cheats_2.VerticalScrollBarInset = Enum.ScrollBarInset.ScrollBar
  222.  
  223. UIListLayout_3.Parent = Cheats_2
  224. UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
  225. UIListLayout_3.Padding = UDim.new(0, 5)
  226.  
  227. Dragger.Name = "Dragger"
  228. Dragger.Parent = Main
  229. Dragger.AnchorPoint = Vector2.new(1, 1)
  230. Dragger.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  231. Dragger.BackgroundTransparency = 1.000
  232. Dragger.Position = UDim2.new(1, 0, 1, 0)
  233. Dragger.Rotation = -45.000
  234. Dragger.Size = UDim2.new(0, 24, 0, 24)
  235. Dragger.ZIndex = 3
  236. Dragger.Image = "rbxassetid://5764449147"
  237. Dragger.ImageColor3 = Color3.fromRGB(235, 28, 58)
  238.  
  239. local uiScale = Instance.new("UIScale",UI) -- The UIscale
  240.  
  241. local uidragging,dragposX,dragposY=nil,0,0
  242. Main.InputBegan:Connect(function(key)if key.UserInputType == Enum.UserInputType.MouseButton1 then uidragging = true;dragposX,dragposY = ms.X-Main.AbsolutePosition.X,ms.Y-Main.AbsolutePosition.Y end end)
  243. Main.InputEnded:Connect(function(key)if key.UserInputType == Enum.UserInputType.MouseButton1 then uidragging = false;dragposX,dragposY = 0,0 end end)
  244.  
  245. uis.InputChanged:Connect(function()
  246. if uidragging then
  247. Main.Position = UDim2.new(0,(ms.X/uiScale.Scale)-(dragposX/uiScale.Scale),0,(ms.Y/uiScale.Scale)-(dragposY/uiScale.Scale))
  248. end
  249. end)
  250.  
  251. local function Resize(UIListLayout)
  252. UIListLayout.Parent.CanvasSize = UDim2.new(0, 0, 0, UIListLayout.AbsoluteContentSize.Y + 5)
  253. end
  254.  
  255. UIListLayout_3:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
  256. Resize(UIListLayout_3)
  257. end)
  258.  
  259. UIListLayout_2:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
  260. Resize(UIListLayout_2)
  261. end)
  262.  
  263. SowdUITable.UserInterface = UI
  264. end
  265.  
  266. local function LoadIntroContent()
  267. SowdUITable.UserInterface.Main.Size = UDim2.new(0, 250, 0, 100)
  268. SowdUITable.UserInterface.Main.Position = UDim2.new(0.5, -125, 0.5, -50)
  269.  
  270. local Title = Instance.new("ImageLabel")
  271. local Content = Instance.new("Frame")
  272. local Author = Instance.new("TextLabel")
  273. local Title_2 = Instance.new("TextLabel")
  274.  
  275. Title.Name = "Title"
  276. Title.Parent = SowdUITable.UserInterface.Main
  277. Title.AnchorPoint = Vector2.new(0.5, 0.5)
  278. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  279. Title.BackgroundTransparency = 1.000
  280. Title.BorderSizePixel = 0
  281. Title.Position = UDim2.new(0.5, 0, 0.5, 0)
  282. Title.Size = UDim2.new(1, 0, 1, 0)
  283. Title.ZIndex = 100
  284. Title.Image = "rbxassetid://3570695787"
  285. Title.ImageColor3 = Color3.fromRGB(32, 32, 32)
  286. Title.ScaleType = Enum.ScaleType.Slice
  287. Title.SliceCenter = Rect.new(100, 100, 100, 100)
  288. Title.SliceScale = 0.120
  289.  
  290. Content.Name = "Content"
  291. Content.Parent = Title
  292. Content.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  293. Content.BackgroundTransparency = 1.000
  294. Content.Size = UDim2.new(1, 0, 1, 0)
  295. Content.ZIndex = 100
  296.  
  297. Author.Name = "Author"
  298. Author.Parent = Content
  299. Author.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  300. Author.BackgroundTransparency = 1.000
  301. Author.Position = UDim2.new(0, 0, 0, 15)
  302. Author.Size = UDim2.new(1, 0, 1, -15)
  303. Author.ZIndex = 100
  304. Author.Font = Enum.Font.SourceSans
  305. Author.TextTransparency = 0
  306. Author.Text = ""
  307. Author.TextColor3 = Color3.fromRGB(255, 255, 255)
  308. Author.TextSize = 14.000
  309.  
  310. Title_2.Name = "Title"
  311. Title_2.Parent = Content
  312. Title_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  313. Title_2.BackgroundTransparency = 1.000
  314. Title_2.Size = UDim2.new(1, 0, 1, -15)
  315. Title_2.ZIndex = 100
  316. Title_2.Font = Enum.Font.SourceSans
  317. Title_2.TextTransparency = 0
  318. Title_2.Text = WIndowName
  319. Title_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  320. Title_2.TextSize = 20.000
  321.  
  322. SowdUITable.IntroContentFrame = Content
  323. end
  324.  
  325. --// table functions
  326. function SowdUITable:AddLoadingScene(Text, Length)
  327. if not IntroLoaded then
  328. IntroLoaded = true
  329. LoadIntroContent()
  330. end
  331.  
  332. table.insert(SowdUITable.IntroScenes, {Text = Text or "bruh u forgot add text", Length = Length or 1})
  333. end
  334.  
  335. function SowdUITable:Load()
  336. if IntroLoaded then
  337. SowdUITable.UserInterface.Main.Position = UDim2.new(0.5, -125, 1.5, -50)
  338. SowdUITable.UserInterface.Enabled = true
  339. SowdUITable.UserInterface.Main:TweenPosition(UDim2.new(0.5, -125, 0.5, -50), "Out", "Sine", 0.5, true)
  340.  
  341. wait(0.5)
  342.  
  343. local function RemoveText()
  344. local Text = SowdUITable.IntroContentFrame.Author.Text
  345.  
  346. for Letter = #Text, 0, -1 do
  347. wait(0.5 / #Text)
  348. SowdUITable.IntroContentFrame.Author.Text = string.sub(Text, 1, Letter)
  349. end
  350. end
  351.  
  352. local function WriteText(Text)
  353. for Letter = 1, #Text do
  354. SowdUITable.IntroContentFrame.Author.Text = string.sub(Text, 1, Letter)
  355. wait(0.5 / #Text)
  356. end
  357. end
  358.  
  359. for _, Scene in next, self.IntroScenes do
  360. RemoveText()
  361. WriteText(Scene.Text)
  362. wait(Scene.Length)
  363. end
  364.  
  365. TweenService:Create(SowdUITable.IntroContentFrame.Parent, TweenInfo.new(0.5), {ImageTransparency = 1}):Play()
  366. TweenService:Create(SowdUITable.IntroContentFrame.Author, TweenInfo.new(0.5), {TextTransparency = 1}):Play()
  367. TweenService:Create(SowdUITable.IntroContentFrame.Title, TweenInfo.new(0.5), {TextTransparency = 1}):Play()
  368.  
  369. SowdUITable.UserInterface.Main:TweenSizeAndPosition(UDim2.new(0, 400, 0, 300), UDim2.new(0.5, -200, 0.5, -150), "Out", "Sine", 0.5, true)
  370. else
  371. SowdUITable.UserInterface.Enabled = true
  372. SowdUITable.UserInterface.Main.Position = UDim2.new(0.5, -200, 1.5, -150)
  373. SowdUITable.UserInterface.Main.Size = UDim2.new(0, 400, 0, 300)
  374. SowdUITable.UserInterface.Main:TweenPosition(UDim2.new(0.5, -200, 0.5, -150), "Out", "Sine", 0.5, true)
  375. end
  376. end
  377.  
  378. function SowdUITable:Category(Name, SectionLeft, SectionRight)
  379. local Category = {}
  380.  
  381. Category.Name = Name
  382.  
  383. Category.Cheats = {
  384. Left = {},
  385. Right = {},
  386. }
  387.  
  388. local LeftSection = SowdUITable.UserInterface.Main.Content.LeftSection
  389. local RightSection = SowdUITable.UserInterface.Main.Content.RightSection
  390.  
  391. function Category:Load()
  392. spawn(function()
  393. repeat wait() until #Category.Cheats.Left > 0 or #Category.Cheats.Right > 0
  394.  
  395. for _, Object in next, ObjectTable do
  396. Object:Destroy()
  397. end
  398.  
  399. LeftSection.Title.Text = SectionLeft or "Left"
  400. LeftSection.Title.Size = UDim2.new(0, LeftSection.Title.TextBounds.X + 8, 0, 20)
  401.  
  402. RightSection.Title.Text = SectionRight or "Right"
  403. RightSection.Title.Size = UDim2.new(0, RightSection.Title.TextBounds.X + 8, 0, 20)
  404.  
  405. for _, Object in next, Category.Cheats.Left do
  406. print(Object)
  407. table.insert(ObjectTable, Object:Make())
  408. end
  409.  
  410. for _, Object in next, Category.Cheats.Right do
  411. print(Object)
  412. table.insert(ObjectTable, Object:Make())
  413. end
  414. end)
  415. end
  416.  
  417. do
  418. local Section = Instance.new("TextButton")
  419.  
  420. Section.Name = "Section"
  421. Section.AnchorPoint = Vector2.new(0, 0.5)
  422. Section.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  423. Section.BackgroundTransparency = 1.000
  424. Section.Size = UDim2.new(0, 40, 1, 0)
  425. Section.ZIndex = 3
  426. Section.Font = Enum.Font.SourceSansSemibold
  427. Section.Text = Name
  428. Section.TextColor3 = Color3.fromRGB(255, 255, 255)
  429. Section.TextSize = 18.000
  430. Section.Parent = SowdUITable.UserInterface.Main.Content.Topbar
  431.  
  432. Section.MouseEnter:Connect(function()
  433. Section.Font = Enum.Font.SourceSansBold
  434. end)
  435.  
  436. Section.MouseLeave:Connect(function()
  437. Section.Font = Enum.Font.SourceSansSemibold
  438. end)
  439.  
  440. Section.MouseButton1Down:Connect(function()
  441. Section.Font = Enum.Font.SourceSans
  442. end)
  443.  
  444. Section.MouseButton1Click:Connect(function()
  445. Section.Font = Enum.Font.SourceSansSemibold
  446.  
  447. for _, Child in next, LeftSection:GetChildren() do
  448. if Child:IsA("Frame") then Child:Destroy() end
  449. end
  450.  
  451. for _, Child in next, RightSection:GetChildren() do
  452. if Child:IsA("Frame") then Child:Destroy() end
  453. end
  454.  
  455. Category:Load()
  456. end)
  457. end
  458.  
  459. --[[
  460. function Category:Cheat(Text, Section, Callback)
  461. local Cheat = {}
  462.  
  463. function Cheat:Fire(...)
  464. if Callback then
  465. local S, E = pcall(Callback, ...)
  466.  
  467. if not S then warn(string.format("[%s] %s", Text, E)) end
  468. end
  469. end
  470.  
  471. function Cheat:Make()
  472.  
  473. end
  474.  
  475. return Cheat
  476. end
  477. ]]
  478.  
  479. function Category:Label(Text, Section)
  480. local Label = {}
  481.  
  482. function Label:Make()
  483. Label.Frame = Instance.new("Frame")
  484. local Title = Instance.new("TextLabel")
  485.  
  486. Label.Frame.Name = "Label"
  487. Label.Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  488. Label.Frame.Size = UDim2.new(1, 0, 0, 30)
  489. Label.Frame.Parent = (Section == 2) and RightSection.Cheats or LeftSection.Cheats
  490.  
  491. Title.Name = "Title"
  492. Title.Parent = Label.Frame
  493. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  494. Title.BackgroundTransparency = 1.000
  495. Title.Position = UDim2.new(0, 5, 0, 0)
  496. Title.Size = UDim2.new(1, -5, 0, 30)
  497. Title.ZIndex = 5
  498. Title.Text = Text
  499. Title.Font = Enum.Font.SourceSans
  500. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  501. Title.TextSize = 16.000
  502. Title.TextXAlignment = Enum.TextXAlignment.Left
  503.  
  504. return Label.Frame
  505. end
  506.  
  507. function Label:ChangeText(NewText)
  508. Label.Frame.Title.Text = NewText
  509. end
  510.  
  511. table.insert(Category.Cheats[(Section == 2) and "Right" or "Left"], Label)
  512.  
  513. return Label
  514. end
  515.  
  516. function Category:Toggle(Text, Section, Callback)
  517. local Toggle = {}
  518.  
  519. Toggle.Enabled = false
  520.  
  521. function Toggle:Fire(...)
  522. if Callback then
  523. local S, E = pcall(Callback, ...)
  524.  
  525. if not S then warn(string.format("[%s] %s", Text, E)) end
  526. end
  527. end
  528.  
  529. function Toggle:Make()
  530. Toggle.Frame = Instance.new("Frame")
  531. local Title = Instance.new("TextLabel")
  532. local Checked = Instance.new("ImageButton")
  533. local Unchecked = Instance.new("ImageButton")
  534.  
  535. Toggle.Frame.Name = "Toggle"
  536. Toggle.Frame.Parent = (Section == 2) and RightSection.Cheats or LeftSection.Cheats
  537. Toggle.Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  538. Toggle.Frame.Size = UDim2.new(1, 0, 0, 30)
  539.  
  540. Title.Name = "Title"
  541. Title.Parent = Toggle.Frame
  542. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  543. Title.BackgroundTransparency = 1.000
  544. Title.Position = UDim2.new(0, 5, 0, 0)
  545. Title.Size = UDim2.new(1, -5, 0, 30)
  546. Title.ZIndex = 5
  547. Title.Text = Text
  548. Title.Font = Enum.Font.SourceSans
  549. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  550. Title.TextSize = 16.000
  551. Title.TextXAlignment = Enum.TextXAlignment.Left
  552.  
  553. Checked.Name = "Checked"
  554. Checked.Parent = Toggle.Frame
  555. Checked.AnchorPoint = Vector2.new(1, 0.5)
  556. Checked.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  557. Checked.BackgroundTransparency = 1.000
  558. Checked.Position = UDim2.new(0.949999988, 0, 0.5, 0)
  559. Checked.Size = UDim2.new(0, 24, 0, 24)
  560. Checked.ZIndex = 6
  561. Checked.AutoButtonColor = false
  562. Checked.Image = "rbxassetid://4942141114"
  563. Checked.ImageColor3 = Color3.fromRGB(235, 28, 58)
  564. Checked.ImageTransparency = Toggle.Enabled and 0 or 1
  565.  
  566. Unchecked.Name = "Unchecked"
  567. Unchecked.Parent = Toggle.Frame
  568. Unchecked.AnchorPoint = Vector2.new(1, 0.5)
  569. Unchecked.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  570. Unchecked.BackgroundTransparency = 1.000
  571. Unchecked.Position = UDim2.new(0.949999988, 0, 0.5, 0)
  572. Unchecked.Size = UDim2.new(0, 24, 0, 24)
  573. Unchecked.ZIndex = 5
  574. Unchecked.AutoButtonColor = false
  575. Unchecked.Image = "rbxassetid://4942141053"
  576. Unchecked.ImageColor3 = Color3.fromRGB(60, 60, 60)
  577.  
  578. Checked.MouseEnter:Connect(function()
  579. TweenService:Create(Checked, TweenInfo.new(0.2), {ImageTransparency = 0.5}):Play()
  580. end)
  581.  
  582. Checked.MouseLeave:Connect(function()
  583. TweenService:Create(Checked, TweenInfo.new(0.2), {ImageTransparency = Toggle.Enabled and 0 or 1}):Play()
  584. end)
  585.  
  586. Checked.MouseButton1Click:Connect(function()
  587. if Toggle.Enabled then
  588. Toggle:Disable()
  589. else
  590. Toggle:Enable()
  591. end
  592. end)
  593.  
  594. return Toggle.Frame
  595. end
  596.  
  597. function Toggle:Enable()
  598. self.Enabled = true
  599. self:Fire(true)
  600.  
  601. TweenService:Create(Toggle.Frame.Checked, TweenInfo.new(0.2), {ImageTransparency = Toggle.Enabled and 0 or 1}):Play()
  602. end
  603.  
  604. function Toggle:Disable()
  605. self.Enabled = false
  606. self:Fire(false)
  607.  
  608. TweenService:Create(Toggle.Frame.Checked, TweenInfo.new(0.2), {ImageTransparency = Toggle.Enabled and 0 or 1}):Play()
  609. end
  610.  
  611. table.insert(Category.Cheats[(Section == 2) and "Right" or "Left"], Toggle)
  612.  
  613. return Toggle
  614. end
  615.  
  616. function Category:Button(Text, Section, Callback)
  617. local Button = {}
  618.  
  619. function Button:Fire(...)
  620. if Callback then
  621. local S, E = pcall(Callback, ...)
  622.  
  623. if not S then warn(string.format("[%s] %s", Text, E)) end
  624. end
  625. end
  626.  
  627. function Button:Make()
  628. Button.Frame = Instance.new("Frame")
  629. local TextButton = Instance.new("TextButton")
  630. local Roundify = Instance.new("ImageLabel")
  631.  
  632. Button.Frame.Name = "Button"
  633. Button.Frame.Parent = (Section == 2) and RightSection.Cheats or LeftSection.Cheats
  634. Button.Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  635. Button.Frame.Size = UDim2.new(1, 0, 0, 25)
  636.  
  637. TextButton.Name = "Button"
  638. TextButton.Parent = Button.Frame
  639. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  640. TextButton.BackgroundTransparency = 1.000
  641. TextButton.BorderSizePixel = 0
  642. TextButton.Size = UDim2.new(1, -10, 0, 25)
  643. TextButton.ZIndex = 5
  644. TextButton.Font = Enum.Font.SourceSans
  645. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  646. TextButton.TextSize = 16.000
  647. TextButton.Text = Text or "no button text bro"
  648.  
  649. Roundify.Name = "Roundify"
  650. Roundify.Parent = TextButton
  651. Roundify.Active = true
  652. Roundify.AnchorPoint = Vector2.new(0.5, 0.5)
  653. Roundify.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  654. Roundify.BackgroundTransparency = 1.000
  655. Roundify.Position = UDim2.new(0.5, 0, 0.5, 0)
  656. Roundify.Selectable = true
  657. Roundify.Size = UDim2.new(1, 0, 1, 0)
  658. Roundify.ZIndex = 4
  659. Roundify.Image = "rbxassetid://3570695787"
  660. Roundify.ImageColor3 = Color3.fromRGB(235, 28, 58)
  661. Roundify.ScaleType = Enum.ScaleType.Slice
  662. Roundify.SliceCenter = Rect.new(100, 100, 100, 100)
  663. Roundify.SliceScale = 0.080
  664.  
  665. TextButton.MouseButton1Click:Connect(function()
  666. self:Fire()
  667. end)
  668.  
  669. return Button.Frame
  670. end
  671.  
  672. table.insert(Category.Cheats[(Section == 2) and "Right" or "Left"], Button)
  673.  
  674. return Button
  675. end
  676.  
  677. function Category:Textbox(Text, Section, Callback)
  678. local Textbox = {}
  679.  
  680. function Textbox:Fire(...)
  681. if Callback then
  682. local S, E = pcall(Callback, ...)
  683.  
  684. if not S then warn(string.format("[%s] %s", Text, E)) end
  685. end
  686. end
  687.  
  688. function Textbox:Make()
  689. Textbox.Frame = Instance.new("Frame")
  690. local Textbox_T = Instance.new("TextBox")
  691. local Roundify = Instance.new("ImageLabel")
  692.  
  693. Textbox.Frame.Name = "TextBox"
  694. Textbox.Frame.Parent = (Section == 2) and RightSection.Cheats or LeftSection.Cheats
  695. Textbox.Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  696. Textbox.Frame.Size = UDim2.new(1, 0, 0, 25)
  697.  
  698. Textbox_T.Parent = Textbox.Frame
  699. Textbox_T.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  700. Textbox_T.BackgroundTransparency = 1.000
  701. Textbox_T.BorderSizePixel = 0
  702. Textbox_T.Size = UDim2.new(1, -10, 0, 25)
  703. Textbox_T.ZIndex = 5
  704. Textbox_T.Font = Enum.Font.SourceSans
  705. Textbox_T.PlaceholderText = Text or "no placeholder text"
  706. Textbox_T.Text = ""
  707. Textbox_T.TextColor3 = Color3.fromRGB(255, 255, 255)
  708. Textbox_T.TextSize = 16.000
  709.  
  710. Roundify.Name = "Roundify"
  711. Roundify.Parent = Textbox_T
  712. Roundify.Active = true
  713. Roundify.AnchorPoint = Vector2.new(0.5, 0.5)
  714. Roundify.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  715. Roundify.BackgroundTransparency = 1.000
  716. Roundify.Position = UDim2.new(0.5, 0, 0.5, 0)
  717. Roundify.Selectable = true
  718. Roundify.Size = UDim2.new(1, 0, 1, 0)
  719. Roundify.ZIndex = 4
  720. Roundify.Image = "rbxassetid://3570695787"
  721. Roundify.ImageColor3 = Color3.fromRGB(235, 28, 58)
  722. Roundify.ScaleType = Enum.ScaleType.Slice
  723. Roundify.SliceCenter = Rect.new(100, 100, 100, 100)
  724. Roundify.SliceScale = 0.080
  725.  
  726. Textbox_T.FocusLost:Connect(function()
  727. self:Fire(Textbox_T.Text)
  728. Textbox_T.Text = ""
  729. end)
  730.  
  731. return Textbox.Frame
  732. end
  733.  
  734. table.insert(Category.Cheats[(Section == 2) and "Right" or "Left"], Textbox)
  735.  
  736. return Textbox
  737. end
  738.  
  739. if not CategoryLoaded then
  740. CategoryLoaded = true
  741. Category:Load()
  742. end
  743.  
  744. return Category
  745. end
  746.  
  747. return SowdUITable
  748. end
  749.  
  750. return SowdUI
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement