Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local SowdUI = {}
- -- // services
- local Players = game:GetService("Players")
- local TweenService = game:GetService("TweenService")
- local uis = game:GetService("UserInputService")
- -- // variables
- local Player = Players.LocalPlayer
- local Mouse,ms = Player:GetMouse(), Player:GetMouse()
- -- // constructor
- function SowdUI.new(WIndowName)
- local SowdUITable = {}
- -- // table values
- SowdUITable.IntroScenes = {}
- -- // local values
- local IntroLoaded
- local CategoryLoaded
- local ObjectTable = {}
- -- // gui creation
- do
- local UI = Instance.new("ScreenGui")
- local Main = Instance.new("ImageLabel")
- local Border = Instance.new("ImageLabel")
- local Content = Instance.new("Frame")
- local Topbar = Instance.new("ImageLabel")
- local UIListLayout = Instance.new("UIListLayout")
- local RightSection = Instance.new("ImageLabel")
- local Border_2 = Instance.new("ImageLabel")
- local Title = Instance.new("TextLabel")
- local Cheats = Instance.new("ScrollingFrame")
- local UIListLayout_2 = Instance.new("UIListLayout")
- local LeftSection = Instance.new("ImageLabel")
- local Border_3 = Instance.new("ImageLabel")
- local Title_2 = Instance.new("TextLabel")
- local Cheats_2 = Instance.new("ScrollingFrame")
- local UIListLayout_3 = Instance.new("UIListLayout")
- local Dragger = Instance.new("ImageButton")
- UI.Name = "SowdHub™"
- UI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- UI.Enabled = false
- UI.ZIndexBehavior = Enum.ZIndexBehavior.Global
- Main.Name = "Main"
- Main.Parent = UI
- Main.AnchorPoint = Vector2.new(0, 0)
- Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Main.BackgroundTransparency = 1.000
- Main.BorderSizePixel = 0
- Main.Position = UDim2.new(0.5, -200, 0.5, -150)
- Main.Size = UDim2.new(0, 400, 0, 300)
- Main.ZIndex = 3
- Main.Image = "rbxassetid://3570695787"
- Main.ImageColor3 = Color3.fromRGB(32, 32, 32)
- Main.ScaleType = Enum.ScaleType.Slice
- Main.SliceCenter = Rect.new(100, 100, 100, 100)
- Main.SliceScale = 0.120
- Border.Name = "Border"
- Border.Parent = Main
- Border.AnchorPoint = Vector2.new(0.5, 0.5)
- Border.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Border.BackgroundTransparency = 1.000
- Border.BorderSizePixel = 0
- Border.Position = UDim2.new(0.5, 0, 0.5, 0)
- Border.Size = UDim2.new(1, 2, 1, 2)
- Border.ZIndex = 2
- Border.Image = "rbxassetid://3570695787"
- Border.ImageColor3 = Color3.fromRGB(235, 28, 58)
- Border.ScaleType = Enum.ScaleType.Slice
- Border.SliceCenter = Rect.new(100, 100, 100, 100)
- Border.SliceScale = 0.120
- Content.Name = "Content"
- Content.Parent = Main
- Content.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Content.BackgroundTransparency = 1.000
- Content.Size = UDim2.new(1, 0, 1, 0)
- Content.ZIndex = 3
- Topbar.Name = "Topbar"
- Topbar.Parent = Content
- Topbar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Topbar.BackgroundTransparency = 1.000
- Topbar.Position = UDim2.new(0, 15, 0, 15)
- Topbar.Size = UDim2.new(1, -30, 0, 35)
- Topbar.ZIndex = 3
- Topbar.Image = "rbxassetid://3570695787"
- Topbar.ImageColor3 = Color3.fromRGB(235, 28, 58)
- Topbar.ScaleType = Enum.ScaleType.Slice
- Topbar.SliceCenter = Rect.new(100, 100, 100, 100)
- Topbar.SliceScale = 0.060
- UIListLayout.Parent = Topbar
- UIListLayout.FillDirection = Enum.FillDirection.Horizontal
- UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout.Padding = UDim.new(0, 5)
- RightSection.Name = "RightSection"
- RightSection.Parent = Content
- RightSection.AnchorPoint = Vector2.new(1, 1)
- RightSection.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- RightSection.BackgroundTransparency = 1.000
- RightSection.BorderSizePixel = 0
- RightSection.Position = UDim2.new(1, -15, 1, -15)
- RightSection.Size = UDim2.new(0.5, -20, 1, -80)
- RightSection.ZIndex = 4
- RightSection.Image = "rbxassetid://3570695787"
- RightSection.ImageColor3 = Color3.fromRGB(32, 32, 32)
- RightSection.ScaleType = Enum.ScaleType.Slice
- RightSection.SliceCenter = Rect.new(100, 100, 100, 100)
- RightSection.SliceScale = 0.120
- Border_2.Name = "Border"
- Border_2.Parent = RightSection
- Border_2.AnchorPoint = Vector2.new(0.5, 0.5)
- Border_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Border_2.BackgroundTransparency = 1.000
- Border_2.BorderSizePixel = 0
- Border_2.Position = UDim2.new(0.5, 0, 0.5, 0)
- Border_2.Size = UDim2.new(1, 2, 1, 2)
- Border_2.ZIndex = 3
- Border_2.Image = "rbxassetid://3570695787"
- Border_2.ImageColor3 = Color3.fromRGB(235, 28, 58)
- Border_2.ScaleType = Enum.ScaleType.Slice
- Border_2.SliceCenter = Rect.new(100, 100, 100, 100)
- Border_2.SliceScale = 0.120
- Title.Name = "Title"
- Title.Parent = RightSection
- Title.AnchorPoint = Vector2.new(0.5, 0.5)
- Title.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
- Title.BorderSizePixel = 0
- Title.Position = UDim2.new(0.5, 0, 0, -2)
- Title.Size = UDim2.new(0, 28, 0, 20)
- Title.ZIndex = 4
- Title.Font = Enum.Font.SourceSans
- Title.Text = "xd?"
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.TextSize = 16.000
- Cheats.Name = "Cheats"
- Cheats.Parent = RightSection
- Cheats.Active = true
- Cheats.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Cheats.BackgroundTransparency = 1.000
- Cheats.BorderSizePixel = 0
- Cheats.Position = UDim2.new(0, 5, 0, 5)
- Cheats.Size = UDim2.new(1, -10, 1, -10)
- Cheats.ZIndex = 4
- Cheats.CanvasSize = UDim2.new(0, 0, 0, 400)
- Cheats.ScrollBarThickness = 6
- Cheats.ScrollBarImageColor3 = Color3.fromRGB(235, 28, 58)
- Cheats.VerticalScrollBarInset = Enum.ScrollBarInset.ScrollBar
- UIListLayout_2.Parent = Cheats
- UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout_2.Padding = UDim.new(0, 5)
- LeftSection.Name = "LeftSection"
- LeftSection.Parent = Content
- LeftSection.AnchorPoint = Vector2.new(0, 1)
- LeftSection.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- LeftSection.BackgroundTransparency = 1.000
- LeftSection.BorderSizePixel = 0
- LeftSection.Position = UDim2.new(0, 15, 1, -15)
- LeftSection.Size = UDim2.new(0.5, -20, 1, -80)
- LeftSection.ZIndex = 4
- LeftSection.Image = "rbxassetid://3570695787"
- LeftSection.ImageColor3 = Color3.fromRGB(32, 32, 32)
- LeftSection.ScaleType = Enum.ScaleType.Slice
- LeftSection.SliceCenter = Rect.new(100, 100, 100, 100)
- LeftSection.SliceScale = 0.120
- Border_3.Name = "Border"
- Border_3.Parent = LeftSection
- Border_3.AnchorPoint = Vector2.new(0.5, 0.5)
- Border_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Border_3.BackgroundTransparency = 1.000
- Border_3.BorderSizePixel = 0
- Border_3.Position = UDim2.new(0.5, 0, 0.5, 0)
- Border_3.Size = UDim2.new(1, 2, 1, 2)
- Border_3.ZIndex = 3
- Border_3.Image = "rbxassetid://3570695787"
- Border_3.ImageColor3 = Color3.fromRGB(235, 28, 58)
- Border_3.ScaleType = Enum.ScaleType.Slice
- Border_3.SliceCenter = Rect.new(100, 100, 100, 100)
- Border_3.SliceScale = 0.120
- Title_2.Name = "Title"
- Title_2.Parent = LeftSection
- Title_2.AnchorPoint = Vector2.new(0.5, 0.5)
- Title_2.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
- Title_2.BorderSizePixel = 0
- Title_2.Position = UDim2.new(0.5, 0, 0, -2)
- Title_2.Size = UDim2.new(0, 68, 0, 20)
- Title_2.ZIndex = 4
- Title_2.Font = Enum.Font.SourceSans
- Title_2.Text = "Name LOL"
- Title_2.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title_2.TextSize = 16.000
- Cheats_2.Name = "Cheats"
- Cheats_2.Parent = LeftSection
- Cheats_2.Active = true
- Cheats_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Cheats_2.BackgroundTransparency = 1.000
- Cheats_2.BorderSizePixel = 0
- Cheats_2.Position = UDim2.new(0, 5, 0, 5)
- Cheats_2.Size = UDim2.new(1, -10, 1, -10)
- Cheats_2.ZIndex = 4
- Cheats_2.CanvasSize = UDim2.new(0, 0, 0, 400)
- Cheats_2.ScrollBarThickness = 6
- Cheats_2.ScrollBarImageColor3 = Color3.fromRGB(235, 28, 58)
- Cheats_2.VerticalScrollBarInset = Enum.ScrollBarInset.ScrollBar
- UIListLayout_3.Parent = Cheats_2
- UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout_3.Padding = UDim.new(0, 5)
- Dragger.Name = "Dragger"
- Dragger.Parent = Main
- Dragger.AnchorPoint = Vector2.new(1, 1)
- Dragger.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Dragger.BackgroundTransparency = 1.000
- Dragger.Position = UDim2.new(1, 0, 1, 0)
- Dragger.Rotation = -45.000
- Dragger.Size = UDim2.new(0, 24, 0, 24)
- Dragger.ZIndex = 3
- Dragger.Image = "rbxassetid://5764449147"
- Dragger.ImageColor3 = Color3.fromRGB(235, 28, 58)
- local uiScale = Instance.new("UIScale",UI) -- The UIscale
- local uidragging,dragposX,dragposY=nil,0,0
- 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)
- Main.InputEnded:Connect(function(key)if key.UserInputType == Enum.UserInputType.MouseButton1 then uidragging = false;dragposX,dragposY = 0,0 end end)
- uis.InputChanged:Connect(function()
- if uidragging then
- Main.Position = UDim2.new(0,(ms.X/uiScale.Scale)-(dragposX/uiScale.Scale),0,(ms.Y/uiScale.Scale)-(dragposY/uiScale.Scale))
- end
- end)
- local function Resize(UIListLayout)
- UIListLayout.Parent.CanvasSize = UDim2.new(0, 0, 0, UIListLayout.AbsoluteContentSize.Y + 5)
- end
- UIListLayout_3:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
- Resize(UIListLayout_3)
- end)
- UIListLayout_2:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
- Resize(UIListLayout_2)
- end)
- SowdUITable.UserInterface = UI
- end
- local function LoadIntroContent()
- SowdUITable.UserInterface.Main.Size = UDim2.new(0, 250, 0, 100)
- SowdUITable.UserInterface.Main.Position = UDim2.new(0.5, -125, 0.5, -50)
- local Title = Instance.new("ImageLabel")
- local Content = Instance.new("Frame")
- local Author = Instance.new("TextLabel")
- local Title_2 = Instance.new("TextLabel")
- Title.Name = "Title"
- Title.Parent = SowdUITable.UserInterface.Main
- Title.AnchorPoint = Vector2.new(0.5, 0.5)
- Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Title.BackgroundTransparency = 1.000
- Title.BorderSizePixel = 0
- Title.Position = UDim2.new(0.5, 0, 0.5, 0)
- Title.Size = UDim2.new(1, 0, 1, 0)
- Title.ZIndex = 100
- Title.Image = "rbxassetid://3570695787"
- Title.ImageColor3 = Color3.fromRGB(32, 32, 32)
- Title.ScaleType = Enum.ScaleType.Slice
- Title.SliceCenter = Rect.new(100, 100, 100, 100)
- Title.SliceScale = 0.120
- Content.Name = "Content"
- Content.Parent = Title
- Content.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Content.BackgroundTransparency = 1.000
- Content.Size = UDim2.new(1, 0, 1, 0)
- Content.ZIndex = 100
- Author.Name = "Author"
- Author.Parent = Content
- Author.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Author.BackgroundTransparency = 1.000
- Author.Position = UDim2.new(0, 0, 0, 15)
- Author.Size = UDim2.new(1, 0, 1, -15)
- Author.ZIndex = 100
- Author.Font = Enum.Font.SourceSans
- Author.TextTransparency = 0
- Author.Text = ""
- Author.TextColor3 = Color3.fromRGB(255, 255, 255)
- Author.TextSize = 14.000
- Title_2.Name = "Title"
- Title_2.Parent = Content
- Title_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Title_2.BackgroundTransparency = 1.000
- Title_2.Size = UDim2.new(1, 0, 1, -15)
- Title_2.ZIndex = 100
- Title_2.Font = Enum.Font.SourceSans
- Title_2.TextTransparency = 0
- Title_2.Text = WIndowName
- Title_2.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title_2.TextSize = 20.000
- SowdUITable.IntroContentFrame = Content
- end
- --// table functions
- function SowdUITable:AddLoadingScene(Text, Length)
- if not IntroLoaded then
- IntroLoaded = true
- LoadIntroContent()
- end
- table.insert(SowdUITable.IntroScenes, {Text = Text or "bruh u forgot add text", Length = Length or 1})
- end
- function SowdUITable:Load()
- if IntroLoaded then
- SowdUITable.UserInterface.Main.Position = UDim2.new(0.5, -125, 1.5, -50)
- SowdUITable.UserInterface.Enabled = true
- SowdUITable.UserInterface.Main:TweenPosition(UDim2.new(0.5, -125, 0.5, -50), "Out", "Sine", 0.5, true)
- wait(0.5)
- local function RemoveText()
- local Text = SowdUITable.IntroContentFrame.Author.Text
- for Letter = #Text, 0, -1 do
- wait(0.5 / #Text)
- SowdUITable.IntroContentFrame.Author.Text = string.sub(Text, 1, Letter)
- end
- end
- local function WriteText(Text)
- for Letter = 1, #Text do
- SowdUITable.IntroContentFrame.Author.Text = string.sub(Text, 1, Letter)
- wait(0.5 / #Text)
- end
- end
- for _, Scene in next, self.IntroScenes do
- RemoveText()
- WriteText(Scene.Text)
- wait(Scene.Length)
- end
- TweenService:Create(SowdUITable.IntroContentFrame.Parent, TweenInfo.new(0.5), {ImageTransparency = 1}):Play()
- TweenService:Create(SowdUITable.IntroContentFrame.Author, TweenInfo.new(0.5), {TextTransparency = 1}):Play()
- TweenService:Create(SowdUITable.IntroContentFrame.Title, TweenInfo.new(0.5), {TextTransparency = 1}):Play()
- SowdUITable.UserInterface.Main:TweenSizeAndPosition(UDim2.new(0, 400, 0, 300), UDim2.new(0.5, -200, 0.5, -150), "Out", "Sine", 0.5, true)
- else
- SowdUITable.UserInterface.Enabled = true
- SowdUITable.UserInterface.Main.Position = UDim2.new(0.5, -200, 1.5, -150)
- SowdUITable.UserInterface.Main.Size = UDim2.new(0, 400, 0, 300)
- SowdUITable.UserInterface.Main:TweenPosition(UDim2.new(0.5, -200, 0.5, -150), "Out", "Sine", 0.5, true)
- end
- end
- function SowdUITable:Category(Name, SectionLeft, SectionRight)
- local Category = {}
- Category.Name = Name
- Category.Cheats = {
- Left = {},
- Right = {},
- }
- local LeftSection = SowdUITable.UserInterface.Main.Content.LeftSection
- local RightSection = SowdUITable.UserInterface.Main.Content.RightSection
- function Category:Load()
- spawn(function()
- repeat wait() until #Category.Cheats.Left > 0 or #Category.Cheats.Right > 0
- for _, Object in next, ObjectTable do
- Object:Destroy()
- end
- LeftSection.Title.Text = SectionLeft or "Left"
- LeftSection.Title.Size = UDim2.new(0, LeftSection.Title.TextBounds.X + 8, 0, 20)
- RightSection.Title.Text = SectionRight or "Right"
- RightSection.Title.Size = UDim2.new(0, RightSection.Title.TextBounds.X + 8, 0, 20)
- for _, Object in next, Category.Cheats.Left do
- print(Object)
- table.insert(ObjectTable, Object:Make())
- end
- for _, Object in next, Category.Cheats.Right do
- print(Object)
- table.insert(ObjectTable, Object:Make())
- end
- end)
- end
- do
- local Section = Instance.new("TextButton")
- Section.Name = "Section"
- Section.AnchorPoint = Vector2.new(0, 0.5)
- Section.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Section.BackgroundTransparency = 1.000
- Section.Size = UDim2.new(0, 40, 1, 0)
- Section.ZIndex = 3
- Section.Font = Enum.Font.SourceSansSemibold
- Section.Text = Name
- Section.TextColor3 = Color3.fromRGB(255, 255, 255)
- Section.TextSize = 18.000
- Section.Parent = SowdUITable.UserInterface.Main.Content.Topbar
- Section.MouseEnter:Connect(function()
- Section.Font = Enum.Font.SourceSansBold
- end)
- Section.MouseLeave:Connect(function()
- Section.Font = Enum.Font.SourceSansSemibold
- end)
- Section.MouseButton1Down:Connect(function()
- Section.Font = Enum.Font.SourceSans
- end)
- Section.MouseButton1Click:Connect(function()
- Section.Font = Enum.Font.SourceSansSemibold
- for _, Child in next, LeftSection:GetChildren() do
- if Child:IsA("Frame") then Child:Destroy() end
- end
- for _, Child in next, RightSection:GetChildren() do
- if Child:IsA("Frame") then Child:Destroy() end
- end
- Category:Load()
- end)
- end
- --[[
- function Category:Cheat(Text, Section, Callback)
- local Cheat = {}
- function Cheat:Fire(...)
- if Callback then
- local S, E = pcall(Callback, ...)
- if not S then warn(string.format("[%s] %s", Text, E)) end
- end
- end
- function Cheat:Make()
- end
- return Cheat
- end
- ]]
- function Category:Label(Text, Section)
- local Label = {}
- function Label:Make()
- Label.Frame = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- Label.Frame.Name = "Label"
- Label.Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Label.Frame.Size = UDim2.new(1, 0, 0, 30)
- Label.Frame.Parent = (Section == 2) and RightSection.Cheats or LeftSection.Cheats
- Title.Name = "Title"
- Title.Parent = Label.Frame
- Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Title.BackgroundTransparency = 1.000
- Title.Position = UDim2.new(0, 5, 0, 0)
- Title.Size = UDim2.new(1, -5, 0, 30)
- Title.ZIndex = 5
- Title.Text = Text
- Title.Font = Enum.Font.SourceSans
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.TextSize = 16.000
- Title.TextXAlignment = Enum.TextXAlignment.Left
- return Label.Frame
- end
- function Label:ChangeText(NewText)
- Label.Frame.Title.Text = NewText
- end
- table.insert(Category.Cheats[(Section == 2) and "Right" or "Left"], Label)
- return Label
- end
- function Category:Toggle(Text, Section, Callback)
- local Toggle = {}
- Toggle.Enabled = false
- function Toggle:Fire(...)
- if Callback then
- local S, E = pcall(Callback, ...)
- if not S then warn(string.format("[%s] %s", Text, E)) end
- end
- end
- function Toggle:Make()
- Toggle.Frame = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local Checked = Instance.new("ImageButton")
- local Unchecked = Instance.new("ImageButton")
- Toggle.Frame.Name = "Toggle"
- Toggle.Frame.Parent = (Section == 2) and RightSection.Cheats or LeftSection.Cheats
- Toggle.Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Toggle.Frame.Size = UDim2.new(1, 0, 0, 30)
- Title.Name = "Title"
- Title.Parent = Toggle.Frame
- Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Title.BackgroundTransparency = 1.000
- Title.Position = UDim2.new(0, 5, 0, 0)
- Title.Size = UDim2.new(1, -5, 0, 30)
- Title.ZIndex = 5
- Title.Text = Text
- Title.Font = Enum.Font.SourceSans
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.TextSize = 16.000
- Title.TextXAlignment = Enum.TextXAlignment.Left
- Checked.Name = "Checked"
- Checked.Parent = Toggle.Frame
- Checked.AnchorPoint = Vector2.new(1, 0.5)
- Checked.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Checked.BackgroundTransparency = 1.000
- Checked.Position = UDim2.new(0.949999988, 0, 0.5, 0)
- Checked.Size = UDim2.new(0, 24, 0, 24)
- Checked.ZIndex = 6
- Checked.AutoButtonColor = false
- Checked.Image = "rbxassetid://4942141114"
- Checked.ImageColor3 = Color3.fromRGB(235, 28, 58)
- Checked.ImageTransparency = Toggle.Enabled and 0 or 1
- Unchecked.Name = "Unchecked"
- Unchecked.Parent = Toggle.Frame
- Unchecked.AnchorPoint = Vector2.new(1, 0.5)
- Unchecked.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Unchecked.BackgroundTransparency = 1.000
- Unchecked.Position = UDim2.new(0.949999988, 0, 0.5, 0)
- Unchecked.Size = UDim2.new(0, 24, 0, 24)
- Unchecked.ZIndex = 5
- Unchecked.AutoButtonColor = false
- Unchecked.Image = "rbxassetid://4942141053"
- Unchecked.ImageColor3 = Color3.fromRGB(60, 60, 60)
- Checked.MouseEnter:Connect(function()
- TweenService:Create(Checked, TweenInfo.new(0.2), {ImageTransparency = 0.5}):Play()
- end)
- Checked.MouseLeave:Connect(function()
- TweenService:Create(Checked, TweenInfo.new(0.2), {ImageTransparency = Toggle.Enabled and 0 or 1}):Play()
- end)
- Checked.MouseButton1Click:Connect(function()
- if Toggle.Enabled then
- Toggle:Disable()
- else
- Toggle:Enable()
- end
- end)
- return Toggle.Frame
- end
- function Toggle:Enable()
- self.Enabled = true
- self:Fire(true)
- TweenService:Create(Toggle.Frame.Checked, TweenInfo.new(0.2), {ImageTransparency = Toggle.Enabled and 0 or 1}):Play()
- end
- function Toggle:Disable()
- self.Enabled = false
- self:Fire(false)
- TweenService:Create(Toggle.Frame.Checked, TweenInfo.new(0.2), {ImageTransparency = Toggle.Enabled and 0 or 1}):Play()
- end
- table.insert(Category.Cheats[(Section == 2) and "Right" or "Left"], Toggle)
- return Toggle
- end
- function Category:Button(Text, Section, Callback)
- local Button = {}
- function Button:Fire(...)
- if Callback then
- local S, E = pcall(Callback, ...)
- if not S then warn(string.format("[%s] %s", Text, E)) end
- end
- end
- function Button:Make()
- Button.Frame = Instance.new("Frame")
- local TextButton = Instance.new("TextButton")
- local Roundify = Instance.new("ImageLabel")
- Button.Frame.Name = "Button"
- Button.Frame.Parent = (Section == 2) and RightSection.Cheats or LeftSection.Cheats
- Button.Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Button.Frame.Size = UDim2.new(1, 0, 0, 25)
- TextButton.Name = "Button"
- TextButton.Parent = Button.Frame
- TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextButton.BackgroundTransparency = 1.000
- TextButton.BorderSizePixel = 0
- TextButton.Size = UDim2.new(1, -10, 0, 25)
- TextButton.ZIndex = 5
- TextButton.Font = Enum.Font.SourceSans
- TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextButton.TextSize = 16.000
- TextButton.Text = Text or "no button text bro"
- Roundify.Name = "Roundify"
- Roundify.Parent = TextButton
- Roundify.Active = true
- Roundify.AnchorPoint = Vector2.new(0.5, 0.5)
- Roundify.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Roundify.BackgroundTransparency = 1.000
- Roundify.Position = UDim2.new(0.5, 0, 0.5, 0)
- Roundify.Selectable = true
- Roundify.Size = UDim2.new(1, 0, 1, 0)
- Roundify.ZIndex = 4
- Roundify.Image = "rbxassetid://3570695787"
- Roundify.ImageColor3 = Color3.fromRGB(235, 28, 58)
- Roundify.ScaleType = Enum.ScaleType.Slice
- Roundify.SliceCenter = Rect.new(100, 100, 100, 100)
- Roundify.SliceScale = 0.080
- TextButton.MouseButton1Click:Connect(function()
- self:Fire()
- end)
- return Button.Frame
- end
- table.insert(Category.Cheats[(Section == 2) and "Right" or "Left"], Button)
- return Button
- end
- function Category:Textbox(Text, Section, Callback)
- local Textbox = {}
- function Textbox:Fire(...)
- if Callback then
- local S, E = pcall(Callback, ...)
- if not S then warn(string.format("[%s] %s", Text, E)) end
- end
- end
- function Textbox:Make()
- Textbox.Frame = Instance.new("Frame")
- local Textbox_T = Instance.new("TextBox")
- local Roundify = Instance.new("ImageLabel")
- Textbox.Frame.Name = "TextBox"
- Textbox.Frame.Parent = (Section == 2) and RightSection.Cheats or LeftSection.Cheats
- Textbox.Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Textbox.Frame.Size = UDim2.new(1, 0, 0, 25)
- Textbox_T.Parent = Textbox.Frame
- Textbox_T.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Textbox_T.BackgroundTransparency = 1.000
- Textbox_T.BorderSizePixel = 0
- Textbox_T.Size = UDim2.new(1, -10, 0, 25)
- Textbox_T.ZIndex = 5
- Textbox_T.Font = Enum.Font.SourceSans
- Textbox_T.PlaceholderText = Text or "no placeholder text"
- Textbox_T.Text = ""
- Textbox_T.TextColor3 = Color3.fromRGB(255, 255, 255)
- Textbox_T.TextSize = 16.000
- Roundify.Name = "Roundify"
- Roundify.Parent = Textbox_T
- Roundify.Active = true
- Roundify.AnchorPoint = Vector2.new(0.5, 0.5)
- Roundify.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Roundify.BackgroundTransparency = 1.000
- Roundify.Position = UDim2.new(0.5, 0, 0.5, 0)
- Roundify.Selectable = true
- Roundify.Size = UDim2.new(1, 0, 1, 0)
- Roundify.ZIndex = 4
- Roundify.Image = "rbxassetid://3570695787"
- Roundify.ImageColor3 = Color3.fromRGB(235, 28, 58)
- Roundify.ScaleType = Enum.ScaleType.Slice
- Roundify.SliceCenter = Rect.new(100, 100, 100, 100)
- Roundify.SliceScale = 0.080
- Textbox_T.FocusLost:Connect(function()
- self:Fire(Textbox_T.Text)
- Textbox_T.Text = ""
- end)
- return Textbox.Frame
- end
- table.insert(Category.Cheats[(Section == 2) and "Right" or "Left"], Textbox)
- return Textbox
- end
- if not CategoryLoaded then
- CategoryLoaded = true
- Category:Load()
- end
- return Category
- end
- return SowdUITable
- end
- return SowdUI
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement