Run it
Copy the script and paste it into your executor.
Library
Workspace = :()
UserInputService = :()
Players = :()
HttpService = :()
RunService = :()
CoreGui = cloneref (:()) :()
TweenService = :()
Lighting = :()
gethui = gethui ()
CoreGui
LocalPlayer = Players.LocalPlayer
Camera = Workspace.CurrentCamera
Mouse = LocalPlayer:()
FromRGB = .fromRGB
FromHSV = .fromHSV
FromHex = .fromHex
RGBSequence = ColorSequence.new
RGBSequenceKeypoint = ColorSequenceKeypoint.new
NumSequence = NumberSequence.new
NumSequenceKeypoint = NumberSequenceKeypoint.new
UDim2New = .new
UDimNew = .new
UDim2FromOffset = .fromOffset
Vector2New = .new
Vector3New = .new
MathClamp = .clamp
MathFloor = .floor
MathAbs = .abs
MathSin = .sin
TableInsert = .insert
TableFind = .find
TableRemove = .remove
TableConcat = .concat
TableClone = .clone
TableUnpack = .unpack
StringFormat = .format
StringFind = .find
StringGSub = .gsub
StringLower = .lower
StringLen = .len
InstanceNew = .new
RectNew = Rect.new
IsMobile = UserInputService.TouchEnabled
Library = {
Theme = { },
MenuKeybind = (.KeyCode.RightControl),
Flags = { },
Tween = {
Time = ,
Style = .EasingStyle.Quad,
Direction = .EasingDirection.Out
},
FadeSpeed = ,
Folders = {
Directory = ,
Configs = ,
Assets = ,
},
Pages = { },
Sections = { },
Connections = { },
Threads = { },
ThemeMap = { },
ThemeItems = { },
OpenFrames = { },
SetFlags = { },
UnnamedConnections = ,
UnnamedFlags = ,
Holder = ,
NotifHolder = ,
UnusedHolder = ,
Font =
}
Library.__index = Library
Library.Sections.__index = Library.Sections
Library.Pages.__index = Library.Pages
Keys = {
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] =
}
Themes = {
[] = {
[] = (, , ),
[] = (, , ),
[] = (, , ),
[] = (, , ),
[] = (, , ),
[] = (, , ),
[] = (, , ),
[] = (, , ),
[] = (, , ),
[] = (, , )
}
}
Library.Theme = (Themes[])
Index, Value Library.Folders
(Value)
(Value)
Tween = { }
Tween.__index = Tween
Tween.Create = (self, Item, Info, Goal, IsRawItem)
Item = IsRawItem Item Item.Instance
Info = Info TweenInfo.(Library.Tween.Time, Library.Tween.Style, Library.Tween.Direction)
NewTween = {
Tween = TweenService:(Item, Info, Goal),
Info = Info,
Goal = Goal,
Item = Item
}
NewTween.Tween:()
(NewTween, Tween)
NewTween
Tween.GetProperty = (self, Item)
Item = Item self.Item
Item:()
{ }
Item:() Item:()
{ , }
Item:() Item:()
{ , }
Item:()
{ , }
Item:()
{ , }
Item:()
{ }
Tween.FadeItem = (self, Item, Property, Visibility, Speed)
Item = Item self.Item
OldTransparency = Item[Property]
Item[Property] = Visibility OldTransparency
NewTween = Tween:(Item, TweenInfo.(Speed Library.Tween.Time, Library.Tween.Style, Library.Tween.Direction), {
[Property] = Visibility OldTransparency
}, )
Library:(NewTween.Tween.Completed, ()
Visibility
.()
Item[Property] = OldTransparency
)
NewTween
Tween.Get = (self)
self.Tween
self.Tween, self.Info, self.Goal
Tween.Pause = (self)
self.Tween
self.Tween:()
Tween.Play = (self)
self.Tween
self.Tween:()
Tween.Clean = (self)
self.Tween
Tween:()
self =
Instances = { }
Instances.__index = Instances
Instances.Create = (self, Class, Properties)
NewItem = {
= (Class),
Properties = Properties,
Class = Class
}
(NewItem, Instances)
Property, Value NewItem.Properties
NewItem.Instance[Property] = Value
NewItem
Instances.FadeItem = (self, Visibility, Speed)
Item = self.Instance
Visibility ==
Item.Visible =
Descendants = Item:()
(Descendants, Item)
NewTween
Index, Value Descendants
TransparencyProperty = Tween:(Value)
TransparencyProperty
(TransparencyProperty) ==
_, Property TransparencyProperty
NewTween = Tween:(Value, Property, Visibility, Speed)
NewTween = Tween:(Value, TransparencyProperty, Visibility, Speed)
Instances.AddToTheme = (self, Properties)
self.Instance
Library:(self, Properties)
Instances.ChangeItemTheme = (self, Properties)
self.Instance
Library:(self, Properties)
Instances.Connect = (self, Event, Callback, Name)
self.Instance
self.Instance[Event]
IsMobile
Event == Event ==
Event =
Event == Event ==
Event =
Library:(self.Instance[Event], Callback, Name)
Instances.Tween = (self, Info, Goal)
self.Instance
Tween:(self, Info, Goal)
Instances.Disconnect = (self, Name)
self.Instance
Library:(Name)
Instances.Clean = (self)
self.Instance
self.Instance:()
self =
Instances.MakeDraggable = (self)
self.Instance
Gui = self.Instance
Dragging =
DragStart
StartPosition
Set = (Input)
DragDelta = Input.Position - DragStart
NewX = StartPosition.X.Offset + DragDelta.X
NewY = StartPosition.Y.Offset + DragDelta.Y
ScreenSize = Gui.Parent.AbsoluteSize
GuiSize = Gui.AbsoluteSize
NewX = (NewX, , ScreenSize.X - GuiSize.X)
NewY = (NewY, , ScreenSize.Y - GuiSize.Y)
self:(TweenInfo.(, .EasingStyle.Quart, .EasingDirection.Out), {Position = (, NewX, , NewY)})
InputChanged
self:(, (Input)
Input.UserInputType == .UserInputType.MouseButton1 Input.UserInputType == .UserInputType.Touch
Dragging =
DragStart = Input.Position
StartPosition = Gui.Position
InputChanged
InputChanged = Input.Changed:(()
Input.UserInputState == .UserInputState.End
Dragging =
InputChanged:()
InputChanged =
)
)
Library:(UserInputService.InputChanged, (Input)
Input.UserInputType == .UserInputType.MouseMovement Input.UserInputType == .UserInputType.Touch
Dragging
(Input)
)
Dragging
Instances.MakeResizeable = (self, Minimum, Maximum, Window)
self.Instance
Gui = self.Instance
Resizing =
CurrentSide =
StartMouse =
StartPosition =
StartSize =
EdgeThickness =
MakeEdge = (Name, Position, Size)
Button = Instances:(, {
Name = ,
Size = Size,
Position = Position,
BackgroundColor3 = (, , ),
BackgroundTransparency = ,
Text = ,
BorderSizePixel = ,
AutoButtonColor = ,
Parent = Gui,
ZIndex = ,
}) Button:({BackgroundColor3 = })
Button
Edges = {
{Button = (
,
(, , , ),
(, EdgeThickness, , )),
Side =
},
{Button = (
,
(, -EdgeThickness, , ),
(, EdgeThickness, , )),
Side =
},
{Button = (
, (, , , ),
(, , , EdgeThickness)),
Side =
},
{Button = (
,
(, , , -EdgeThickness),
(, , , EdgeThickness)),
Side =
},
}
BeginResizing = (Side)
Resizing =
CurrentSide = Side
StartMouse = UserInputService:()
StartPosition = (Gui.Position.X.Offset, Gui.Position.Y.Offset)
StartSize = (Gui.Size.X.Offset, Gui.Size.Y.Offset)
Index, Value Edges
Value.Button:(, {BackgroundTransparency = (Value.Side == Side) })
EndResizing = ()
Resizing =
CurrentSide =
Index, Value Edges
Value.Button.Instance.BackgroundTransparency =
Index, Value Edges
Value.Button:(, (Input)
Input.UserInputType == .UserInputType.MouseButton1
(Value.Side)
)
Library:(UserInputService.InputEnded, (Input)
Input.UserInputType == .UserInputType.MouseButton1
Resizing
()
)
Library:(RunService.RenderStepped, ()
Resizing CurrentSide
MouseLocation = UserInputService:()
dx = MouseLocation.X - StartMouse.X
dy = MouseLocation.Y - StartMouse.Y
x, y = StartPosition.X, StartPosition.Y
w, h = StartSize.X, StartSize.Y
CurrentSide ==
x = StartPosition.X + dx
w = StartSize.X - dx
Window
Window.Left.Y = h
CurrentSide ==
w = StartSize.X + dx
Window
Window.Right.Y = h
CurrentSide ==
y = StartPosition.Y + dy
h = StartSize.Y - dy
Window
Window.Top.X = w
CurrentSide ==
h = StartSize.Y + dy
Window
Window.Bottom.X = w
w < Minimum.X
CurrentSide ==
x = x - (Minimum.X - w)
w = Minimum.X
h < Minimum.Y
CurrentSide ==
y = y - (Minimum.Y - h)
h = Minimum.Y
self:(TweenInfo.(, .EasingStyle.Quart, .EasingDirection.Out), {Position = (x, y)})
self:(TweenInfo.(, .EasingStyle.Quart, .EasingDirection.Out), {Size = (w, h)})
)
Instances.OnHover = (self, Function)
self.Instance
Library:(self.Instance.MouseEnter, Function)
Instances.OnHoverLeave = (self, Function)
self.Instance
Library:(self.Instance.MouseLeave, Function)
CustomFont = { }
CustomFont:(Name, Weight, Style, Data)
(Data.Id)
(Data.Id, :(Data.Url))
Data = {
name = Name,
faces = {
{
name = Name,
weight = Weight,
style = Style,
assetId = (Data.Id)
}
}
}
(, HttpService:(Data))
()
SemiBold = Font.(, .FontWeight.SemiBold, .FontStyle.Normal)
Regular = Font.(, .FontWeight.Regular, .FontStyle.Normal)
Light = Font.(, .FontWeight.Light, .FontStyle.Normal)
Library.Fonts = {
[] = SemiBold,
[] = Regular,
[] = Light
}
Library.Font = SemiBold
Library.Holder = Instances:(, {
Parent = (),
Name = ,
ZIndexBehavior = .ZIndexBehavior.Global,
DisplayOrder = ,
ResetOnSpawn =
})
Library.UnusedHolder = Instances:(, {
Parent = (),
Name = ,
ZIndexBehavior = .ZIndexBehavior.Global,
Enabled = ,
ResetOnSpawn =
})
Library.NotifHolder = Instances:(, {
Parent = Library.Holder.Instance,
Name = ,
BackgroundTransparency = ,
Size = (, , , ),
BorderColor3 = (, , ),
BorderSizePixel = ,
AutomaticSize = .AutomaticSize.X,
BackgroundColor3 = (, , )
})
Instances:(, {
Parent = Library.NotifHolder.Instance,
Name = ,
Padding = (, ),
SortOrder = .SortOrder.LayoutOrder
})
Instances:(, {
Parent = Library.NotifHolder.Instance,
Name = ,
PaddingTop = (, ),
PaddingBottom = (, ),
PaddingRight = (, ),
PaddingLeft = (, )
})
Library.Unload = (self)
Index, Value self.Connections
Value.Connection:()
Index, Value self.Threads
.(Value)
self.Holder
self.Holder:()
Library =
().Library =
Library.GetImage = (self, Image)
ImageData = self.Images[Image]
ImageData
(self.Folders.Assets .. .. ImageData[])
Library.Round = (self, Number, Float)
Multiplier = / (Float )
(Number * Multiplier) / Multiplier
Library.Thread = (self, Function)
NewThread = .(Function)
.(()
.(NewThread)
)()
(self.Threads, NewThread)
NewThread
Library.SafeCall = (self, Function, ...)
Arguements = { ... }
Success, Result = (Function, (Arguements))
Success
(Result)
Success
Library.Connect = (self, Event, Callback, Name)
Name = Name (, self.UnnamedConnections + , HttpService:())
NewConnection = {
Event = Event,
Callback = Callback,
Name = Name,
Connection =
}
Library:(()
NewConnection.Connection = Event:(Callback)
)
(self.Connections, NewConnection)
NewConnection
Library.Disconnect = (self, Name)
_, Connection self.Connections
Connection.Name == Name
Connection.Connection:()
Library.NextFlag = (self)
FlagNumber = self.UnnamedFlags +
(, FlagNumber, HttpService:())
Library.AddToTheme = (self, Item, Properties)
Item = Item.Instance Item
ThemeData = {
Item = Item,
Properties = Properties,
}
Property, Value ThemeData.Properties
(Value) ==
Item[Property] = self.Theme[Value]
Item[Property] = ()
(self.ThemeItems, ThemeData)
self.ThemeMap[Item] = ThemeData
Library.ToRich = (self, Text, Color)
Library.GetConfig = (self)
Config = { }
Success, Result = Library:(()
Index, Value Library.Flags
(Value) == Value.Key
Config[Index] = {Key = (Value.Key), Mode = Value.Mode}
(Value) == Value.Color
Config[Index] = {Color = .. Value.HexValue, Alpha = Value.Alpha}
Config[Index] = Value
)
HttpService:(Config)
Library.LoadConfig = (self, Config)
Decoded = HttpService:(Config)
Success, Result = Library:(()
Index, Value Decoded
SetFunction = Library.SetFlags[Index]
SetFunction
(Value) == Value.Key
(Value)
(Value) == Value.Color
(Value.Color, Value.Alpha)
(Value)
)
Success, Result
Library.DeleteConfig = (self, Config)
(Library.Folders.Configs .. .. Config)
(Library.Folders.Configs .. .. Config)
Library.RefreshConfigsList = (self, Element)
CurrentList = { }
List = { }
ConfigFolderName = (Library.Folders.Configs, Library.Folders.Directory .. , )
Index, Value (Library.Folders.Configs)
FileName = (Value, Library.Folders.Directory .. .. ConfigFolderName .. , )
List[Index] = FileName
IsNew = #List ~= CurrentList
IsNew
Index = , #List
List[Index] ~= CurrentList[Index]
IsNew =
CurrentList = List
Element:(CurrentList)
Library.ChangeItemTheme = (self, Item, Properties)
Item = Item.Instance Item
self.ThemeMap[Item]
self.ThemeMap[Item].Properties = Properties
self.ThemeMap[Item] = self.ThemeMap[Item]
Library.ChangeTheme = (self, Theme, Color)
self.Theme[Theme] = Color
_, Item self.ThemeItems
Property, Value Item.Properties
(Value) == Value == Theme
Item.Item[Property] = Color
(Value) ==
Item.Item[Property] = ()
Library.IsMouseOverFrame = (self, Frame)
Frame = Frame.Instance
MousePosition = (Mouse.X, Mouse.Y)
MousePosition.X >= Frame.AbsolutePosition.X MousePosition.X <= Frame.AbsolutePosition.X + Frame.AbsoluteSize.X
MousePosition.Y >= Frame.AbsolutePosition.Y MousePosition.Y <= Frame.AbsolutePosition.Y + Frame.AbsoluteSize.Y
Library.Lerp = (self, Start, Finish, Time)
Start + (Finish - Start) * Time
Library.CompareVectors = (self, PointA, PointB)
(PointA.X < PointB.X) (PointA.Y < PointB.Y)
Library.IsClipped = (self, Object, Column)
Parent = Column
BoundryTop = Parent.AbsolutePosition
BoundryBottom = BoundryTop + Parent.AbsoluteSize
Top = Object.AbsolutePosition
Bottom = Top + Object.AbsoluteSize
Library:(Top, BoundryTop) Library:(BoundryBottom, Bottom)
Library.GetCalculatedRayPosition = (self, Position, Normal, Origin, Direction)
N = Normal
D = Direction
V = Origin - Position
Number = (N.x * V.x) + (N.y * V.y) + (N.z * V.z)
Den = (N.x * D.x) + (N.y * D.y) + (N.z * D.z)
A = -Number / Den
Origin + (A * Direction)
Library.UpdateText = (self)
Index, Value self.UnusedHolder.Instance:()
Value:() Value:() Value:()
Value.FontFace = Library.Font
Index, Value self.Holder.Instance:()
Value:() Value:() Value:()
Value.FontFace = Library.Font
Library.MakeBlurred = (self, Item, Window)
Item = Item.Instance
BlurItem = Item
Part = Instances:(, {
Material = .Material.Glass,
Transparency = ,
Reflectance = ,
CastShadow = ,
Anchored = ,
CanCollide = ,
CanQuery = ,
CollisionGroup = ,
Size = (, , ) * ,
Color = (,,),
Parent = Camera
})
BlockMesh = Instances:(, {Parent = Part.Instance})
DepthOfField = Instances:(, {
Parent = Lighting,
Enabled = ,
FarIntensity = ,
FocusDistance = ,
InFocusRadius = ,
NearIntensity = ,
Name =
})
Library:(RunService.RenderStepped, ()
Window.IsOpen
Item.Visible
DepthOfField:(, {NearIntensity = })
Part:(, {Transparency = })
Part:(, {Size = (, , ) * })
Corner0 = BlurItem.AbsolutePosition;
Corner1 = Corner0 + BlurItem.AbsoluteSize;
Ray0 = Camera.(Camera, Corner0.X, Corner0.Y, );
Ray1 = Camera.(Camera, Corner1.X, Corner1.Y, );
Origin = Camera.CFrame.Position + Camera.CFrame.LookVector * ( - Camera.NearPlaneZ);
Normal = Camera.CFrame.LookVector;
Position0 = Library:(Origin, Normal, Ray0.Origin, Ray0.Direction)
Position1 = Library:(Origin, Normal, Ray1.Origin, Ray1.Direction)
Position0 = Camera.CFrame:(Position0)
Position1 = Camera.CFrame:(Position1)
Size = Position1 - Position0
Center = (Position0 + Position1) /
BlockMesh.Instance.Offset = Center
BlockMesh.Instance.Scale = Size /
Part.Instance.CFrame = Camera.CFrame
DepthOfField:(, {NearIntensity = })
BlockMesh.Instance.Offset = (, , )
BlockMesh.Instance.Scale = (, , )
DepthOfField:(, {NearIntensity = })
BlockMesh.Instance.Offset = (, , )
BlockMesh.Instance.Scale = (, , )
)
Library.EscapePattern = (self, String)
ShouldEscape =
.(String, )
ShouldEscape =
ShouldEscape
(String, , )
String
Library.CreateColorpicker = (self, Data)
Colorpicker = {
Flag = Data.Flag,
Hue = ,
Saturation = ,
Value = ,
Alpha = ,
Color = (, , ),
HexValue = ,
SavedColors = { },
IsOpen =
}
Items = { }
Items[] = Instances:(, {
Parent = Data.Parent.Instance,
Name = ,
FontFace = Library.Font,
TextColor3 = (, , ),
BorderColor3 = (, , ),
Text = ,
AutoButtonColor = ,
AnchorPoint = (, ),
BackgroundTransparency = ,
BorderSizePixel = ,
Size = (, , , ),
ZIndex = ,
TextSize = ,
BackgroundColor3 = (, , )
})
Data.Parent2.Instance:()
Items[] = Instances:(, {
Parent = Data.Parent2.Instance,
ImageColor3 = (, , ),
BorderColor3 = (, , ),
Size = (, , , ),
AnchorPoint = (, ),
Image = ,
Name = ,
BackgroundTransparency = ,
Position = (, -, , -),
ZIndex = ,
BorderSizePixel = ,
BackgroundColor3 = (, , )
})
Items[]:(()
Items[]:(, {ImageColor3 = Library.Theme.Accent})
)
Items[]:(()
Items[]:(, {ImageColor3 = (, , )})
)
Items[] = Instances:(, {
Parent = Items[].Instance,
Name = ,
Size = (, , , ),
Position = (, , , ),
BorderColor3 = (, , ),
ZIndex = ,
BorderSizePixel = ,
BackgroundColor3 = (, , )
})
Instances:(, {
Parent = Items[].Instance,
Name = ,
CornerRadius = (, )
})
Items[] = Instances:(, {
Parent = Items[].Instance,
Name = ,
FontFace = Library.Font,
TextColor3 = (, , ),
BorderColor3 = (, , ),
Text = ,
AutomaticSize = .AutomaticSize.X,
Size = (, , , ),
BackgroundTransparency = ,
Position = (, , , ),
BorderSizePixel = ,
ZIndex = ,
TextSize = ,
BackgroundColor3 = (, , )
}) Items[]:({TextColor3 = })
Items[] = Instances:(, {
Parent = Library.UnusedHolder.Instance,
AutoButtonColor = ,
Text = ,
Name = ,
Visible = ,
Position = (, , , ),
BorderColor3 = (, , ),
Size = (, , , ),
BorderSizePixel = ,
BackgroundColor3 = (, , )
}) Items[]:({BackgroundColor3 = })
Instances:(, {
Parent = Items[].Instance,
Name = ,
CornerRadius = (, )
})
Items[] = Instances:(, {
Parent = Items[].Instance,
Name = ,
FontFace = Library.Font,
TextColor3 = (, , ),
BorderColor3 = (, , ),
Text = ,
AutoButtonColor = ,
Position = (, , , ),
Size = (, -, , -),
BorderSizePixel = ,
TextSize = ,
BackgroundColor3 = (, , )
})
Items[] = Instances:(, {
Parent = Items[].Instance,
Name = ,
BorderColor3 = (, , ),
Size = (, , , ),
BorderSizePixel = ,
BackgroundColor3 = (, , )
})
Instances:(, {
Parent = Items[].Instance,
Name = ,
Transparency = {(, ), (, )}
})
Instances:(, {
Parent = Items[].Instance,
Name = ,
CornerRadius = (, )
})
Items[] = Instances:(, {
Parent = Items[].Instance,
Name = ,
BorderColor3 = (, , ),
Size = (, , , ),
BorderSizePixel = ,
BackgroundColor3 = (, , )
})
Instances:(, {
Parent = Items[].Instance,
Name = ,
Rotation = ,
Transparency = {(, ), (, )}
})
Instances:(, {
Parent = Items[].Instance,
Name = ,
CornerRadius = (, )
})
Instances:(, {
Parent = Items[].Instance,
Name = ,
CornerRadius = (, )
})
Items[] = Instances:(, {
Parent = Items[].Instance,
Name = ,
BackgroundTransparency = ,
Position = (, , , ),
BorderColor3 = (, , ),
Size = (, , , ),
BorderSizePixel = ,
BackgroundColor3 = (, , )
})
Instances:(, {
Parent = Items[].Instance,
Name = ,
Color = (, , ),
ApplyStrokeMode = .ApplyStrokeMode.Border
})
Instances:(, {
Parent = Items[].Instance,
Name =
})
Items[] = Instances:(, {
Parent = Items[].Instance,
Name = ,
FontFace = Library.Font,
TextColor3 = (, , ),
BorderColor3 = (, , ),
Text = ,
AutoButtonColor = ,
AnchorPoint = (, ),
Position = (, , , -),
Size = (, -, , ),
BorderSizePixel = ,
TextSize = ,
BackgroundColor3 = (, , )
})
Instances:(, {
Parent = Items[].Instance,
Name = ,
CornerRadius = (, )
})
Items[] = Instances:(, {
Parent = Items[].Instance,
Name = ,
FontFace = Library.Font,
TextColor3 = (, , ),
BorderColor3 = (, , ),
Text = ,
AutoButtonColor = ,
Size = (, , , ),
BorderSizePixel = ,
TextSize = ,
BackgroundColor3 = (, , )
})
Instances:(, {
Parent = Items[].Instance,
Name = ,
CornerRadius = (, )
})
Instances:(, {
Parent = Items[].Instance,
Name = ,
Color = {(, (, , )), (, (, , )), (, (, , )), (, (, , )), (, (, , )), (, (, , )), (, (, , ))}
})
Items[] = Instances:(, {
Parent = Items[].Instance,
Name = ,
AnchorPoint = (, ),
Position = (, , , ),
BorderColor3 = (, , ),
Size = (, , , ),
BorderSizePixel = ,
BackgroundColor3 = (, , )
})
Instances:(, {
Parent = Items[].Instance,
Name = ,
CornerRadius = (, )
})
Items[] = Instances:(, {
Parent = Items[].Instance,
Name = ,
FontFace = Library.Font,
TextColor3 = (, , ),
BorderColor3 = (, , ),
Text = ,
AutoButtonColor = ,
AnchorPoint = (, ),
Position = (, , , -),
Size = (, -, , ),
BorderSizePixel = ,
TextSize = ,
BackgroundColor3 = (, , )
})
Instances:(, {
Parent = Items[].Instance,
Name = ,
CornerRadius = (, )
})
Instances:(, {
Parent = Items[].Instance,
Name = ,
Color = {(, (, , )), (, (, , ))}
})
Items[] = Instances:(, {
Parent = Items[].Instance,
Name = ,
AnchorPoint = (, ),
Position = (, , , ),
BorderColor3 = (, , ),
Size = (, , , ),
BorderSizePixel = ,
BackgroundColor3 = (, , )
})
Instances:(, {
Parent = Items[].Instance,
Name = ,
CornerRadius = (, )
})
Items[] = Instances:(, {
Parent = Items[].Instance,
Name = ,
AutomaticCanvasSize = .AutomaticSize.Y,
AnchorPoint = (, ),
BorderSizePixel = ,
CanvasSize = (, , , ),
ScrollBarImageColor3 = (, , ),
MidImage = ,
BorderColor3 = (, , ),
ScrollBarThickness = ,
Size = (, -, , ),
Selectable = ,
TopImage = ,
Position = (, , , -),
BottomImage = ,
BackgroundTransparency = ,
BackgroundColor3 = (, , )
})
Instances:(, {
Parent = Items[].Instance,
Name = ,
SortOrder = .SortOrder.LayoutOrder,
CellPadding = (, , , ),
CellSize = (, , , )
})
Instances:(, {
Parent = Items[].Instance,
Name = ,
PaddingLeft = (, ),
PaddingTop = (, ),
PaddingRight = (, -),
PaddingBottom = (, )
})
Items[] = Instances:(, {
Parent = Items[].Instance,
Name = ,
FontFace = Library.Font,
TextColor3 = (, , ),
BorderColor3 = (, , ),
ClearTextOnFocus = ,
Text = ,
AnchorPoint = (, ),
Size = (, , , ),
TextTransparency = ,
PlaceholderColor3 = (, , ),
Position = (, -, , -),
TextXAlignment = .TextXAlignment.Left,
BorderSizePixel = ,
TextSize = ,
BackgroundColor3 = (, , )
}) Items[]:({BackgroundColor3 = })
Instances:(, {
Parent = Items[].Instance,
Name = ,
PaddingLeft = (, ),
})
Items[] = Instances:(, {
Parent = Items[].Instance,
Name = ,
FontFace = Library.Font,
TextColor3 = (, , ),
BorderColor3 = (, , ),
Text = ,
TextTransparency = ,
AnchorPoint = (, ),
Size = (, , , ),
Position = (, , , -),
BorderSizePixel = ,
TextSize = ,
BackgroundTransparency = ,
BackgroundColor3 = (, , )
}) Items[]:({TextColor3 = })
Instances:(, {
Parent = Items[].Instance,
Name = ,
CornerRadius = (, )
})
Colorpicker:()
Colorpicker.Color, Colorpicker.Alpha
Colorpicker:(IsFromAlpha)
Hue, Saturation, Value = Colorpicker.Hue, Colorpicker.Saturation, Colorpicker.Value
Colorpicker.Color = (Hue, Saturation, Value)
Colorpicker.HexValue = Colorpicker.Color:()
Library.Flags[Colorpicker.Flag] = {
Alpha = Colorpicker.Alpha,
Color = Colorpicker.Color,
HexValue = Colorpicker.HexValue,
Transparency = - Colorpicker.Alpha
}
Items[]:(, {BackgroundColor3 = Colorpicker.Color})
Items[]:(, {BackgroundColor3 = (Hue, , )})
Items[].Instance.Text = (..Colorpicker.HexValue):()
Items[].Instance.Text = ..Colorpicker.HexValue
IsFromAlpha
Items[]:(, {BackgroundColor3 = Colorpicker.Color})
Data.Callback
Library:(Data.Callback, Colorpicker.Color, Colorpicker.Alpha)
SlidingPalette =
PaletteChanged
Colorpicker:(Input)
Input SlidingPalette
ValueX = ( - (Input.Position.X - Items[].Instance.AbsolutePosition.X) / Items[].Instance.AbsoluteSize.X, , )
ValueY = ( - (Input.Position.Y - Items[].Instance.AbsolutePosition.Y) / Items[].Instance.AbsoluteSize.Y, , )
Colorpicker.Saturation = ValueX
Colorpicker.Value = ValueY
SlideX = ((Input.Position.X - Items[].Instance.AbsolutePosition.X) / Items[].Instance.AbsoluteSize.X, , )
SlideY = ((Input.Position.Y - Items[].Instance.AbsolutePosition.Y) / Items[].Instance.AbsoluteSize.Y, , )
Items[]:(TweenInfo.(Library.Tween.Time, .EasingStyle.Quart, .EasingDirection.Out), {Position = (SlideX, , SlideY, )})
Colorpicker:()
SlidingHue =
HueChanged
Colorpicker:(Input)
Input SlidingHue
ValueX = ((Input.Position.X - Items[].Instance.AbsolutePosition.X) / Items[].Instance.AbsoluteSize.X, , )
Colorpicker.Hue = ValueX
SlideX = ((Input.Position.X - Items[].Instance.AbsolutePosition.X) / Items[].Instance.AbsoluteSize.X, , )
Items[]:(TweenInfo.(Library.Tween.Time, .EasingStyle.Quart, .EasingDirection.Out), {Position = (SlideX, , , )})
Colorpicker:()
SlidingAlpha =
AlphaChanged
Colorpicker:(Input)
Input SlidingAlpha
ValueX = ((Input.Position.X - Items[].Instance.AbsolutePosition.X) / Items[].Instance.AbsoluteSize.X, , )
Colorpicker.Alpha = ValueX
SlideX = ((Input.Position.X - Items[].Instance.AbsolutePosition.X) / Items[].Instance.AbsoluteSize.X, , )
Items[]:(TweenInfo.(Library.Tween.Time, .EasingStyle.Quart, .EasingDirection.Out), {Position = (SlideX, , , )})
Colorpicker:()
Debounce =
RenderStepped
Colorpicker:(Bool)
Debounce
Colorpicker.IsOpen = Bool
Debounce =
Colorpicker.IsOpen
Items[].Instance.Visible =
Items[].Instance.Parent = Library.Holder.Instance
RenderStepped = RunService.RenderStepped:(()
Items[].Instance.Position = (
,
Items[].Instance.AbsolutePosition.X,
,
Items[].Instance.AbsolutePosition.Y + Items[].Instance.AbsoluteSize.Y +
)
)
Data.Section.IsSettings ~=
Index, Value Library.OpenFrames
Value ~= Colorpicker
Value:()
Library.OpenFrames[Colorpicker] = Colorpicker
Data.Section.IsSettings
Library.OpenFrames[Colorpicker]
Library.OpenFrames[Colorpicker] =
RenderStepped
RenderStepped:()
RenderStepped =
Descendants = Items[].Instance:()
(Descendants, Items[].Instance)
NewTween
Index, Value Descendants
TransparencyProperty = Tween:(Value)
TransparencyProperty
Value.ClassName:()
Value.ZIndex = (Colorpicker.IsOpen Data.Section.IsSettings ) (Colorpicker.IsOpen Data.Section.IsSettings )
(TransparencyProperty) ==
_, Property TransparencyProperty
NewTween = Tween:(Value, Property, Bool, Library.FadeSpeed)
NewTween = Tween:(Value, TransparencyProperty, Bool, Library.FadeSpeed)
NewTween.Tween.Completed:(()
Debounce =
Items[].Instance.Visible = Colorpicker.IsOpen
task.wait(0.2)
Items["ColorpickerWindow"].Instance.Parent = not Colorpicker.IsOpen and Library.UnusedHolder.Instance or Library.Holder.Instance
end)
end
function Colorpicker:Set(Color, Alpha)
if type(Color) == "table" then
Color = FromRGB(Color[1], Color[2], Color[3])
Alpha = Color[4]
elseif type(Color) == "string" then
Color = FromHex(Color)
end
Colorpicker.Hue, Colorpicker.Saturation, Colorpicker.Value = Color:ToHSV()
Colorpicker.Alpha = Alpha or 0
local PaletteValueX = MathClamp(1 - Colorpicker.Saturation, 0, 0.955)
local PaletteValueY = MathClamp(1 - Colorpicker.Value, 0, 0.955)
local AlphaPositionX = MathClamp(Colorpicker.Alpha, 0, 0.955)
local HuePositionX = MathClamp(Colorpicker.Hue, 0, 0.955)
Items["PaletteDragger"]:Tween(TweenInfo.new(Library.Tween.Time, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Position = UDim2New(PaletteValueX, 0, PaletteValueY, 0)})
Items["HueDragger"]:Tween(TweenInfo.new(Library.Tween.Time, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Position = UDim2New(HuePositionX, 0, 0.5, 0)})
Items["AlphaDragger"]:Tween(TweenInfo.new(Library.Tween.Time, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Position = UDim2New(AlphaPositionX, 0, 0.5, 0)})
Colorpicker:Update()
end
Items["ColorpickerButton"]:Connect("MouseButton1Down", function()
Colorpicker:SetOpen(not Colorpicker.IsOpen)
end)
Items["Palette"]:Connect("InputBegan", function(Input)
if Input.UserInputType == Enum.UserInputType.MouseButton1 or Input.UserInputType == Enum.UserInputType.Touch then
SlidingPalette = true
Colorpicker:SlidePalette(Input)
if PaletteChanged then
return
end
PaletteChanged = Input.Changed:Connect(function()
if Input.UserInputState == Enum.UserInputState.End then
SlidingPalette = false
PaletteChanged:Disconnect()
PaletteChanged = nil
end
end)
end
end)
Items["HueInline"]:Connect("InputBegan", function(Input)
if Input.UserInputType == Enum.UserInputType.MouseButton1 or Input.UserInputType == Enum.UserInputType.Touch then
SlidingHue = true
Colorpicker:SlideHue(Input)
if HueChanged then
return
end
HueChanged = Input.Changed:Connect(function()
if Input.UserInputState == Enum.UserInputState.End then
SlidingHue = false
HueChanged:Disconnect()
HueChanged = nil
end
end)
end
end)
Items["Alpha"]:Connect("InputBegan", function(Input)
if Input.UserInputType == Enum.UserInputType.MouseButton1 or Input.UserInputType == Enum.UserInputType.Touch then
SlidingAlpha = true
Colorpicker:SlideAlpha(Input)
if AlphaChanged then
return
end
AlphaChanged = Input.Changed:Connect(function()
if Input.UserInputState == Enum.UserInputState.End then
SlidingAlpha = false
AlphaChanged:Disconnect()
AlphaChanged = nil
end
end)
end
end)
function AddColor(Color)
--if Input.UserInputType == Enum.UserInputType.MouseButton1 or Input.UserInputType == Enum.UserInputType.Touch then
local SaveIndex = #Colorpicker.SavedColors + 1
local SavedColor = Instances:Create("TextButton", {
Parent = Items["SavedColors"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(0, 0, 0),
BorderColor3 = FromRGB(0, 0, 0),
Text = "",
AutoButtonColor = false,
Size = UDim2New(0, 200, 0, 50),
BorderSizePixel = 0,
TextSize = 14,
BackgroundTransparency = 1,
ZIndex = 4,
BackgroundColor3 = Color
})
Instances:Create("UICorner", {
Parent = SavedColor.Instance,
Name = "\0",
CornerRadius = UDimNew(0, 6),
})
local UIStroke = Instances:Create("UIStroke", {
Parent = SavedColor.Instance,
Name = "\0",
ApplyStrokeMode = Enum.ApplyStrokeMode.Border,
Color = FromRGB(255, 255, 255),
Thickness = 1.5,
Transparency = 1
})
SavedColor:OnHover(function()
UIStroke:Tween(nil, {Transparency = 0})
end)
SavedColor:OnHoverLeave(function()
UIStroke:Tween(nil, {Transparency = 1})
end)
Colorpicker.SavedColors[SaveIndex] = {
Color = Color,
Alpha = Colorpicker.Alpha,
}
SavedColor:Connect("MouseButton1Down", function()
local NewColorData = Colorpicker.SavedColors[SaveIndex]
Colorpicker:Set(NewColorData.Color, NewColorData.Alpha)
end)
SavedColor:Tween(nil, {BackgroundTransparency = 0})
--end
end
local Colors = {
["Orange"] = FromRGB(245, 114, 66),
["Pink"] = FromRGB(245, 66, 191),
["Purple"] = FromRGB(124, 54, 245),
["Pink 2"] = FromRGB(202, 110, 255),
["Pink 3"] = FromRGB(250, 142, 239),
["Yellow"] = FromRGB(214, 206, 92),
["Orange 2"] = FromRGB(255, 93, 48),
["Orange 3"] = FromRGB(255, 169, 56),
["Green"] = FromRGB(0, 171, 0),
["Blue"] = FromRGB(0, 116, 224),
["Maroon"] = FromRGB(120, 0, 76),
["Whiteish Pink"] = FromRGB(255, 194, 245),
["White"] = FromRGB(255, 255, 255),
["Red"] = FromRGB(255, 0, 0),
["Sky Blue"] = FromRGB(171, 209, 255),
}
AddColor(Colors["Orange"])
AddColor(Colors["Pink"])
AddColor(Colors["Purple"])
AddColor(Colors["Pink 2"])
AddColor(Colors["Pink 3"])
AddColor(Colors["Yellow"])
AddColor(Colors["Orange 2"])
AddColor(Colors["Orange 3"])
AddColor(Colors["Green"])
AddColor(Colors["Blue"])
AddColor(Colors["Maroon"])
AddColor(Colors["Whiteish Pink"]) -- had to do it in order
AddColor(Colors["White"])
AddColor(Colors["Red"])
AddColor(Colors["Sky Blue"])
Items["HEXInput"]:Connect("FocusLost", function()
Colorpicker:Set(tostring(Items["HEXInput"].Instance.Text), Colorpicker.Alpha)
end)
Library:Connect(UserInputService.InputChanged, function(Input)
if Input.UserInputType == Enum.UserInputType.MouseMovement or Input.UserInputType == Enum.UserInputType.Touch then
if SlidingPalette then
Colorpicker:SlidePalette(Input)
end
if SlidingHue then
Colorpicker:SlideHue(Input)
end
if SlidingAlpha then
Colorpicker:SlideAlpha(Input)
end
end
end)
Library:Connect(UserInputService.InputBegan, function(Input)
if Input.UserInputType == Enum.UserInputType.MouseButton1 or Input.UserInputType == Enum.UserInputType.Touch then
if not Colorpicker.IsOpen then
return
end
if Library:IsMouseOverFrame(Items["ColorpickerWindow"]) or Library:IsMouseOverFrame(Items["PaletteIcon"]) and not Data.Section.IsSettings then
return
end
Colorpicker:SetOpen(false)
end
end)
if Data.Default then
Colorpicker:Set(Data.Default, Data.Alpha)
end
Library.SetFlags[Colorpicker.Flag] = function(Value, Alpha)
Colorpicker:Set(Value, Alpha)
end
return Colorpicker, Items
end
Library.KeybindList = function(self, Title)
local KeybindList = { }
Library.KeyList = KeybindList
local Items = { } do
Items["KeybindsList"] = Instances:Create("Frame", {
Parent = Library.Holder.Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(0, 0.5),
BackgroundTransparency = 0.30000001192092896,
Position = UDim2New(0, 20, 0.5, 20),
Size = UDim2New(0, 100, 0, 30),
BorderSizePixel = 0,
AutomaticSize = Enum.AutomaticSize.XY,
BackgroundColor3 = FromRGB(27, 25, 29)
}) Items["KeybindsList"]:AddToTheme({BackgroundColor3 = "Section Background"})
Items["KeybindsList"]:MakeDraggable()
Instances:Create("UICorner", {
Parent = Items["KeybindsList"].Instance,
Name = "\0"
})
Items["Top"] = Instances:Create("Frame", {
Parent = Items["KeybindsList"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
Size = UDim2New(1, 12, 0, 40),
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(31, 31, 36)
}) Items["Top"]:AddToTheme({BackgroundColor3 = "Section Background 2"})
Items["Icon"] = Instances:Create("ImageLabel", {
Parent = Items["Top"].Instance,
Name = "\0",
ImageColor3 = FromRGB(255, 255, 255),
BorderColor3 = FromRGB(0, 0, 0),
Size = UDim2New(0, 21, 0, 20),
AnchorPoint = Vector2New(0, 0.5),
Image = "rbxassetid://81598136527047",
BackgroundTransparency = 1,
Position = UDim2New(0, 15, 0.5, 0),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
})
Instances:Create("UIGradient", {
Parent = Items["Icon"].Instance,
Name = "\0",
Color = RGBSequence{RGBSequenceKeypoint(0, FromRGB(131, 131, 131)), RGBSequenceKeypoint(1, FromRGB(255, 255, 255))}
}):AddToTheme({Color = function()
return RGBSequence{RGBSequenceKeypoint(0, Library.Theme.Accent), RGBSequenceKeypoint(1, Library.Theme.AccentGradient)}
end})
Items["Title"] = Instances:Create("TextLabel", {
Parent = Items["Top"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(248, 248, 248),
BorderColor3 = FromRGB(0, 0, 0),
Text = Title,
AutomaticSize = Enum.AutomaticSize.X,
AnchorPoint = Vector2New(0, 0.5),
Size = UDim2New(0, 0, 0, 15),
BackgroundTransparency = 1,
Position = UDim2New(0, 45, 0.5, -1),
BorderSizePixel = 0,
ZIndex = 2,
TextSize = 15,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["Title"]:AddToTheme({TextColor3 = "Text"})
Instances:Create("UICorner", {
Parent = Items["Top"].Instance,
Name = "\0"
})
Instances:Create("Frame", {
Parent = Items["Top"].Instance,
Name = "\0",
AnchorPoint = Vector2New(0, 1),
Position = UDim2New(0, 0, 1, 0),
BorderColor3 = FromRGB(0, 0, 0),
Size = UDim2New(0, 10, 0, 5),
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(31, 31, 36)
}):AddToTheme({BackgroundColor3 = "Section Background 2"})
Instances:Create("Frame", {
Parent = Items["Top"].Instance,
Name = "\0",
AnchorPoint = Vector2New(1, 1),
Position = UDim2New(1, 0, 1, 0),
BorderColor3 = FromRGB(0, 0, 0),
Size = UDim2New(0, 10, 0, 5),
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(31, 31, 36)
}):AddToTheme({BackgroundColor3 = "Section Background 2"})
Items["Content"] = Instances:Create("Frame", {
Parent = Items["KeybindsList"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
BackgroundTransparency = 1,
Position = UDim2New(0, 0, 0, 40),
Size = UDim2New(1, 12, 0, 0),
BorderSizePixel = 0,
AutomaticSize = Enum.AutomaticSize.Y,
BackgroundColor3 = FromRGB(255, 255, 255)
})
Instances:Create("UIListLayout", {
Parent = Items["Content"].Instance,
Name = "\0",
Padding = UDimNew(0, 4),
SortOrder = Enum.SortOrder.LayoutOrder
})
Instances:Create("UIPadding", {
Parent = Items["Content"].Instance,
Name = "\0",
PaddingTop = UDimNew(0, 8),
PaddingBottom = UDimNew(0, 8),
PaddingRight = UDimNew(0, 8),
PaddingLeft = UDimNew(0, 8)
})
Instances:Create("UIPadding", {
Parent = Items["KeybindsList"].Instance,
Name = "\0",
PaddingRight = UDimNew(0, 12)
})
end
function KeybindList:SetVisibility(Bool)
Items["KeybindsList"].Instance.Visible = false
end
function KeybindList:Add(Name, Key)
local NewKey = Instances:Create("TextButton", {
Parent = Items["Content"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(0, 0, 0),
BorderColor3 = FromRGB(0, 0, 0),
Text = "",
AutoButtonColor = false,
BackgroundTransparency = 1,
Size = UDim2New(1, 0, 0, 20),
BorderSizePixel = 0,
TextSize = 14,
BackgroundColor3 = FromRGB(255, 255, 255)
})
local NewKeyAccent = Instances:Create("Frame", {
Parent = NewKey.Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(0, 0.5),
BackgroundTransparency = 1,
Position = UDim2New(0, 0, 0.5, 0),
Size = UDim2New(0, 6, 0, 6),
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
})
Instances:Create("UIGradient",{
Parent = NewKeyAccent.Instance,
Name = "\0",
Rotation = -115,
Color = RGBSequence{RGBSequenceKeypoint(0, FromRGB(255, 255, 255)), RGBSequenceKeypoint(1, FromRGB(143, 143, 143))}
}):AddToTheme({Color = function()
return RGBSequence{RGBSequenceKeypoint(0, Library.Theme.Accent), RGBSequenceKeypoint(1, Library.Theme.AccentGradient)}
end})
Instances:Create("UICorner", {
Parent = NewKeyAccent.Instance,
Name = "\0"
})
local NewKeyText = Instances:Create("TextLabel", {
Parent = NewKey.Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(255, 255, 255),
TextTransparency = 0.30000001192092896,
Text = Name .. " ["..Key.."]",
Size = UDim2New(0, 0, 0, 15),
AnchorPoint = Vector2New(0, 0.5),
BorderSizePixel = 0,
BackgroundTransparency = 1,
Position = UDim2New(0, 0, 0.5, 0),
BorderColor3 = FromRGB(0, 0, 0),
AutomaticSize = Enum.AutomaticSize.X,
TextSize = 14,
BackgroundColor3 = FromRGB(255, 255, 255)
}) NewKeyText:AddToTheme({TextColor3 = "Text"})
function NewKey:Set(Name, Key)
NewKeyText.Instance.Text = Name .. " ["..Key.."]"
end
function NewKey:SetStatus(Bool)
if Bool then
NewKeyText:Tween(nil, {Position = UDim2New(0, 15, 0.5, 0), TextTransparency = 0})
NewKeyAccent:Tween(nil, {BackgroundTransparency = 0})
else
NewKeyText:Tween(nil, {Position = UDim2New(0, 0, 0.5, 0), TextTransparency = 0.3})
NewKeyAccent:Tween(nil, {BackgroundTransparency = 1})
end
end
return NewKey
end
return KeybindList
end
Library.Notification = function(self, Data)
local Items = { } do
Items["Notification"] = Instances:Create("Frame", {
Parent = Library.NotifHolder.Instance,
Name = "\0",
BackgroundTransparency = 0.3499999940395355,
BorderColor3 = FromRGB(0, 0, 0),
BorderSizePixel = 0,
AutomaticSize = Enum.AutomaticSize.XY,
BackgroundColor3 = FromRGB(27, 25, 29)
})
Items["Title"] = Instances:Create("TextLabel", {
Parent = Items["Notification"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(255, 255, 255),
BorderColor3 = FromRGB(0, 0, 0),
Text = Data.Title,
BackgroundTransparency = 1,
Size = UDim2New(0, 0, 0, 15),
BorderSizePixel = 0,
AutomaticSize = Enum.AutomaticSize.XY,
TextSize = 14,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["Title"]:AddToTheme({TextColor3 = "Text"})
Instances:Create("UIPadding", {
Parent = Items["Notification"].Instance,
Name = "\0",
PaddingTop = UDimNew(0, 8),
PaddingBottom = UDimNew(0, 8),
PaddingRight = UDimNew(0, 8),
PaddingLeft = UDimNew(0, 8)
})
Instances:Create("UICorner", {
Parent = Items["Notification"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 5)
})
Items["Description"] = Instances:Create("TextLabel", {
Parent = Items["Notification"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(255, 255, 255),
TextTransparency = 0.30000001192092896,
Text = Data.Description,
Size = UDim2New(0, 0, 0, 15),
BorderSizePixel = 0,
BackgroundTransparency = 1,
Position = UDim2New(0, 0, 0, 20),
BorderColor3 = FromRGB(0, 0, 0),
AutomaticSize = Enum.AutomaticSize.XY,
TextSize = 14,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["Description"]:AddToTheme({TextColor3 = "Text"})
Items["Accent"] = Instances:Create("Frame", {
Parent = Items["Notification"].Instance,
Name = "\0",
Position = UDim2New(0, 0, 0, Items["Description"].Instance.AbsoluteSize.Y + Items["Title"].Instance.AbsoluteSize.Y + 12),
BorderColor3 = FromRGB(0, 0, 0),
Size = UDim2New(0, 0, 0, 6),
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
})
Instances:Create("UICorner", {
Parent = Items["Accent"].Instance,
Name = "\0",
CornerRadius = UDimNew(1, 0)
})
Instances:Create("UIGradient", {
Parent = Items["Accent"].Instance,
Name = "\0",
Color = RGBSequence{RGBSequenceKeypoint(0, FromRGB(255, 255, 255)), RGBSequenceKeypoint(1, FromRGB(143, 143, 143))}
}):AddToTheme({Color = function()
return RGBSequence{RGBSequenceKeypoint(0, Library.Theme.Accent), RGBSequenceKeypoint(1, Library.Theme.AccentGradient)}
end})
Items["Icon"] = Instances:Create("ImageLabel", {
Parent = Items["Notification"].Instance,
Name = "\0",
ImageColor3 = FromRGB(255, 255, 255),
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(1, 0),
Image = "rbxassetid://"..Data.Icon,
BackgroundTransparency = 1,
Position = UDim2New(1, 0, 0, 0),
Size = UDim2New(0, 16, 0, 16),
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
})
if not Data.IconColor then
Instances:Create("UIGradient", {
Parent = Items["Icon"].Instance,
Name = "\0",
Rotation = -115,
Color = RGBSequence{RGBSequenceKeypoint(0, FromRGB(255, 255, 255)), RGBSequenceKeypoint(1, FromRGB(143, 143, 143))}
}):AddToTheme({Color = function()
return RGBSequence{RGBSequenceKeypoint(0, Library.Theme.Accent), RGBSequenceKeypoint(1, Library.Theme.AccentGradient)}
end})
else
Instances:Create("UIGradient", {
Parent = Items["Icon"].Instance,
Name = "\0",
Rotation = -115,
Color = RGBSequence{RGBSequenceKeypoint(0, Data.IconColor.Start), RGBSequenceKeypoint(1, Data.IconColor.End)}
})
end
end
local Size = Items["Notification"].Instance.AbsoluteSize
Items["Notification"].Instance.Size = UDim2New(0, 0, 0, 0)
for Index, Value in Items do
if Value.Instance:IsA("Frame") then
Value.Instance.BackgroundTransparency = 1
elseif Value.Instance:IsA("TextLabel") then
Value.Instance.TextTransparency = 1
elseif Value.Instance:IsA("ImageLabel") then
Value.Instance.ImageTransparency = 1
end
end
task.wait(0.2)
Items["Notification"].Instance.AutomaticSize = Enum.AutomaticSize.Y
Library:Thread(function()
for Index, Value in Items do
if Value.Instance:IsA("Frame") then
Value:Tween(TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out, 0, false, 0), {BackgroundTransparency = 0})
elseif Value.Instance:IsA("TextLabel") then
Value:Tween(TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out, 0, false, 0), {TextTransparency = 0})
elseif Value.Instance:IsA("ImageLabel") then
Value:Tween(TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out, 0, false, 0), {ImageTransparency = 0})
end
end
Items["Notification"]:Tween(TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out, 0, false, 0), {Size = UDim2New(0, Size.X, 0, Size.Y)})
Items["Accent"]:Tween(TweenInfo.new(Data.Duration, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut), {Size = UDim2New(1, 0, 0, 6)})
task.delay(Data.Duration + 0.15, function()
for Index, Value in Items do
if Value.Instance:IsA("Frame") then
Value:Tween(nil, {BackgroundTransparency = 1})
elseif Value.Instance:IsA("TextLabel") then
Value:Tween(nil, {TextTransparency = 1})
elseif Value.Instance:IsA("ImageLabel") then
Value:Tween(nil, {ImageTransparency = 1})
end
end
Items["Notification"]:Tween(TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out, 0, false, 0), {Size = UDim2New(0, 0, 0, 0)})
task.wait(0.5)
Items["Notification"]:Clean()
end)
end)
end
Library.Window = function(self, Data)
Data = Data or { }
local Window = {
Name = Data.Name or Data.name or "Window",
SubName = Data.SubName or Data.subname or "Fine-tuning for sure wins",
Logo = Data.Logo or Data.logo or "1l20959262762131",
Pages = { },
Items = { },
IsOpen = false,
CurrentAlignment = "LeftTabs"
}
local Items = { } do
Items["MainFrame"] = Instances:Create("Frame", {
Parent = Library.Holder.Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(0.5, 0.5),
BackgroundTransparency = 0.12,
Position = UDim2New(0.5519999861717224, 0, 0.5, 0),
Size = UDim2New(0, 677, 0, 644),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(27, 25, 29)
}) Items["MainFrame"]:AddToTheme({BackgroundColor3 = "Background"})
if IsMobile then
Instances:Create("UIScale", {
Parent = Items["MainFrame"].Instance,
Name = "\0",
Scale = 0.699999988079071
})
end
Items["MainFrame"]:MakeResizeable(Vector2New(Items["MainFrame"].Instance.AbsoluteSize.X, Items["MainFrame"].Instance.AbsoluteSize.Y), Vector2New(9999, 9999), OriginalSizes)
Library:MakeBlurred(Items["MainFrame"], Window)
Items["LeftTabs"] = Instances:Create("Frame", {
Parent = Items["MainFrame"].Instance,
Name = "\0",
Visible = true,
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(1, 0),
BackgroundTransparency = 0.15,
Size = UDim2New(0, 225, 1, 0),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(27, 25, 29)
}) Items["LeftTabs"]:AddToTheme({BackgroundColor3 = "Background"})
Library:MakeBlurred(Items["LeftTabs"], Window)
local Gui = Items["MainFrame"].Instance
local Dragging = false
local DragStart
local StartPosition
local Set = function(Input)
local DragDelta = Input.Position - DragStart
Items["MainFrame"]:Tween(TweenInfo.new(0.16, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Position = UDim2New(StartPosition.X.Scale, StartPosition.X.Offset + DragDelta.X, StartPosition.Y.Scale, StartPosition.Y.Offset + DragDelta.Y)})
end
Items["MainFrame"]:Connect("InputBegan", function(Input)
if Input.UserInputType == Enum.UserInputType.MouseButton1 or Input.UserInputType == Enum.UserInputType.Touch then
Dragging = true
DragStart = Input.Position
StartPosition = Gui.Position
Input.Changed:Connect(function()
if Input.UserInputState == Enum.UserInputState.End then
Dragging = false
end
end)
end
end)
Items["LeftTabs"]:Connect("InputBegan", function(Input)
if Input.UserInputType == Enum.UserInputType.MouseButton1 or Input.UserInputType == Enum.UserInputType.Touch then
Dragging = true
DragStart = Input.Position
StartPosition = Gui.Position
Input.Changed:Connect(function()
if Input.UserInputState == Enum.UserInputState.End then
Dragging = false
end
end)
end
end)
Library:Connect(UserInputService.InputChanged, function(Input)
if Input.UserInputType == Enum.UserInputType.MouseMovement or Input.UserInputType == Enum.UserInputType.Touch then
if Dragging then
Set(Input)
end
end
end)
if IsMobile then
Items["FloatingButton"] = Instances:Create("TextButton", {
Parent = Library.Holder.Instance,
Text = "",
AutoButtonColor = false,
Name = "\0",
Position = UDim2New(0.5, 0, 0, 20),
AnchorPoint = Vector2New(0.5, 0),
Visible = true,
BorderColor3 = FromRGB(0, 0, 0),
Size = UDim2New(0, 50, 0, 50),
BorderSizePixel = 0,
BackgroundTransparency = 0.5,
ZIndex = 127,
BackgroundColor3 = Library.Theme.Background
}) Items["FloatingButton"]:AddToTheme({BackgroundColor3 = "Background"})
local Gui = Items["FloatingButton"].Instance
local Dragging = false
local DragStart
local StartPosition
local Set = function(Input)
local DragDelta = Input.Position - DragStart
Items["FloatingButton"]:Tween(TweenInfo.new(0.16, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Position = UDim2New(StartPosition.X.Scale, StartPosition.X.Offset + DragDelta.X, StartPosition.Y.Scale, StartPosition.Y.Offset + DragDelta.Y)})
end
Items["FloatingButton"]:Connect("InputBegan", function(Input)
if Input.UserInputType == Enum.UserInputType.MouseButton1 or Input.UserInputType == Enum.UserInputType.Touch then
Dragging = true
DragStart = Input.Position
StartPosition = Gui.Position
Input.Changed:Connect(function()
if Input.UserInputState == Enum.UserInputState.End then
Dragging = false
end
end)
end
end)
Library:Connect(UserInputService.InputChanged, function(Input)
if Input.UserInputType == Enum.UserInputType.MouseMovement or Input.UserInputType == Enum.UserInputType.Touch then
if Dragging then
Set(Input)
end
end
end)
Items["FloatingLogo"] = Instances:Create("ImageLabel", {
Parent = Items["FloatingButton"].Instance,
BorderColor3 = FromRGB(0, 0, 0),
Name = "\0",
Image = "rbxassetid://" .. Window.Logo,
BackgroundTransparency = 1,
AnchorPoint = Vector2New(0.5, 0.5),
Position = UDim2New(0.5, 0, 0.5, 0),
ZIndex = 127,
Size = UDim2New(1, -25, 1, -25),
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
})
Instances:Create("UICorner", {
Parent = Items["FloatingButton"].Instance,
CornerRadius = UDimNew(1, 0)
})
Instances:Create("UIGradient", {
Parent = Items["FloatingLogo"].Instance,
Name = "\0",
Enabled = true,
Rotation = -115,
Color = RGBSequence{RGBSequenceKeypoint(0, FromRGB(255, 255, 255)), RGBSequenceKeypoint(1, FromRGB(143, 143, 143))}
}):AddToTheme({Color = function()
return RGBSequence{RGBSequenceKeypoint(0, Library.Theme.Accent), RGBSequenceKeypoint(1, Library.Theme.AccentGradient)}
end})
end
Items["PagePlaceholder"] = Instances:Create("Frame", {
Parent = Items["MainFrame"].Instance,
Name = "\0",
Visible = true,
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(0, 0),
BackgroundTransparency = 1,
Size = UDim2New(0, 0, 0, 0),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
})
Instances:Create("UIListLayout", {
Parent = Items["LeftTabs"].Instance,
Name = "\0",
Padding = UDimNew(0, 12),
SortOrder = Enum.SortOrder.LayoutOrder
})
Instances:Create("UIPadding", {
Parent = Items["LeftTabs"].Instance,
Name = "\0",
PaddingTop = UDimNew(0, 15),
PaddingBottom = UDimNew(0, 15),
PaddingRight = UDimNew(0, 12),
PaddingLeft = UDimNew(0, 12)
})
Items["Logo"] = Instances:Create("ImageLabel", {
Parent = Items["MainFrame"].Instance,
Name = "\0",
ImageColor3 = FromRGB(255, 255, 255),
ScaleType = Enum.ScaleType.Fit,
BorderColor3 = FromRGB(0, 0, 0),
Size = UDim2New(0, 35, 0, 35),
Image = "rbxassetid://"..Window.Logo,
BackgroundTransparency = 1,
Position = UDim2New(0, 12, 0, 12),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
})
Instances:Create("UIGradient", {
Parent = Items["Logo"].Instance,
Name = "\0",
Enabled = true,
Rotation = -115,
Color = RGBSequence{RGBSequenceKeypoint(0, FromRGB(255, 255, 255)), RGBSequenceKeypoint(1, FromRGB(143, 143, 143))}
}):AddToTheme({Color = function()
return RGBSequence{RGBSequenceKeypoint(0, Library.Theme.Accent), RGBSequenceKeypoint(1, Library.Theme.AccentGradient)}
end})
Items["Title"] = Instances:Create("TextLabel", {
Parent = Items["MainFrame"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(240, 240, 240),
BorderColor3 = FromRGB(0, 0, 0),
Text = Window.Name,
AutomaticSize = Enum.AutomaticSize.X,
Size = UDim2New(0, 0, 0, 15),
BackgroundTransparency = 1,
Position = UDim2New(0, 52, 0, 13),
BorderSizePixel = 0,
ZIndex = 2,
TextSize = 16,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["Title"]:AddToTheme({TextColor3 = "Text"})
Items["SubTitle"] = Instances:Create("TextLabel", {
Parent = Items["MainFrame"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(240, 240, 240),
TextTransparency = 0.4000000059604645,
Text = Window.SubName,
AutomaticSize = Enum.AutomaticSize.X,
Size = UDim2New(0, 0, 0, 15),
BorderSizePixel = 0,
BackgroundTransparency = 1,
Position = UDim2New(0, 52, 0, 30),
BorderColor3 = FromRGB(0, 0, 0),
ZIndex = 2,
TextSize = 14,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["SubTitle"]:AddToTheme({TextColor3 = "Text"})
Items["Content"] = Instances:Create("Frame", {
Parent = Items["MainFrame"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
BackgroundTransparency = 0.75,
Position = UDim2New(0, 0, 0, 55),
Size = UDim2New(1, 0, 1, -55),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(27, 25, 29)
}) Items["Content"]:AddToTheme({BackgroundColor3 = "Background"})
Items["CloseButton"] = Instances:Create("TextButton", {
Parent = Items["MainFrame"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(0, 0, 0),
BorderColor3 = FromRGB(0, 0, 0),
Text = "",
AutoButtonColor = false,
AnchorPoint = Vector2New(1, 0),
BorderSizePixel = 0,
BackgroundTransparency = 0.20000000298023224,
Position = UDim2New(1, -14, 0, 11),
Size = UDim2New(0, 32, 0, 32),
ZIndex = 2,
TextSize = 14,
BackgroundColor3 = FromRGB(27, 25, 29)
}) Items["CloseButton"]:AddToTheme({BackgroundColor3 = "Element"})
Instances:Create("UICorner", {
Parent = Items["CloseButton"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 7)
})
Items["CloseIcon"] = Instances:Create("ImageLabel", {
Parent = Items["CloseButton"].Instance,
Name = "\0",
ImageColor3 = FromRGB(240, 240, 240),
ImageTransparency = 0.30000001192092896,
BorderColor3 = FromRGB(0, 0, 0),
Size = UDim2New(0, 11, 0, 11),
AnchorPoint = Vector2New(0.5, 0.5),
Image = "rbxassetid://130510492706892",
BackgroundTransparency = 1,
Position = UDim2New(0.5, 0, 0.5, 0),
ZIndex = 3,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["CloseIcon"]:AddToTheme({ImageColor3 = "Text"})
Items["CloseButton"]:Connect("MouseButton1Down", function()
Library:Unload()
end)
Items["CloseIconAccent"] = Instances:Create("Frame", {
Parent = Items["CloseButton"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(0.5, 0.5),
BorderSizePixel = 0,
Position = UDim2New(0.5, 0, 0.5, 0),
Size = UDim2New(0, 0, 0, 0),
ZIndex = 2,
BackgroundTransparency = 1,
BackgroundColor3 = FromRGB(255, 255, 255)
})
Instances:Create("UICorner", {
Parent = Items["CloseIconAccent"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 7)
})
Instances:Create("UICorner", {
Parent = Items["MainFrame"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 4)
})
Instances:Create("UICorner", {
Parent = Items["LeftTabs"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 4)
})
do
Items["LeftBottomPixels"] = Instances:Create("Frame", {
Parent = Items["MainFrame"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(1, 1),
BackgroundTransparency = 1,
Position = UDim2New(0, 1, 1, 0),
Size = UDim2New(0, 5, 0, 5),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
})
Items["___1"] = Instances:Create("Frame", {
Parent = Items["LeftBottomPixels"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(0, 1),
BackgroundTransparency = 0.11999999731779099,
Position = UDim2New(0, 2, 1, 0),
Size = UDim2New(0, 1, 0, 1),
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["___1"]:AddToTheme({BackgroundColor3 = "Background"})
Items["___2"] = Instances:Create("Frame", {
Parent = Items["LeftBottomPixels"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(0, 1),
BackgroundTransparency = 0.11999999731779099,
Position = UDim2New(0, 4, 1, 0),
Size = UDim2New(0, 1, 0, 1),
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["___2"]:AddToTheme({BackgroundColor3 = "Background"})
Items["___3"] = Instances:Create("Frame", {
Parent = Items["LeftBottomPixels"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(0, 1),
BackgroundTransparency = 0.11999999731779099,
Position = UDim2New(0, 3, 1, 0),
Size = UDim2New(0, 1, 0, 1),
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["___3"]:AddToTheme({BackgroundColor3 = "Background"})
Items["___4"] = Instances:Create("Frame", {
Parent = Items["LeftBottomPixels"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(0, 1),
BackgroundTransparency = 0.11999999731779099,
Position = UDim2New(0, 3, 1, -1),
Size = UDim2New(0, 1, 0, 1),
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["___4"]:AddToTheme({BackgroundColor3 = "Background"})
Items["___5"] = Instances:Create("Frame", {
Parent = Items["LeftBottomPixels"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(0, 1),
BackgroundTransparency = 0.11999999731779099,
Position = UDim2New(0, 4, 1, -1),
Size = UDim2New(0, 1, 0, 1),
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["___5"]:AddToTheme({BackgroundColor3 = "Background"})
Items["___6"] = Instances:Create("Frame", {
Parent = Items["LeftBottomPixels"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(0, 1),
BackgroundTransparency = 0.11999999731779099,
Position = UDim2New(0, 5, 1, 0),
Size = UDim2New(0, 1, 0, 1),
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["___6"]:AddToTheme({BackgroundColor3 = "Background"})
Items["LeftTopPixels"] = Instances:Create("Frame", {
Parent = Items["MainFrame"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(1, 0),
BackgroundTransparency = 1,
Position = UDim2New(0, 1, 0, 0),
Size = UDim2New(0, 5, 0, 5),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
})
Items["___7"] = Instances:Create("Frame", {
Parent = Items["LeftTopPixels"].Instance,
Name = "\0",
Size = UDim2New(0, 1, 0, 1),
Position = UDim2New(0, 2, 0, 0),
BorderColor3 = FromRGB(0, 0, 0),
ZIndex = 2,
BackgroundTransparency = 0.12,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["___7"]:AddToTheme({BackgroundColor3 = "Background"})
Items["___8"]= Instances:Create("Frame", {
Parent = Items["LeftTopPixels"].Instance,
Name = "\0",
Size = UDim2New(0, 1, 0, 1),
BackgroundTransparency = 0.12,
Position = UDim2New(0, 3, 0, 0),
BorderColor3 = FromRGB(0, 0, 0),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["___8"]:AddToTheme({BackgroundColor3 = "Background"})
Items["___9"]= Instances:Create("Frame", {
Parent = Items["LeftTopPixels"].Instance,
Name = "\0",
Size = UDim2New(0, 1, 0, 1),
Position = UDim2New(0, 4, 0, 0),
BackgroundTransparency = 0.12,
BorderColor3 = FromRGB(0, 0, 0),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["___9"]:AddToTheme({BackgroundColor3 = "Background"})
Items["___10"] = Instances:Create("Frame", {
Parent = Items["LeftTopPixels"].Instance,
Name = "\0",
Size = UDim2New(0, 1, 0, 1),
Position = UDim2New(0, 5, 0, 0),
BorderColor3 = FromRGB(0, 0, 0),
BackgroundTransparency = 0.12,
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["___10"]:AddToTheme({BackgroundColor3 = "Background"})
Items["___11"]=Instances:Create("Frame", {
Parent = Items["LeftTopPixels"].Instance,
Name = "\0",
Size = UDim2New(0, 1, 0, 1),
Position = UDim2New(0, 3, 0, 1),
BorderColor3 = FromRGB(0, 0, 0),
ZIndex = 2,
BackgroundTransparency = 0.12,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["___11"]:AddToTheme({BackgroundColor3 = "Background"})
Items["___12"] = Instances:Create("Frame", {
Parent = Items["LeftTopPixels"].Instance,
Name = "\0",
Size = UDim2New(0, 1, 0, 1),
Position = UDim2New(0, 4, 0, 1),
BorderColor3 = FromRGB(0, 0, 0),
ZIndex = 2,
BackgroundTransparency = 0.12,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["___12"]:AddToTheme({BackgroundColor3 = "Background"})
end
function Window:SetTransparency()
Items["MainFrame"].Instance.BackgroundTransparency = Library.Flags["BackgroundTransparency"]
Items["LeftTabs"].Instance.BackgroundTransparency = Library.Flags["BackgroundTransparency"]
if IsMobile then
Items["FloatingButton"].Instance.BackgroundTransparency = Library.Flags["BackgroundTransparency"]
end
for _, Value in Items do
if _:find("___") then
Value.Instance.BackgroundTransparency = tonumber(Library.Flags["BackgroundTransparency"])
end
end
end
Instances:Create("UIGradient", {
Parent = Items["CloseIconAccent"].Instance,
Name = "\0",
Color = RGBSequence{RGBSequenceKeypoint(0, FromRGB(255, 255, 255)), RGBSequenceKeypoint(1, FromRGB(143, 143, 143))},
Rotation = -115
}):AddToTheme({Color = function()
return RGBSequence{RGBSequenceKeypoint(0, Library.Theme.Accent), RGBSequenceKeypoint(1, Library.Theme.AccentGradient)}
end})
Items["SettingsButton"] = Instances:Create("TextButton", {
Parent = Items["MainFrame"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(0, 0, 0),
BorderColor3 = FromRGB(0, 0, 0),
Text = "",
AutoButtonColor = false,
AnchorPoint = Vector2New(1, 0),
BorderSizePixel = 0,
BackgroundTransparency = 0.20000000298023224,
Position = UDim2New(1, -56, 0, 11),
Size = UDim2New(0, 32, 0, 32),
ZIndex = 2,
TextSize = 14,
BackgroundColor3 = FromRGB(27, 25, 29)
}) Items["SettingsButton"]:AddToTheme({BackgroundColor3 = "Element"})
Instances:Create("UICorner", {
Parent = Items["SettingsButton"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 7)
})
Items["SettingsIcon"] = Instances:Create("ImageLabel", {
Parent = Items["SettingsButton"].Instance,
Name = "\0",
ImageColor3 = FromRGB(240, 240, 240),
ImageTransparency = 0.30000001192092896,
BorderColor3 = FromRGB(0, 0, 0),
Size = UDim2New(0, 15, 0, 14),
AnchorPoint = Vector2New(0.5, 0.5),
Image = "rbxassetid://122669828593160",
BackgroundTransparency = 1,
Position = UDim2New(0.5, 0, 0.5, 0),
ZIndex = 3,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["SettingsIcon"]:AddToTheme({ImageColor3 = "Text"})
Items["SettingsIconAccent"] = Instances:Create("Frame", {
Parent = Items["SettingsButton"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(0.5, 0.5),
BorderSizePixel = 0,
Position = UDim2New(0.5, 0, 0.5, 0),
Size = UDim2New(0, 0, 0, 0),
ZIndex = 2,
BackgroundTransparency = 1,
BackgroundColor3 = FromRGB(255, 255, 255)
})
Instances:Create("UICorner", {
Parent = Items["SettingsIconAccent"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 7)
})
Instances:Create("UIGradient", {
Parent = Items["SettingsIconAccent"].Instance,
Name = "\0",
Color = RGBSequence{RGBSequenceKeypoint(0, FromRGB(255, 255, 255)), RGBSequenceKeypoint(1, FromRGB(143, 143, 143))},
Rotation = -115
}):AddToTheme({Color = function()
return RGBSequence{RGBSequenceKeypoint(0, Library.Theme.Accent), RGBSequenceKeypoint(1, Library.Theme.AccentGradient)}
end})
Items["SettingsButton"]:OnHover(function()
Items["SettingsIconAccent"]:Tween(TweenInfo.new(Library.Tween.Time + 0.15, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {
Size = UDim2New(1, 0, 1, 0),
BackgroundTransparency = 0
})
end)
Items["SettingsButton"]:OnHoverLeave(function()
Items["SettingsIconAccent"]:Tween(TweenInfo.new(Library.Tween.Time + 0.15, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {
Size = UDim2New(0, 0, 0, 0),
BackgroundTransparency = 1
})
end)
Items["CloseButton"]:OnHover(function()
Items["CloseIconAccent"]:Tween(TweenInfo.new(Library.Tween.Time + 0.15, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {
Size = UDim2New(1, 0, 1, 0),
BackgroundTransparency = 0
})
end)
Items["CloseButton"]:OnHoverLeave(function()
Items["CloseIconAccent"]:Tween(TweenInfo.new(Library.Tween.Time + 0.15, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {
Size = UDim2New(0, 0, 0, 0),
BackgroundTransparency = 1
})
end)
local Settings = {
IsOpen = false,
Name = ""..#Library.Sections,
Items = { },
IsSettings = true,
Elements = { }
}
local SettingsItems = { }
do
SettingsItems["Settings"] = Instances:Create("Frame", {
Parent = Library.UnusedHolder.Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(0.5, 0.5),
BorderSizePixel = 0,
Position = UDim2New(0.8949604630470276, 0, 0.2945185601711273, 0),
Size = UDim2New(0, 245, 0, 159),
ZIndex = 2,
AutomaticSize = Enum.AutomaticSize.Y,
BackgroundColor3 = FromRGB(21, 21, 24)
}) SettingsItems["Settings"]:AddToTheme({BackgroundColor3 = "Section Background 2"})
Instances:Create("UICorner", {
Parent = SettingsItems["Settings"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 6)
})
SettingsItems["CloseButton"] = Instances:Create("TextButton", {
Parent = SettingsItems["Settings"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(0, 0, 0),
BorderColor3 = FromRGB(0, 0, 0),
Text = "",
AutoButtonColor = false,
AnchorPoint = Vector2New(0, 1),
BorderSizePixel = 0,
Position = UDim2New(0, 8, 1, -8),
Size = UDim2New(1, -16, 0, 32),
ZIndex = 2,
TextSize = 14,
BackgroundColor3 = FromRGB(27, 26, 29)
}) SettingsItems["CloseButton"]:AddToTheme({BackgroundColor3 = "Element"})
Instances:Create("UICorner", {
Parent = SettingsItems["CloseButton"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 4)
})
SettingsItems["Text"] = Instances:Create("TextLabel", {
Parent = SettingsItems["CloseButton"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(240, 240, 240),
TextTransparency = 0.30000001192092896,
Text = "Close",
AutomaticSize = Enum.AutomaticSize.X,
Size = UDim2New(0, 0, 0, 15),
AnchorPoint = Vector2New(0.5, 0.5),
BorderSizePixel = 0,
BackgroundTransparency = 1,
Position = UDim2New(0.5, 0, 0.5, 0),
BorderColor3 = FromRGB(0, 0, 0),
ZIndex = 2,
TextSize = 14,
BackgroundColor3 = FromRGB(255, 255, 255)
})
SettingsItems["Content"] = Instances:Create("ScrollingFrame", {
Parent = SettingsItems["Settings"].Instance,
Name = "\0",
AutomaticCanvasSize = Enum.AutomaticSize.Y,
Selectable = false,
Size = UDim2New(1, -8, 1, -46),
Position = UDim2New(0, 4, 0, 4),
ScrollBarThickness = 2,
BackgroundColor3 = FromRGB(255, 255, 255),
BackgroundTransparency = 1,
BorderColor3 = FromRGB(0, 0, 0),
BorderSizePixel = 0,
CanvasSize = UDim2New(0, 0, 0, 0)
}) SettingsItems["Content"]:AddToTheme({ScrollBarImageColor3 = "Accent"})
Instances:Create("UIListLayout", {
Parent = SettingsItems["Content"].Instance,
Name = "\0",
Padding = UDimNew(0, 4),
SortOrder = Enum.SortOrder.LayoutOrder
})
Instances:Create("UIPadding", {
Parent = SettingsItems["Content"].Instance,
Name = "\0",
PaddingTop = UDimNew(0, 4),
PaddingBottom = UDimNew(0, 4),
PaddingRight = UDimNew(0, 4),
PaddingLeft = UDimNew(0, 4)
})
SettingsItems["Accent"] = Instances:Create("Frame", {
Parent = SettingsItems["CloseButton"].Instance,
Name = "\0",
Size = UDim2New(0, 0, 0, 0),
BorderColor3 = FromRGB(0, 0, 0),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundTransparency = 1,
BackgroundColor3 = FromRGB(255, 255, 255),
AnchorPoint = Vector2New(0.5, 0.5),
Position = UDim2New(0.5, 0, 0.5, 0)
}) --SettingsItems["Accent"]:AddToTheme({BackgroundColor3 = "Accent"})
SettingsItems["Gradient"] = Instances:Create("UIGradient", {
Parent = SettingsItems["Accent"].Instance,
Name = "\0",
Enabled = true,
Rotation = -115,
Color = RGBSequence{RGBSequenceKeypoint(0, FromRGB(255, 255, 255)), RGBSequenceKeypoint(1, FromRGB(143, 143, 143))}
}) SettingsItems["Gradient"]:AddToTheme({Color = function()
return RGBSequence{RGBSequenceKeypoint(0, Library.Theme.Accent), RGBSequenceKeypoint(1, Library.Theme.AccentGradient)}
end})
Instances:Create("UICorner", {
Parent = SettingsItems["Accent"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 4)
})
Instances:Create("UICorner", {
Parent = SettingsItems["CloseButton"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 4)
})
SettingsItems["CloseButton"]:OnHover(function()
SettingsItems["Accent"]:Tween(TweenInfo.new(Library.Tween.Time + 0.15, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {Size = UDim2New(1, 0, 1, 0), BackgroundTransparency = 0})
end)
SettingsItems["CloseButton"]:OnHoverLeave(function()
SettingsItems["Accent"]:Tween(TweenInfo.new(Library.Tween.Time + 0.15, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {Size = UDim2New(0, 0, 0, 0), BackgroundTransparency = 1})
end)
local RenderStepped
local Debounce = false
function Settings:SetOpen(Bool)
if Debounce then
return
end
Settings.IsOpen = Bool
Debounce = true
if Settings.IsOpen then
for Index, Value in Settings.Elements do
Value:RefreshPosition(true)
task.wait(0.03)
end
SettingsItems["Settings"].Instance.Visible = true
SettingsItems["Settings"].Instance.Parent = Library.Holder.Instance
RenderStepped = RunService.RenderStepped:Connect(function()
SettingsItems["Settings"].Instance.Position = UDim2New(0, Items["SettingsIcon"].Instance.AbsolutePosition.X, 0, Items["SettingsIcon"].Instance.AbsolutePosition.Y + Items["SettingsButton"].Instance.AbsoluteSize.Y + 108)
SettingsItems["Settings"].Instance.Size = UDim2New(0, 325, 0, 230)
end)
for Index, Value in Library.OpenFrames do
if Value ~= Settings then
Value:SetOpen(false)
end
end
Library.OpenFrames[Settings] = Settings
else
for Index, Value in Settings.Elements do
Value:RefreshPosition(false)
end
if Library.OpenFrames[Settings] then
Library.OpenFrames[Settings] = nil
end
if RenderStepped then
RenderStepped:Disconnect()
RenderStepped = nil
end
end
local Descendants = SettingsItems["Settings"].Instance:GetDescendants()
TableInsert(Descendants, SettingsItems["Settings"].Instance)
local NewTween
for Index, Value in Descendants do
local TransparencyProperty = Tween:GetProperty(Value)
if not TransparencyProperty then
continue
end
if not Value.ClassName:find("UI") then
Value.ZIndex = Settings.IsOpen and 7 or 1
SettingsItems["Text"].Instance.ZIndex = 8
end
if type(TransparencyProperty) == "table" then
for _, Property in TransparencyProperty do
NewTween = Tween:FadeItem(Value, Property, Bool, Library.FadeSpeed)
end
else
NewTween = Tween:FadeItem(Value, TransparencyProperty, Bool, Library.FadeSpeed)
end
end
NewTween.Tween.Completed:Connect(function()
Debounce = false
SettingsItems["Settings"].Instance.Visible = Settings.IsOpen
task.wait(0.2)
SettingsItems["Settings"].Instance.Parent = not Settings.IsOpen and Library.UnusedHolder.Instance or Library.Holder.Instance
end)
end
SettingsItems["CloseButton"]:Connect("MouseButton1Down", function()
Settings:SetOpen(false)
end)
Items["SettingsButton"]:Connect("InputBegan", function(Input)
if Input.UserInputType == Enum.UserInputType.MouseButton1 or Input.UserInputType == Enum.UserInputType.Touch then
Settings:SetOpen(not Settings.IsOpen)
end
end)
Settings.Items = SettingsItems
setmetatable(Settings, Library.Sections)
end
Settings:Label("First gradient color"):Colorpicker({
Flag = "AccentColor",
Default = Library.Theme.Accent,
Callback = function(Color)
Library.Theme.Accent = Color
Library:ChangeTheme("Accent", Color)
end
})
Settings:Label("Second gradient color"):Colorpicker({
Flag = "AccentGradientColor",
Default = Library.Theme.AccentGradient,
Callback = function(Color)
Library.Theme.AccentGradient = Color
Library:ChangeTheme("AccentGradient", Color)
end
})
Settings:Dropdown({
Name = "Font weight",
Flag = "FontStyle",
Default = "SemiBold",
Items = {"Light", "Regular", "SemiBold"},
Callback = function(Value)
local FontData = Library.Fonts[Value]
if FontData then
Library.Font = FontData
Library:UpdateText()
end
end
})
Settings:Slider({
Name = "Background Transparency",
Default = 0.12,
Decimals = 0.01,
Max = 1,
Min = 0,
Suffix = "%",
Flag = "BackgroundTransparency",
Callback = function(Value)
Window:SetTransparency(Value)
end
})
Settings:Keybind({
Name = "Menu Keybind",
Flag = "MenuBind",
Default = Enum.KeyCode.Z,
Callback = function(Value)
Window:SetOpen(Value)
end
})
Window.Items = Items
end
local Debounce = false
function Window:SetCenter()
local CenterPosition = Items["MainFrame"].Instance.AbsolutePosition
task.wait()
Items["MainFrame"].Instance.AnchorPoint = Vector2New(0, 0)
Items["MainFrame"].Instance.Position = UDim2New(0, CenterPosition.X, 0, CenterPosition.Y)
end
function Window:SetOpen(Bool)
if Debounce then
return
end
Window.IsOpen = Bool
Debounce = true
if Window.IsOpen then
Items["MainFrame"].Instance.Visible = true
end
local Descendants = Items["MainFrame"].Instance:GetDescendants()
TableInsert(Descendants, Items["MainFrame"].Instance)
local NewTween
for Index, Value in Descendants do
local TransparencyProperty = Tween:GetProperty(Value)
if not TransparencyProperty then
continue
end
if type(TransparencyProperty) == "table" then
for _, Property in TransparencyProperty do
NewTween = Tween:FadeItem(Value, Property, Bool, Library.FadeSpeed)
end
else
NewTween = Tween:FadeItem(Value, TransparencyProperty, Bool, Library.FadeSpeed)
end
end
NewTween.Tween.Completed:Connect(function()
Debounce = false
Items["MainFrame"].Instance.Visible = Window.IsOpen
end)
end
if IsMobile then
Items["FloatingButton"]:Connect("InputBegan", function(Input)
if Input.UserInputType == Enum.UserInputType.MouseButton1 or Input.UserInputType == Enum.UserInputType.Touch then
Window:SetOpen(not Window.IsOpen)
end
end)
end
--[[
function Window:GetClosestFrame(Position, Instances)
local ClosestRadius = math.huge
local ClosestFrame
local String = {"Items.LeftTabs", "Items.RightTabs", "Items.BottomTabs", "Items.TopTabs"}
for Index, Value in (Instances or {Items.LeftTabs.Instance, Items.RightTabs.Instance, Items.BottomTabs.Instance, Items.TopTabs.Instance}) do
local Magnitude = (Vector2New(Value.AbsolutePosition.X, Value.AbsolutePosition.Y) - Position).Magnitude
if Magnitude < ClosestRadius then
ClosestFrame = String[Index]:gsub("Items.", "")
ClosestRadius = Magnitude
end
end
return ClosestFrame
end
function Window:UpdateTabs(CurrentAlignment)
if CurrentAlignment == "TopTabs" or CurrentAlignment == "BottomTabs" then
for Index, Value in Window.Pages do
Value.Items.Inactive.Instance.Parent = Items[CurrentAlignment].Instance
Value.Items.Inactive.Instance.Size = UDim2New(0, 70, 0, 60)
Value.Items.Text.Instance.Position = UDim2New(0.5, 0, 1, -2)
Value.Items.Text.Instance.AnchorPoint = Vector2New(0.5, 1)
Value.Items.Icon.Instance.AnchorPoint = Vector2New(0.5, 0.5)
Value.Items.Gradient.Instance.Rotation = -90
if Value.Active then
Value.Items.Icon.Instance.Size = UDim2New(0, 32, 0, 32)
Value.Items.Icon.Instance.Position = UDim2New(0.5, 0, 0.5, 0)
Value.Items.Text.Instance.TextTransparency = 1
else
Value.Items.Icon.Instance.Size = UDim2New(0, 24, 0, 24)
Value.Items.Icon.Instance.Position = UDim2New(0.5, 0, 0.5, -8)
Value.Items.Text.Instance.TextTransparency = 0
end
end
elseif CurrentAlignment == "LeftTabs" or CurrentAlignment == "RightTabs" then
for Index, Value in Window.Pages do
Value.Items.Inactive.Instance.Parent = Items[CurrentAlignment].Instance
Value.Items.Inactive.Instance.Size = UDim2New(0, 200, 0, 40)
Value.Items.Text.Instance.Position = UDim2New(45, 0, 0.5, 0)
Value.Items.Text.Instance.AnchorPoint = Vector2New(0, 0.5)
Value.Items.Icon.Instance.AnchorPoint = Vector2New(0, 0.5)
Value.Items.Icon.Instance.Position = UDim2New(16, 0, 0.5, 0)
Value.Items.Icon.Instance.Size = UDim2New(0, 18, 0, 18)
Value.Items.Gradient.Instance.Rotation = 0
end
end
end
function Window:UpdateFrameSide(OldFrame, NewFrame)
OldFrame.Instance.Visible = false
NewFrame.Instance.Visible = true
Window:UpdateTabs(Window.CurrentAlignment)
end
function Window:UpdateHighlight(CurrentFrame, Bool)
if Bool then
CurrentFrame.Instance.Visible = false
Items["PagePlaceholder"].Instance.Visible = true
else
CurrentFrame.Instance.Visible = true
Items["PagePlaceholder"].Instance.Visible = false
end
end
for Index, Value in {"Left", "Top", "Bottom", "Right"} do
local TabDragging = false
local TabItem = Items[Value.."Tabs"]
local SelectedParent
TabItem:Connect("InputBegan", function(Input)
if Input.UserInputType == Enum.UserInputType.MouseButton1 then
TabItem.Instance.Parent = Library.Holder.Instance
Window:UpdateHighlight(TabItem, true)
Items["PagePlaceholder"]:Tween(nil, {BackgroundTransparency = 0.3})
TabDragging = true
end
end)
TabItem:Connect("InputEnded", function(Input)
if Input.UserInputType == Enum.UserInputType.MouseButton1 then
TabDragging = false
if SelectedParent then
Items["PagePlaceholder"]:Tween(nil, {BackgroundTransparency = 1})
Window:UpdateHighlight(TabItem, false)
Window:UpdateFrameSide(TabItem, Items[SelectedParent])
Window.CurrentAlignment = SelectedParent
end
end
end)
Library:Connect(UserInputService.InputChanged, function(Input)
if Input.UserInputType == Enum.UserInputType.MouseMovement and TabDragging then
SelectedParent = Window:GetClosestFrame(Vector2New(Input.Position.X, Input.Position.Y - 36))
local TargetSize
local TargetPosition
local TargetAnchorPoint
if SelectedParent == "LeftTabs" then
TargetSize = UDim2New(0, 225, 1, 0)
TargetPosition = UDim2New(0, 0, 0, 0)
TargetAnchorPoint = Vector2New(1, 0)
elseif SelectedParent == "RightTabs" then
TargetSize = UDim2New(0, 225, 1, 0)
TargetPosition = UDim2New(1, 0, 0, 0)
TargetAnchorPoint = Vector2New(0, 0)
elseif SelectedParent == "TopTabs" then
TargetSize = UDim2New(1, 0, 0, 80)
TargetPosition = UDim2New(0, 0, 0, 0)
TargetAnchorPoint = Vector2New(0, 1)
elseif SelectedParent == "BottomTabs" then
TargetSize = UDim2New(1, 0, 0, 90)
TargetPosition = UDim2New(0, 0, 1, 0)
TargetAnchorPoint = Vector2New(0, 0)
end
Items["PagePlaceholder"].Instance.AnchorPoint = TargetAnchorPoint
Items["PagePlaceholder"]:Tween(TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Size = TargetSize})
Items["PagePlaceholder"]:Tween(TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Position = TargetPosition})
end
end)
end
--]]
function Window:Init()
for __, Value in Window.Pages do
if Value.Active then
for _, Value2 in Value.Sections do
task.spawn(function()
Value2:TweenElements(true)
end)
end
end
end
end
--[[Library:Connect(UserInputService.InputBegan, function(Input)
if tostring(Input.KeyCode) == Library.MenuKeybind or tostring(Input.UserInputType) == Library.MenuKeybind then
Window:SetOpen(not Window.IsOpen)
end
end)]]
Window:SetCenter()
task.wait()
Window:SetOpen(true)
return setmetatable(Window, Library)
end
Library.Category = function(self, Name)
local Items = { } do
Items["Category"] = Instances:Create("TextLabel", {
Parent = self.Items["LeftTabs"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(240, 240, 240),
TextTransparency = 0.4000000059604645,
Text = Name,
AutomaticSize = Enum.AutomaticSize.X,
Size = UDim2New(1, 0, 0, 15),
BorderSizePixel = 0,
BackgroundTransparency = 1,
TextXAlignment = Enum.TextXAlignment.Left,
BorderColor3 = FromRGB(0, 0, 0),
ZIndex = 2,
TextSize = 14,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["Category"]:AddToTheme({TextColor3 = "Text"})
end
end
Library.Page = function(self, Data)
Data = Data or { }
local Page = {
Window = self,
Name = Data.Name or Data.name or "Page",
Icon = Data.Icon or Data.icon or "100050851789190",
Columns = Data.Columns or Data.columns or 2,
Items = { },
ColumnsData = { },
Sections = { },
Active = false
}
local Items = { } do
Items["Inactive"] = Instances:Create("TextButton", {
Parent = Page.Window.Items["LeftTabs"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(0, 0, 0),
BorderColor3 = FromRGB(0, 0, 0),
Text = "",
AutoButtonColor = false,
BackgroundTransparency = 1,
BorderSizePixel = 0,
Size = UDim2New(0, 200, 0, 40),
ZIndex = 2,
TextSize = 14,
BackgroundColor3 = FromRGB(124, 163, 255)
}) Items["Inactive"]:AddToTheme({BackgroundColor3 = "Accent"})
Instances:Create("UICorner", {
Parent = Items["Inactive"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 5)
})
Items.Gradient = Instances:Create("UIGradient", {
Parent = Items["Inactive"].Instance,
Name = "\0",
Transparency = NumSequence{NumSequenceKeypoint(0, 0.41874998807907104), NumSequenceKeypoint(0.445, 0.78125), NumSequenceKeypoint(0.751, 0.9375), NumSequenceKeypoint(1, 1)}
})
Items["Icon"] = Instances:Create("ImageLabel", {
Parent = Items["Inactive"].Instance,
Name = "\0",
ImageColor3 = FromRGB(255, 255, 255),
BorderColor3 = FromRGB(0, 0, 0),
Size = UDim2New(0, 18, 0, 18),
AnchorPoint = Vector2New(0, 0.5),
Image = "rbxassetid://"..Page.Icon,
BackgroundTransparency = 1,
Position = UDim2New(0, 16, 0.5, 0),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
}) --Items["Icon"]:AddToTheme({ImageColor3 = "Accent"})
Instances:Create("UIGradient", {
Parent = Items["Icon"].Instance,
Name = "\0",
Rotation = -115
}):AddToTheme({Color = function()
return RGBSequence{RGBSequenceKeypoint(0, Library.Theme.Accent), RGBSequenceKeypoint(1, Library.Theme.AccentGradient)}
end})
Items["Text"] = Instances:Create("TextLabel", {
Parent = Items["Inactive"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(240, 240, 240),
BorderColor3 = FromRGB(0, 0, 0),
Text = Page.Name,
AutomaticSize = Enum.AutomaticSize.X,
AnchorPoint = Vector2New(0, 0.5),
Size = UDim2New(0, 0, 0, 15),
BackgroundTransparency = 1,
Position = UDim2New(0, 45, 0.5, 0),
BorderSizePixel = 0,
ZIndex = 2,
TextSize = 14,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["Text"]:AddToTheme({TextColor3 = "Text"})
Items["Page"] = Instances:Create("Frame", {
Parent = Library.UnusedHolder.Instance,
Name = "\0",
Visible = false,
BackgroundTransparency = 1,
Size = UDim2New(1, 0, 1, 0),
BorderColor3 = FromRGB(0, 0, 0),
ZIndex = 2,
Position = UDim2New(0, 0, 0, 60),
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
})
Instances:Create("UIListLayout", {
Parent = Items["Page"].Instance,
Name = "\0",
FillDirection = Enum.FillDirection.Horizontal,
HorizontalFlex = Enum.UIFlexAlignment.Fill,
Padding = UDimNew(0, 10),
SortOrder = Enum.SortOrder.LayoutOrder,
VerticalFlex = Enum.UIFlexAlignment.Fill
})
Instances:Create("UIPadding", {
Parent = Items["Page"].Instance,
Name = "\0",
PaddingTop = UDimNew(0, 10),
PaddingBottom = UDimNew(0, 10),
PaddingRight = UDimNew(0, 10),
PaddingLeft = UDimNew(0, 10)
})
for Index = 1, Page.Columns do
local NewColumn = Instances:Create("ScrollingFrame", {
Parent = Items["Page"].Instance,
Name = "\0",
ScrollBarImageColor3 = FromRGB(0, 0, 0),
Active = true,
AutomaticCanvasSize = Enum.AutomaticSize.Y,
ScrollBarThickness = 0,
BorderColor3 = FromRGB(0, 0, 0),
BackgroundTransparency = 1,
Size = UDim2New(0, 100, 0, 100),
BackgroundColor3 = FromRGB(255, 255, 255),
ZIndex = 2,
BorderSizePixel = 0,
CanvasSize = UDim2New(0, 0, 0, 0)
})
Instances:Create("UIListLayout", {
Parent = NewColumn.Instance,
Name = "\0",
Padding = UDimNew(0, 5),
SortOrder = Enum.SortOrder.LayoutOrder
})
Page.ColumnsData[Index] = NewColumn
end
Page.Items = Items
end
local Debounce = false
function Page:Turn(Bool)
if Debounce then
return
end
Page.Active = Bool
Debounce = true
Items["Page"].Instance.Visible = Bool
Items["Page"].Instance.Parent = Bool and Page.Window.Items["Content"].Instance or Library.UnusedHolder.Instance
if Page.Active then
Items["Inactive"]:Tween(nil, {BackgroundTransparency = 0.25})
Items["Page"]:Tween(TweenInfo.new(0.5, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {Position = UDim2New(0, 0, 0, 0)})
for Index, Value in Page.Sections do
task.spawn(function()
Value:TweenElements(true)
end)
end
else
Items["Inactive"]:Tween(nil, {BackgroundTransparency = 1})
Items["Page"]:Tween(TweenInfo.new(0.5, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {Position = UDim2New(0, 0, 0, 60)})
end
local AllInstances = Items["Page"].Instance:GetDescendants()
TableInsert(AllInstances, Items["Page"].Instance)
local NewTween
for Index, Value in AllInstances do
local TransparencyProperty = Tween:GetProperty(Value)
if not TransparencyProperty then
continue
end
if type(TransparencyProperty) == "table" then
for _, Property in TransparencyProperty do
NewTween = Tween:FadeItem(Value, Property, Bool, Library.FadeSpeed)
end
else
NewTween = Tween:FadeItem(Value, TransparencyProperty, Bool, Library.FadeSpeed)
end
end
Library:Connect(NewTween.Tween.Completed, function()
Debounce = false
if not Page.Active then
for Index, Value in Page.Sections do
task.spawn(function()
Value:TweenElements(false, true)
end)
end
end
end)
end
Items["Inactive"]:Connect("MouseButton1Down", function()
for Index, Value in Page.Window.Pages do
if Value == Page and Page.Active then
return
end
Value:Turn(Value == Page)
end
end)
if #Page.Window.Pages == 0 then
Page:Turn(true)
end
TableInsert(Page.Window.Pages, Page)
return setmetatable(Page, Library.Pages)
end
Library.Pages.GlobalChat = function(self, Side)
local GlobalChat = { }
Library.GlobalChatt = GlobalChat
local Items = { } do
Items["GlobalChat"] = Instances:Create("Frame", {
Parent = self.ColumnsData[Side].Instance,
Name = "\0",
BackgroundTransparency = 0.30000001192092896,
Position = UDim2New(0,0,0,0),
BorderColor3 = FromRGB(0, 0, 0),
Size = UDim2New(1, 0, 1, 0),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(27, 25, 29)
}) Items["GlobalChat"]:AddToTheme({BackgroundColor3 = "Section Background 2"})
Items["GlobalChat"]:MakeDraggable()
Instances:Create("UICorner", {
Parent = Items["GlobalChat"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 6)
})
Items["Title"] = Instances:Create("TextLabel", {
Parent = Items["GlobalChat"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(240, 240, 240),
BorderColor3 = FromRGB(0, 0, 0),
Text = "GLOBAL CHAT",
AutomaticSize = Enum.AutomaticSize.X,
Size = UDim2New(0, 0, 0, 15),
BackgroundTransparency = 1,
Position = UDim2New(0, 12, 0, 13),
BorderSizePixel = 0,
ZIndex = 2,
TextSize = 16,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["Title"]:AddToTheme({TextColor3 = "Text"})
Items["SubTitle"] = Instances:Create("TextLabel", {
Parent = Items["GlobalChat"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(240, 240, 240),
TextTransparency = 0.4000000059604645,
Text = "Chat with other users here.",
AutomaticSize = Enum.AutomaticSize.X,
Size = UDim2New(0, 0, 0, 15),
BorderSizePixel = 0,
BackgroundTransparency = 1,
Position = UDim2New(0, 14, 0, 30),
BorderColor3 = FromRGB(0, 0, 0),
ZIndex = 2,
TextSize = 14,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["SubTitle"]:AddToTheme({TextColor3 = "Text"})
Items["Message"] = Instances:Create("Frame", {
Parent = Items["GlobalChat"].Instance,
Name = "\0",
Active = true,
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(0, 1),
Selectable = true,
BackgroundTransparency = 1,
Position = UDim2New(0, 12, 1, -12),
Size = UDim2New(1, -66, 0, 32),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(27, 26, 29)
}) Items["Message"]:AddToTheme({BackgroundColor3 = "Element"})
Instances:Create("UICorner", {
Parent = Items["Message"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 4)
})
Items["Background"] = Instances:Create("Frame", {
Parent = Items["Message"].Instance,
Name = "\0",
Active = true,
BorderColor3 = FromRGB(0, 0, 0),
Size = UDim2New(1, 0, 1, 0),
Selectable = true,
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(27, 26, 29)
}) Items["Background"]:AddToTheme({BackgroundColor3 = "Element"})
Instances:Create("UICorner", {
Parent = Items["Background"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 4)
})
Items["Input"] = Instances:Create("TextBox", {
Parent = Items["Background"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(240, 240, 240),
BorderColor3 = FromRGB(0, 0, 0),
Text = "",
ZIndex = 2,
Size = UDim2New(1, -20, 0, 15),
Position = UDim2New(0, 10, 0, 8),
BorderSizePixel = 0,
BackgroundTransparency = 1,
PlaceholderColor3 = FromRGB(185, 185, 185),
TextXAlignment = Enum.TextXAlignment.Left,
PlaceholderText = "Message...",
TextSize = 14,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["Input"]:AddToTheme({TextColor3 = "Text"})
Items["SendButton"] = Instances:Create("TextButton", {
Parent = Items["GlobalChat"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(0, 0, 0),
BorderColor3 = FromRGB(0, 0, 0),
Text = "",
AutoButtonColor = false,
AnchorPoint = Vector2New(1, 1),
Position = UDim2New(1, -12, 1, -12),
Size = UDim2New(0, 32, 0, 32),
BorderSizePixel = 0,
TextSize = 14,
BackgroundColor3 = FromRGB(27, 26, 29)
}) Items["SendButton"]:AddToTheme({BackgroundColor3 = "Element"})
Instances:Create("UICorner", {
Parent = Items["SendButton"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 4)
})
Items["SendIcon"] = Instances:Create("ImageLabel", {
Parent = Items["SendButton"].Instance,
Name = "\0",
ImageColor3 = FromRGB(255, 255, 255),
BorderColor3 = FromRGB(0, 0, 0),
ImageTransparency = 0.2,
AnchorPoint = Vector2New(0.5, 0.5),
Image = "rbxassetid://101636617799068",
BackgroundTransparency = 1,
ZIndex = 3,
Position = UDim2New(0.5, 0, 0.5, 0),
Size = UDim2New(0, 22, 0, 22),
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
})
Items["Accent"] = Instances:Create("Frame", {
Parent = Items["SendButton"].Instance,
Name = "\0",
Size = UDim2New(0, 0, 0, 0),
BorderColor3 = FromRGB(0, 0, 0),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255),
AnchorPoint = Vector2New(0.5, 0.5),
Position = UDim2New(0.5, 0, 0.5, 0)
}) --Items["Accent"]:AddToTheme({BackgroundColor3 = "Accent"})
Instances:Create("UICorner", {
Parent = Items["Accent"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 4)
})
Instances:Create("UIGradient", {
Parent = Items["Accent"].Instance,
Name = "\0",
Enabled = true,
Rotation = -115,
Color = RGBSequence{RGBSequenceKeypoint(0, FromRGB(255, 255, 255)), RGBSequenceKeypoint(1, FromRGB(143, 143, 143))}
}):AddToTheme({Color = function()
return RGBSequence{RGBSequenceKeypoint(0, Library.Theme.Accent), RGBSequenceKeypoint(1, Library.Theme.AccentGradient)}
end})
Items["SendButton"]:OnHover(function()
Items["Accent"]:Tween(TweenInfo.new(Library.Tween.Time+0.15, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {Size = UDim2New(1, 0, 1, 0), BackgroundTransparency = 0})
end)
Items["SendButton"]:OnHoverLeave(function()
Items["Accent"]:Tween(TweenInfo.new(Library.Tween.Time+0.15, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {Size = UDim2New(0, 0, 0, 0), BackgroundTransparency = 1})
end)
Items["Messages"] = Instances:Create("ScrollingFrame", {
Parent = Items["GlobalChat"].Instance,
Name = "\0",
ScrollBarImageColor3 = FromRGB(124, 163, 255),
Active = true,
AutomaticCanvasSize = Enum.AutomaticSize.Y,
ScrollBarThickness = 2,
Size = UDim2New(1, -24, 1, -115),
BackgroundTransparency = 1,
Position = UDim2New(0, 12, 0, 60),
BackgroundColor3 = FromRGB(255, 255, 255),
BorderColor3 = FromRGB(0, 0, 0),
BorderSizePixel = 0,
CanvasSize = UDim2New(0, 0, 0, 0)
}) Items["Messages"]:AddToTheme({ScrollBarImageColor3 = "Accent"})
Instances:Create("UIListLayout", {
Parent = Items["Messages"].Instance,
Name = "\0",
Padding = UDimNew(0, 5),
SortOrder = Enum.SortOrder.LayoutOrder
})
Instances:Create("UIPadding", {
Parent = Items["Messages"].Instance,
Name = "\0",
PaddingTop = UDimNew(0, 0),
PaddingBottom = UDimNew(0, 0),
PaddingRight = UDimNew(0, 10),
PaddingLeft = UDimNew(0, 0)
})
Items["Status"] = Instances:Create("Frame", {
Parent = Items["GlobalChat"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(1, 0),
BackgroundTransparency = 1,
Position = UDim2New(1, -12, 0, 10),
Size = UDim2New(0, 100, 0, 20),
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
})
Items["StatusCircle"] = Instances:Create("Frame", {
Parent = Items["Status"].Instance,
Name = "\0",
AnchorPoint = Vector2New(1, 0.5),
Position = UDim2New(1, 0, 0.5, 0),
BorderColor3 = FromRGB(0, 0, 0),
Size = UDim2New(0, 12, 0, 12),
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 210, 62)
})
Items["Glow"] = Instances:Create("ImageLabel", {
Parent = Items["StatusCircle"].Instance,
Name = "\0",
ImageColor3 = FromRGB(255, 210, 62),
ScaleType = Enum.ScaleType.Slice,
ImageTransparency = 0.30000001192092896,
BorderColor3 = FromRGB(0, 0, 0),
BackgroundColor3 = FromRGB(255, 255, 255),
Size = UDim2New(1, 8, 1, 8),
AnchorPoint = Vector2New(0.5, 0.5),
Image = "http://www.roblox.com/asset/?id=18245826428",
BackgroundTransparency = 1,
Position = UDim2New(0.5, 0, 0.5, 0),
ZIndex = 2,
BorderSizePixel = 0,
SliceCenter = RectNew(Vector2New(21, 21), Vector2New(79, 79))
})
Instances:Create("UICorner", {
Parent = Items["StatusCircle"].Instance,
Name = "\0",
CornerRadius = UDimNew(1, 0)
})
Items["StatusText"] = Instances:Create("TextLabel", {
Parent = Items["Status"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(255, 210, 62),
BorderColor3 = FromRGB(0, 0, 0),
Text = "67 Active | Connected",
AnchorPoint = Vector2New(1, 0.5),
Size = UDim2New(0, 0, 0, 15),
BackgroundTransparency = 1,
Position = UDim2New(1, -20, 0.5, 0),
BorderSizePixel = 0,
AutomaticSize = Enum.AutomaticSize.X,
TextSize = 14,
BackgroundColor3 = FromRGB(255, 255, 255)
})
end
function GlobalChat:SetVisibility(Bool)
Items["GlobalChat"].Instance.Visible = Bool
Items["GlobalChat"].Instance.Parent = Bool and Data.MainFrame.Instance or Library.UnusedHolder
end
function GlobalChat:SetStatus(Text, Color)
Items["StatusText"].Instance.Text = Text
Items["StatusText"].Instance.TextColor3 = Color
Items["StatusCircle"].Instance.BackgroundColor3 = Color
end
function GlobalChat:SetStatusText(Text)
if not Done then
Items["StatusText"].Instance.TextColor3 = FromRGB(62, 255, 91)
Items["Glow"].Instance.ImageColor3 = FromRGB(62, 255, 91)
Items["StatusCircle"].Instance.BackgroundColor3 = FromRGB(62, 255, 91)
Done = true
end
Items["StatusText"].Instance.Text = Text
end
local OnMessagePressed
function GlobalChat:OnMessageSendPressed(Func)
OnMessagePressed = Func
end
function GlobalChat:GetTypedMessage()
return Items["Input"].Instance.Text
end
function GlobalChat:ClearText()
Items["Input"].Instance.Text = ""
end
function GlobalChat:SendMessage(Avatar, Username, Message, IsLocalPlayer)
local SubItems = { } do
if not IsLocalPlayer then
SubItems["Message1"] = Instances:Create("Frame", {
Parent = Items["Messages"].Instance,
Name = "\0",
BackgroundTransparency = 1,
Size = UDim2New(1, 0, 0, 45),
ZIndex = 2,
BorderColor3 = FromRGB(0, 0, 0),
BorderSizePixel = 0,
AutomaticSize = Enum.AutomaticSize.Y,
BackgroundColor3 = FromRGB(255, 255, 255)
})
SubItems["PlayerName"] = Instances:Create("TextLabel", {
Parent = SubItems["Message1"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(240, 240, 240),
BorderColor3 = FromRGB(0, 0, 0),
Text = Username,
Size = UDim2New(0, 0, 0, 15),
BackgroundTransparency = 1,
RichText = true,
Position = UDim2New(0, 38, 0, 0),
TextTransparency = 0.3,
BorderSizePixel = 0,
ZIndex = 2,
AutomaticSize = Enum.AutomaticSize.X,
TextSize = 14,
BackgroundColor3 = FromRGB(255, 255, 255)
}) SubItems["PlayerName"]:AddToTheme({TextColor3 = "Text"})
SubItems["RealMessage"] = Instances:Create("Frame", {
Parent = SubItems["Message1"].Instance,
Name = "\0",
Position = UDim2New(0, 38, 0, 20),
BorderColor3 = FromRGB(0, 0, 0),
BorderSizePixel = 0,
ZIndex = 2,
AutomaticSize = Enum.AutomaticSize.XY,
BackgroundColor3 = FromRGB(27, 25, 29)
}) SubItems["RealMessage"]:AddToTheme({BackgroundColor3 = "Background"})
Instances:Create("UISizeConstraint", {
Parent = SubItems["RealMessage"].Instance,
Name = "\0",
MaxSize = Vector2New(370, 70)
})
Instances:Create("UICorner", {
Parent = SubItems["RealMessage"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 4)
})
SubItems["MessageText"] = Instances:Create("TextLabel", {
Parent = SubItems["RealMessage"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(240, 240, 240),
BorderColor3 = FromRGB(0, 0, 0),
Text = Message,
BackgroundTransparency = 1,
TextWrapped = true,
TextXAlignment = Enum.TextXAlignment.Left,
BorderSizePixel = 0,
AutomaticSize = Enum.AutomaticSize.XY,
TextSize = 14,
ZIndex = 2,
BackgroundColor3 = FromRGB(255, 255, 255)
}) SubItems["MessageText"]:AddToTheme({TextColor3 = "Text"})
Instances:Create("UIPadding", {
Parent = SubItems["RealMessage"].Instance,
Name = "\0",
PaddingTop = UDimNew(0, 10),
PaddingBottom = UDimNew(0, 10),
PaddingRight = UDimNew(0, 10),
PaddingLeft = UDimNew(0, 10)
})
SubItems["Avatar"] = Instances:Create("ImageLabel", {
Parent = SubItems["Message1"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(0, 0.5),
Image = Avatar,
BackgroundTransparency = 1,
Position = UDim2New(0, 0, 0.5, 0),
Size = UDim2New(0, 30, 0, 30),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
})
Instances:Create("UICorner", {
Parent = SubItems["Avatar"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 4)
})
else
SubItems["Message1"] = Instances:Create("Frame", {
Parent = Items["Messages"].Instance,
Name = "\0",
BackgroundTransparency = 1,
Size = UDim2New(1, 0, 0, 45),
BorderColor3 = FromRGB(0, 0, 0),
BorderSizePixel = 0,
ZIndex = 2,
AutomaticSize = Enum.AutomaticSize.Y,
BackgroundColor3 = FromRGB(255, 255, 255)
})
SubItems["PlayerName"] = Instances:Create("TextLabel", {
Parent = SubItems["Message1"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(240, 240, 240),
BorderColor3 = FromRGB(0, 0, 0),
Text = Username,
RichText = true,
AnchorPoint = Vector2New(1, 0),
Size = UDim2New(0, 0, 0, 15),
ZIndex = 2,
TextTransparency = 0.3,
BackgroundTransparency = 1,
Position = UDim2New(1, -38, 0, 0),
BorderSizePixel = 0,
AutomaticSize = Enum.AutomaticSize.X,
TextSize = 14,
BackgroundColor3 = FromRGB(255, 255, 255)
}) SubItems["PlayerName"]:AddToTheme({TextColor3 = "Text"})
SubItems["RealMessage"] = Instances:Create("Frame", {
Parent = SubItems["Message1"].Instance,
Name = "\0",
AnchorPoint = Vector2New(1, 0),
Position = UDim2New(1, -38, 0, 20),
BorderColor3 = FromRGB(0, 0, 0),
BorderSizePixel = 0,
ZIndex = 2,
AutomaticSize = Enum.AutomaticSize.XY,
BackgroundColor3 = FromRGB(27, 25, 29)
}) SubItems["RealMessage"]:AddToTheme({BackgroundColor3 = "Background"})
Instances:Create("UISizeConstraint", {
Parent = SubItems["RealMessage"].Instance,
Name = "\0",
MaxSize = Vector2New(370, 75)
})
Instances:Create("UICorner", {
Parent = SubItems["RealMessage"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 4)
})
SubItems["MessageText"] = Instances:Create("TextLabel", {
Parent = SubItems["RealMessage"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(240, 240, 240),
BorderColor3 = FromRGB(0, 0, 0),
Text = Message,
BackgroundTransparency = 1,
TextXAlignment = Enum.TextXAlignment.Left,
BorderSizePixel = 0,
AutomaticSize = Enum.AutomaticSize.XY,
ZIndex = 2,
TextWrapped = true,
TextSize = 14,
BackgroundColor3 = FromRGB(255, 255, 255)
}) SubItems["MessageText"]:AddToTheme({TextColor3 = "Text"})
Instances:Create("UIPadding", {
Parent = SubItems["RealMessage"].Instance,
Name = "\0",
PaddingTop = UDimNew(0, 10),
PaddingBottom = UDimNew(0, 10),
PaddingRight = UDimNew(0, 10),
PaddingLeft = UDimNew(0, 10)
})
SubItems["Avatar"] = Instances:Create("ImageLabel", {
Parent = SubItems["Message1"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(1, 0.5),
Image = Avatar,
ZIndex = 2,
BackgroundTransparency = 1,
Position = UDim2New(1, 0, 0.5, 0),
Size = UDim2New(0, 30, 0, 30),
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
})
Instances:Create("UICorner", {
Parent = SubItems["Avatar"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 4)
})
end
end
end
Items["SendButton"]:Connect("MouseButton1Down", function()
if GlobalChat:GetTypedMessage() == "" then
return
end
OnMessagePressed()
end)
Items["Messages"]:Connect("ChildAdded", function()
task.wait()
Items["Messages"]:Tween(nil, {CanvasPosition = Vector2New(0, Items["Messages"].Instance.AbsoluteCanvasSize.Y - Items["Messages"].Instance.AbsoluteSize.Y)})
end)
for Index, Value in Items["GlobalChat"].Instance:GetDescendants() do
if Value.ClassName:find("UI") then
continue
end
Value.ZIndex = 2
end
Items["GlobalChat"].Instance.ZIndex = 2
Items["SendIcon"].Instance.ZIndex = 3
return GlobalChat
end
Library.Pages.Section = function(self, Data)
Data = Data or { }
local Section = {
Window = self.Window,
Page = self,
Name = Data.Name or Data.name or "Section",
Description = Data.Description or Data.Description or "",
Icon = Data.Icon or Data.icon or "123944728972740",
Side = Data.Side or Data.side or 1,
Items = { },
IsActive = true,
Elements = { }
}
local Items = { } do
Items["Section"] = Instances:Create("Frame", {
Parent = Section.Page.ColumnsData[Section.Side].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
BackgroundTransparency = 0.6499999761581421,
ClipsDescendants = true,
BorderSizePixel = 0,
Size = UDim2New(1, 0, 0, 45),
ZIndex = 2,
AutomaticSize = Enum.AutomaticSize.Y,
BackgroundColor3 = FromRGB(29, 28, 32)
}) Items["Section"]:AddToTheme({BackgroundColor3 = "Section Background 2"})
Items["Top"] = Instances:Create("Frame", {
Parent = Items["Section"].Instance,
Name = "\0",
BackgroundTransparency = 0.6499999761581421,
Size = UDim2New(1, 0, 0, 55),
BorderColor3 = FromRGB(0, 0, 0),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(31, 31, 36)
}) Items["Top"]:AddToTheme({BackgroundColor3 = "Outline"})
Items["TopBackground"] = Instances:Create("Frame", {
Parent = Items["Top"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
BackgroundTransparency = 0.6499999761581421,
Position = UDim2New(0, 1, 0, 1),
Size = UDim2New(1, -2, 1, -2),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(26, 26, 30)
}) Items["TopBackground"]:AddToTheme({BackgroundColor3 = "Section Top"})
Items["Icon"] = Instances:Create("ImageLabel", {
Parent = Items["TopBackground"].Instance,
Name = "\0",
ImageColor3 = FromRGB(255, 255, 255),
BorderColor3 = FromRGB(0, 0, 0),
Size = UDim2New(0, 21, 0, 20),
AnchorPoint = Vector2New(0, 0.5),
Image = "rbxassetid://"..Section.Icon,
BackgroundTransparency = 1,
Position = UDim2New(0, 15, 0.5, 0),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
}) --Items["Icon"]:AddToTheme({ImageColor3 = "Accent"})
Instances:Create("UIGradient", {
Parent = Items["Icon"].Instance,
Name = "\0",
Color = RGBSequence{RGBSequenceKeypoint(0, FromRGB(131, 131, 131)), RGBSequenceKeypoint(1, FromRGB(255, 255, 255))}
}):AddToTheme({Color = function()
return RGBSequence{RGBSequenceKeypoint(0, Library.Theme.Accent), RGBSequenceKeypoint(1, Library.Theme.AccentGradient)}
end})
Items["Description"] = Instances:Create("TextLabel", {
Parent = Items["TopBackground"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(183, 183, 183),
BorderColor3 = FromRGB(0, 0, 0),
Text = Section.Description,
AutomaticSize = Enum.AutomaticSize.X,
Size = UDim2New(0, 0, 0, 15),
BackgroundTransparency = 1,
Position = UDim2New(0, 50, 0, 28),
BorderSizePixel = 0,
TextTransparency = 0.4,
ZIndex = 2,
TextSize = 15,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["Description"]:AddToTheme({TextColor3 = "Text"})
Instances:Create("UICorner", {
Parent = Items["TopBackground"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 4)
})
Items["Title"] = Instances:Create("TextLabel", {
Parent = Items["TopBackground"].Instance,
Name = "\0",
FontFace = Library.Font,
TextColor3 = FromRGB(248, 248, 248),
BorderColor3 = FromRGB(0, 0, 0),
Text = Section.Name,
AutomaticSize = Enum.AutomaticSize.X,
Size = UDim2New(0, 0, 0, 15),
BackgroundTransparency = 1,
Position = UDim2New(0, 50, 0, 10),
BorderSizePixel = 0,
ZIndex = 2,
TextSize = 15,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["Title"]:AddToTheme({TextColor3 = "Text"})
Items["Toggle"] = Instances:Create("TextButton", {
Parent = Items["Top"].Instance,
Name = "\0",
Active = false,
BorderColor3 = FromRGB(0, 0, 0),
Text = "",
AutoButtonColor = false,
AnchorPoint = Vector2New(1, 0.5),
Selectable = false,
Position = UDim2New(1, -15, 0.5, 0),
Size = UDim2New(0, 26, 0, 16),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
}) --Items["Toggle"]:AddToTheme({BackgroundColor3 = "Accent"})
Items["Circle"] = Instances:Create("Frame", {
Parent = Items["Toggle"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(1, 0.5),
Position = UDim2New(1, -4, 0.5, 0),
Size = UDim2New(0, 8, 0, 8),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
}) Items["Circle"]:AddToTheme({BackgroundColor3 = "Text"})
Instances:Create("UICorner", {
Parent = Items["Circle"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 99999)
})
Instances:Create("UICorner", {
Parent = Items["Toggle"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 9)
})
Items["Gradient"] = Instances:Create("UIGradient", {
Parent = Items["Toggle"].Instance,
Name = "\0",
Rotation = -115,
Color = RGBSequence{RGBSequenceKeypoint(0, FromRGB(255, 255, 255)), RGBSequenceKeypoint(1, FromRGB(143, 143, 143))}
}) Items["Gradient"]:AddToTheme({Color = function()
return RGBSequence{RGBSequenceKeypoint(0, Library.Theme.Accent), RGBSequenceKeypoint(1, Library.Theme.AccentGradient)}
end})
Instances:Create("UICorner", {
Parent = Items["Top"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 4)
})
Items["Fill"] = Instances:Create("Frame", {
Parent = Items["Top"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
BackgroundTransparency = 1,
Position = UDim2New(0, 1, 1, -4),
Size = UDim2New(1, -2, 0, 4),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(26, 26, 30)
}) Items["Fill"]:AddToTheme({BackgroundColor3 = "Section Background"})
Instances:Create("UICorner", {
Parent = Items["Fill"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 4)
})
Items["TopFills"] = Instances:Create("Frame", {
Parent = Items["Top"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(0, 1),
BackgroundTransparency = 1,
Position = UDim2New(0, 0, 1, 0),
Size = UDim2New(1, 0, 0, 3),
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(255, 255, 255)
})
Items["Right1"] = Instances:Create("Frame", {
Parent = Items["TopFills"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(1, 0),
BackgroundTransparency = 0.6499999761581421,
Position = UDim2New(1, -1, 0, 0),
Size = UDim2New(0, 1, 0, 1),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(26, 26, 30)
}) Items["Right1"]:AddToTheme({BackgroundColor3 = "Section Background"})
Items["Right2"] = Instances:Create("Frame", {
Parent = Items["TopFills"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(1, 0),
BackgroundTransparency = 0.6499999761581421,
Position = UDim2New(1, -1, 0, 1),
Size = UDim2New(0, 1, 0, 1),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(26, 26, 30)
}) Items["Right2"]:AddToTheme({BackgroundColor3 = "Section Background"})
Items["Right3"] = Instances:Create("Frame", {
Parent = Items["TopFills"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(1, 0),
BackgroundTransparency = 0.6499999761581421,
Position = UDim2New(1, -2, 0, 1),
Size = UDim2New(0, 1, 0, 1),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(26, 26, 30)
}) Items["Right3"]:AddToTheme({BackgroundColor3 = "Section Background"})
Items["Left1"] = Instances:Create("Frame", {
Parent = Items["TopFills"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(1, 0),
BackgroundTransparency = 0.6499999761581421,
Position = UDim2New(0, 2, 0, 0),
Size = UDim2New(0, 1, 0, 1),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(26, 26, 30)
}) Items["Left1"]:AddToTheme({BackgroundColor3 = "Section Background"})
Items["Left2"] = Instances:Create("Frame", {
Parent = Items["TopFills"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(1, 0),
BackgroundTransparency = 0.6499999761581421,
Position = UDim2New(0, 2, 0, 1),
Size = UDim2New(0, 1, 0, 1),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(26, 26, 30)
}) Items["Left2"]:AddToTheme({BackgroundColor3 = "Section Background"})
Items["Left3"] = Instances:Create("Frame", {
Parent = Items["TopFills"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
AnchorPoint = Vector2New(1, 0),
BackgroundTransparency = 0.6499999761581421,
Position = UDim2New(0, 3, 0, 1),
Size = UDim2New(0, 1, 0, 1),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(26, 26, 30)
}) Items["Left3"]:AddToTheme({BackgroundColor3 = "Section Background"})
Instances:Create("UICorner", {
Parent = Items["Section"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 4)
})
Items["Background"] = Instances:Create("Frame", {
Parent = Items["Section"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
BackgroundTransparency = 0.6499999761581421,
Position = UDim2New(0, 1, 0, 55),
Size = UDim2New(1, -2, 1, -56),
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(24, 22, 25)
}) Items["Background"]:AddToTheme({BackgroundColor3 = "Section Background"})
Items["Content"] = Instances:Create("Frame", {
Parent = Items["Background"].Instance,
Name = "\0",
BorderColor3 = FromRGB(0, 0, 0),
BackgroundTransparency = 1,
Position = UDim2New(0, 12, 0, 15),
Size = UDim2New(1, -24, 0, 0),
BorderSizePixel = 0,
AutomaticSize = Enum.AutomaticSize.Y,
BackgroundColor3 = FromRGB(255, 255, 255)
})
Instances:Create("UIListLayout", {
Parent = Items["Content"].Instance,
Name = "\0",
Padding = UDimNew(0, 5),
SortOrder = Enum.SortOrder.LayoutOrder
})
Items["Fade"] = Instances:Create("TextButton", {
Parent = Items["Background"].Instance,
Name = "\0",
BackgroundTransparency = 1,
Size = UDim2New(0, 0, 10, 0),
BorderColor3 = FromRGB(0, 0, 0),
AutoButtonColor = false,
Visible = false,
Text = "",
ZIndex = 2,
BorderSizePixel = 0,
BackgroundColor3 = FromRGB(24, 22, 25)
}) Items["Fade"]:AddToTheme({BackgroundColor3 = "Section Background"})
Instances:Create("UICorner", {
Parent = Items["Fade"].Instance,
Name = "\0",
CornerRadius = UDimNew(0, 4)
})
Instances:Create("UIPadding", {
Parent = Items["Content"].Instance,
Name = "\0",
PaddingBottom = UDimNew(0, 10)
})
Section.Items = Items
end
function Section:ToggleBackground()
Section.IsActive = not Section.IsActive
if not Section.IsActive then
Items["Fade"].Instance.Visible = true
Items["Fade"]:Tween(nil, {BackgroundTransparency = 0.3})
Items["Gradient"].Instance.Enabled = false
Items["Toggle"]:ChangeItemTheme({BackgroundColor3 = "Element"})
Items["Toggle"]:Tween(nil, {BackgroundColor3 = Library.Theme.Element})
Items["Circle"]:Tween(nil, {AnchorPoint = Vector2New(0, 0.5), Position = UDim2New(0, 4, 0.5, 0), BackgroundColor3 = Library.Theme.Text, BackgroundTransparency = 0.6})
else
Items["Fade"]:Tween(nil, {BackgroundTransparency = 1})
task.spawn(function()
task.wait(Library.Tween.Time)
Items["Fade"].Instance.Visible = false
end)
Items["Gradient"].Instance.Enabled = true
Items["Toggle"]:ChangeItemTheme({BackgroundColor3 = "Text"})
Items["Toggle"]:Tween(nil, {BackgroundColor3 = Library.Theme.Text})
Items["Circle"]:Tween(nil, {AnchorPoint = Vector2New(1, 0.5), Position = UDim2New(1, -4, 0.5, 0), BackgroundColor3 = Library.Theme.Text, BackgroundTransparency = 0})
end
end
Library:Connect(Items["Content"].Instance.Changed, function(Property)
if Property == "AbsoluteSize" then
Items["Fade"].Instance.Size = UDim2New(1, 0, 0, Items["Content"].Instance.AbsoluteSize.Y + 10)
end
end)
function Section:TweenElements(Bool, Debounce)
for Index, Value in Section.Elements do
Value:RefreshPosition(Bool)
if not Debounce then
taskLoads code from the internet. It downloads more code when it runs (loadstring + HttpGet), which can change after it was posted. From: www.roblox.com.