Run it
Copy the script and paste it into your executor.
UserInputService = :()
RunService = :()
TweenService = :()
Players = :()
CoreGui = :()
FattyScript = {}
FattyScript.__index = FattyScript
State = {
Running = ,
WindowOpen = ,
Dragging = ,
DragInput = ,
DragStart = ,
StartPos = ,
}
Connections = {}
GuiObjects = {}
(className, properties, children)
inst = .(className)
k, v (properties {})
inst[k] = v
_, child (children {})
child.Parent = inst
inst
(obj, props, duration, style, dir)
t = TweenService:(obj, TweenInfo.(duration , style .EasingStyle.Quart, dir .EasingDirection.Out), props)
t:()
t
(parent, radius)
(, { CornerRadius = .(, radius ), Parent = parent })
(parent, color, thickness, transparency)
(, {
Color = color .(, , ),
Thickness = thickness ,
Transparency = transparency ,
Parent = parent
})
(parent, top, bottom, left, right)
(, {
PaddingTop = .(, top ),
PaddingBottom = .(, bottom ),
PaddingLeft = .(, left ),
PaddingRight = .(, right ),
Parent = parent
})
Icons = {
Main = ,
Cheeseburger = ,
}
ColorPresets = {
Purple = {
Window = .(, , ),
Accent = .(, , ),
AccentDark = .(, , ),
Section = .(, , ),
Text = .(, , ),
TextDim = .(, , ),
Card = .(, , ),
CardHover = .(, , ),
},
Blue = {
Window = .(, , ),
Accent = .(, , ),
AccentDark = .(, , ),
Section = .(, , ),
Text = .(, , ),
TextDim = .(, , ),
Card = .(, , ),
CardHover = .(, , ),
},
Red = {
Window = .(, , ),
Accent = .(, , ),
AccentDark = .(, , ),
Section = .(, , ),
Text = .(, , ),
TextDim = .(, , ),
Card = .(, , ),
CardHover = .(, , ),
},
Pink = {
Window = .(, , ),
Accent = .(, , ),
AccentDark = .(, , ),
Section = .(, , ),
Text = .(, , ),
TextDim = .(, , ),
Card = .(, , ),
CardHover = .(, , ),
},
Black = {
Window = .(, , ),
Accent = .(, , ),
AccentDark = .(, , ),
Section = .(, , ),
Text = .(, , ),
TextDim = .(, , ),
Card = .(, , ),
CardHover = .(, , ),
},
White = {
Window = .(, , ),
Accent = .(, , ),
AccentDark = .(, , ),
Section = .(, , ),
Text = .(, , ),
TextDim = .(, , ),
Card = .(, , ),
CardHover = .(, , ),
},
}
Theme = {
Background = .(, , ),
Window = .(, , ),
Accent = .(, , ),
AccentDark = .(, , ),
AccentLight = .(, , ),
Text = .(, , ),
TextDim = .(, , ),
Card = .(, , ),
CardHover = .(, , ),
Border = .(, , ),
Success = .(, , ),
Error = .(, , ),
Section = .(, , ),
}
()
:().Remote.Event.Eat.PlayerTryClickRE:()
()
State.Running
State.Running =
.(()
State.Running
()
.()
)
()
State.Running =
FattyScript:(config)
config = config {}
WindowName = config.Name
Size = config.Size .(, , , )
CoreGui:()
CoreGui:():()
ScreenGui = (, {
Name = ,
DisplayOrder = ,
ZIndexBehavior = .ZIndexBehavior.Sibling,
ResetOnSpawn = ,
Parent = CoreGui
})
Shadow = (, {
Name = ,
AnchorPoint = .(, ),
BackgroundTransparency = ,
Position = .(, , , ),
Size = .(, , , ),
Image = ,
ImageColor3 = .(, , ),
ImageTransparency = ,
ScaleType = .ScaleType.Slice,
SliceCenter = Rect.(, , , ),
Parent = ScreenGui
})
MainFrame = (, {
Name = ,
AnchorPoint = .(, ),
BackgroundColor3 = Theme.Window,
Position = .(, , , ),
Size = Size,
Parent = ScreenGui
})
(MainFrame, )
(MainFrame, Theme.Border, )
TopBar = (, {
Name = ,
BackgroundColor3 = Theme.Section,
Size = .(, , , ),
Parent = MainFrame
})
(TopBar, )
TopBarFix = (, {
Name = ,
BackgroundColor3 = Theme.Section,
Position = .(, , , ),
Size = .(, , , ),
Parent = TopBar
})
MainIcon = (, {
Name = ,
BackgroundTransparency = ,
Position = .(, , , -),
Size = .(, , , ),
Image = Icons.Main,
ImageColor3 = Theme.Accent,
Parent = TopBar
})
Title = (, {
Name = ,
BackgroundTransparency = ,
Position = .(, , , ),
Size = .(, , , ),
Font = .Font.GothamBold,
Text = WindowName,
TextColor3 = Theme.Text,
TextSize = ,
TextXAlignment = .TextXAlignment.Left,
Parent = TopBar
})
Controls = (, {
Name = ,
BackgroundTransparency = ,
Position = .(, -, , ),
Size = .(, , , ),
Parent = TopBar
})
MinimizeBtn = (, {
Name = ,
BackgroundColor3 = Theme.AccentDark,
Position = .(, , , -),
Size = .(, , , ),
Font = .Font.GothamBold,
Text = ,
TextColor3 = Theme.Text,
TextSize = ,
Parent = Controls
})
(MinimizeBtn, )
CloseBtn = (, {
Name = ,
BackgroundColor3 = Theme.Error,
Position = .(, , , -),
Size = .(, , , ),
Font = .Font.GothamBold,
Text = ,
TextColor3 = .(, , ),
TextSize = ,
Parent = Controls
})
(CloseBtn, )
ContentFrame = (, {
Name = ,
BackgroundTransparency = ,
Position = .(, , , ),
Size = .(, -, , -),
Parent = MainFrame
})
ContentLayout = (, {
Padding = .(, ),
SortOrder = .SortOrder.LayoutOrder,
Parent = ContentFrame
})
GuiObjects.ScreenGui = ScreenGui
GuiObjects.MainFrame = MainFrame
GuiObjects.ContentFrame = ContentFrame
(input)
delta = input.Position - State.DragStart
pos = .(State.StartPos.X.Scale, State.StartPos.X.Offset + delta.X, State.StartPos.Y.Scale, State.StartPos.Y.Offset + delta.Y)
(MainFrame, {Position = pos}, )
TopBar.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
State.Dragging =
State.DragStart = input.Position
State.StartPos = MainFrame.Position
)
TopBar.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
State.Dragging =
)
TopBar.InputChanged:((input)
State.Dragging (input.UserInputType == .UserInputType.MouseMovement input.UserInputType == .UserInputType.Touch)
State.DragInput = input
)
UserInputService.InputChanged:((input)
input == State.DragInput State.Dragging
(input)
)
MinimizeBtn.MouseEnter:(()
(MinimizeBtn, {BackgroundColor3 = Theme.Accent}, )
)
MinimizeBtn.MouseLeave:(()
(MinimizeBtn, {BackgroundColor3 = Theme.AccentDark}, )
)
CloseBtn.MouseEnter:(()
(CloseBtn, {BackgroundColor3 = .(, , )}, )
)
CloseBtn.MouseLeave:(()
(CloseBtn, {BackgroundColor3 = Theme.Error}, )
)
Minimized =
CheeseburgerIcon = (, {
Name = ,
AnchorPoint = .(, ),
BackgroundColor3 = Theme.Accent,
Position = .(, , , ),
Size = .(, , , ),
Font = .Font.GothamBold,
Text = ,
TextColor3 = .(, , ),
TextSize = ,
Visible = ,
ZIndex = ,
Parent = ScreenGui
})
(CheeseburgerIcon, )
(CheeseburgerIcon, .(, , ), , )
BurgerDragging =
BurgerDragStart =
BurgerStartPos =
BurgerDragInput =
BurgerMoved =
(input)
delta = input.Position - BurgerDragStart
pos = .(, BurgerStartPos.X + delta.X, , BurgerStartPos.Y + delta.Y)
CheeseburgerIcon.Position = pos
CheeseburgerIcon.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
BurgerDragging =
BurgerMoved =
BurgerDragStart = input.Position
BurgerStartPos = CheeseburgerIcon.AbsolutePosition
)
CheeseburgerIcon.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
BurgerDragging =
)
CheeseburgerIcon.InputChanged:((input)
BurgerDragging (input.UserInputType == .UserInputType.MouseMovement input.UserInputType == .UserInputType.Touch)
BurgerDragInput = input
)
UserInputService.InputChanged:((input)
input == BurgerDragInput BurgerDragging
BurgerMoved =
(input)
)
MinimizeBtn.MouseButton1Click:(()
Minimized = Minimized
Minimized
MainFrame.Visible =
Shadow.Visible =
CheeseburgerIcon.Position = .(, , , )
CheeseburgerIcon.Visible =
CheeseburgerIcon.Size = .(, , , )
(CheeseburgerIcon, {Size = .(, , , )}, , .EasingStyle.Back)
CheeseburgerIcon.Visible =
MainFrame.Visible =
Shadow.Visible =
MainFrame.Size = .(, , , )
(MainFrame, {Size = Size}, , .EasingStyle.Back)
)
CheeseburgerIcon.MouseButton1Click:(()
BurgerMoved
Minimized =
CheeseburgerIcon.Visible =
MainFrame.Visible =
Shadow.Visible =
MainFrame.Size = .(, , , )
(MainFrame, {Size = Size}, , .EasingStyle.Back)
)
CloseBtn.MouseButton1Click:(()
()
State.WindowOpen =
_, v (Connections)
v.Conn v.Conn:()
Connections = {}
(MainFrame, {Size = .(, Size.X.Offset, , ), Position = .(, , , Size.Y.Offset / )}, )
(Shadow, {ImageTransparency = }, )
.()
ScreenGui:()
)
WindowObj = ({}, FattyScript)
WindowObj.Tabs = {}
StatusLabel =
StartBtn =
StopBtn =
(text, color, callback)
Btn = (, {
Name = text,
BackgroundColor3 = color,
Size = .(, , , ),
Font = .Font.GothamBold,
Text = text,
TextColor3 = Theme.Text,
TextSize = ,
Parent = ContentFrame
})
(Btn, )
Btn.MouseButton1Click:(()
(Btn, {BackgroundColor3 = Theme.AccentDark}, )
.()
(Btn, {BackgroundColor3 = color}, )
()
)
Btn.MouseEnter:(()
(Btn, {BackgroundColor3 = Theme.CardHover}, )
)
Btn.MouseLeave:(()
(Btn, {BackgroundColor3 = color}, )
)
Btn
StartBtn = (, Theme.Success, ()
()
StatusLabel StatusLabel.Text =
)
StopBtn = (, Theme.Error, ()
()
StatusLabel StatusLabel.Text =
)
ColorSection = (, {
Name = ,
BackgroundColor3 = Theme.Card,
Size = .(, , , ),
Parent = ContentFrame
})
(ColorSection, )
(, {
Name = ,
BackgroundTransparency = ,
Position = .(, , , ),
Size = .(, -, , ),
Font = .Font.GothamMedium,
Text = ,
TextColor3 = Theme.TextDim,
TextSize = ,
TextXAlignment = .TextXAlignment.Left,
Parent = ColorSection
})
ColorList = {, , , , , }
ColorBtns = {}
i, colorName (ColorList)
preset = ColorPresets[colorName]
ColorBtn = (, {
Name = colorName,
BackgroundColor3 = preset.Accent,
Position = .(, + (i - ) * , , ),
Size = .(, , , ),
Font = .Font.GothamBold,
Text = colorName,
TextColor3 = Theme.Text,
TextSize = ,
Parent = ColorSection
})
(ColorBtn, )
ColorBtn.MouseButton1Click:(()
Theme.Window = preset.Window
Theme.Accent = preset.Accent
Theme.AccentDark = preset.AccentDark
Theme.Section = preset.Section
Theme.Text = preset.Text
Theme.TextDim = preset.TextDim
Theme.Card = preset.Card
Theme.CardHover = preset.CardHover
(MainFrame, {BackgroundColor3 = Theme.Window}, )
(TopBar, {BackgroundColor3 = Theme.Section}, )
(TopBarFix, {BackgroundColor3 = Theme.Section}, )
(MainIcon, {ImageColor3 = Theme.Accent}, )
(MinimizeBtn, {BackgroundColor3 = Theme.AccentDark}, )
(MinimizeBtn, {TextColor3 = Theme.Text}, )
(CheeseburgerIcon, {BackgroundColor3 = Theme.Accent}, )
(CheeseburgerIcon, {TextColor3 = Theme.Text}, )
(Title, {TextColor3 = Theme.Text}, )
StatusLabel (StatusLabel, {TextColor3 = Theme.TextDim}, )
StartBtn (StartBtn, {TextColor3 = Theme.Text}, )
StopBtn (StopBtn, {TextColor3 = Theme.Text}, )
_, cb (ColorBtns)
(cb.Button, {BackgroundColor3 = Theme.Card}, )
(cb.Button, {TextColor3 = Theme.Text}, )
(ColorBtn, {BackgroundColor3 = Theme.Accent}, )
)
ColorBtn.MouseEnter:(()
(ColorBtn, {Size = .(, , , )}, )
)
ColorBtn.MouseLeave:(()
(ColorBtn, {Size = .(, , , )}, )
)
.(ColorBtns, {Name = colorName, Button = ColorBtn})
ColorBtns[].Button.BackgroundColor3 = Theme.Accent
StatusLabel = (, {
Name = ,
BackgroundTransparency = ,
Size = .(, , , ),
Font = .Font.GothamMedium,
Text = ,
TextColor3 = Theme.TextDim,
TextSize = ,
Parent = ContentFrame
})
WindowObj
Window = FattyScript:({
Name = ,
Size = .(, , , ),
})
()
auto click and background color more soon