Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
UIS = :()
TweenService = :()
lp = Players.LocalPlayer
guiParent
ok, core = (() :() )
guiParent = (gethui ()) (ok core) lp:()
guiParent:()
guiParent.LMScripts_UI:()
CANDY_VALUES = { [] = , [] = , [] = , [] = }
GHOST_NAMES = { green = , pink = , orange = }
HEIGHT_OFFSET = .(, , )
TP_DELAY =
state = { candy = , ghost = }
tracked = { candy = {}, ghost = {} }
(obj)
(obj:() obj:())
n = obj.Name:()
num = n:()
num CANDY_VALUES[num]
GHOST_NAMES[n]
(obj)
kind = (obj)
kind tracked[kind][obj] =
(obj)
tracked.candy[obj] =
tracked.ghost[obj] =
_, d (:()) (d)
.DescendantAdded:(register)
.DescendantRemoving:(unregister)
(t)
c =
obj (t)
obj.Parent c +=
c
matchActive =
hudLabel =
HUD_KEYWORDS = { , , , , }
(l)
(l l.Parent)
l.Visible
sg = l:()
sg sg.Enabled
l.Text ~=
(l)
t = l.Text:()
_, k (HUD_KEYWORDS)
t:(k, , )
()
hudLabel (hudLabel) (hudLabel)
hudLabel =
pg = lp:()
pg
_, d (pg:())
d:() (d) (d)
d:()
hudLabel = d
.(()
matchActive = ()
.()
)
()
char = lp.Character
char char:(), char
(obj)
obj:() obj
obj:()
obj.PrimaryPart obj:(, )
(root, part)
(()
(root, part, )
(root, part, )
)
(()
pp = part:(, )
(part.Parent part.Parent:(, ))
pp (pp)
)
(obj)
root = ()
part = (obj)
(root part part.Parent)
root.AssemblyLinearVelocity = .zero
root.AssemblyAngularVelocity = .zero
root.CFrame = .(part.Position + HEIGHT_OFFSET)
(root, part)
origin = {}
(kind)
.(()
root = ()
origin[kind] = root root.CFrame
state[kind]
kind == matchActive
origin[kind] =
.()
origin[kind]
r = ()
origin[kind] = r r.CFrame
snapshot = {}
obj (tracked[kind])
obj.Parent snapshot[#snapshot + ] = obj
#snapshot ==
.()
_, obj (snapshot)
state[kind]
kind == matchActive
obj.Parent
(tpTo, obj)
.(TP_DELAY)
r = ()
r origin[kind] r.CFrame = origin[kind]
)
(kind, value)
state[kind] == value
state[kind] = value
value (kind)
C = {
bg = .(, , ),
panel = .(, , ),
item = .(, , ),
accent = .(, , ),
accent2= .(, , ),
text = .(, , ),
dim = .(, , ),
on = .(, , ),
off = .(, , ),
}
(class, props, parent)
o = .(class)
k, v (props) o[k] = v
o.Parent = parent
o
(p, r) (, { CornerRadius = .(, r ) }, p)
gui = (, {
Name = , ResetOnSpawn = ,
ZIndexBehavior = .ZIndexBehavior.Sibling,
}, guiParent)
main = (, {
Size = .(, ),
Position = .(, -, , -),
BackgroundColor3 = C.bg, BorderSizePixel = ,
}, gui)
(main, )
stroke = (, { Color = C.accent, Thickness = , Transparency = }, main)
(, {
Color = ColorSequence.(C.accent, C.accent2), Rotation = ,
}, stroke)
top = (, {
Size = .(, , , ), BackgroundColor3 = C.panel, BorderSizePixel = ,
}, main)
(top, )
(, {
Size = .(, , , ), Position = .(, , , -),
BackgroundColor3 = C.panel, BorderSizePixel = ,
}, top)
title = (, {
Size = .(, -, , ), Position = .(, ),
BackgroundTransparency = , Text = ,
TextColor3 = C.text, Font = .Font.GothamBold, TextSize = ,
TextXAlignment = .TextXAlignment.Left,
}, top)
(, { Color = ColorSequence.(C.accent, C.accent2) }, title)
(, {
Size = .(, ), Position = .(, , , ),
BackgroundTransparency = , Text = ,
TextColor3 = C.dim, Font = .Font.Gotham, TextSize = ,
TextXAlignment = .TextXAlignment.Left,
}, top)
(text, xOff, color)
b = (, {
Size = .(, ), Position = .(, xOff, , ),
BackgroundColor3 = color, Text = text, TextColor3 = C.text,
Font = .Font.GothamBold, TextSize = , AutoButtonColor = ,
}, top)
(b, )
b
closeBtn = (, -, .(, , ))
minBtn = (, -, C.item)
dragging, dragStart, startPos
top.InputBegan:((i)
i.UserInputType == .UserInputType.MouseButton1
i.UserInputType == .UserInputType.Touch
dragging, dragStart, startPos = , i.Position, main.Position
i.Changed:(()
i.UserInputState == .UserInputState.End dragging =
)
)
UIS.InputChanged:((i)
dragging (i.UserInputType == .UserInputType.MouseMovement
i.UserInputType == .UserInputType.Touch)
d = i.Position - dragStart
main.Position = .(startPos.X.Scale, startPos.X.Offset + d.X,
startPos.Y.Scale, startPos.Y.Offset + d.Y)
)
side = (, {
Size = .(, , , -), Position = .(, ),
BackgroundColor3 = C.panel, BorderSizePixel = ,
}, main)
(side, )
(, { Padding = .(, ), SortOrder = .SortOrder.LayoutOrder }, side)
(, { PaddingTop = .(, ), PaddingLeft = .(, ), PaddingRight = .(, ) }, side)
content = (, {
Size = .(, -, , -), Position = .(, ),
BackgroundTransparency = ,
}, main)
pages, tabButtons = {}, {}
(name)
n, p (pages) p.Visible = (n == name)
n, b (tabButtons)
TweenService:(b, TweenInfo.(), {
BackgroundColor3 = (n == name) C.accent C.item,
}):()
(name, order)
b = (, {
Size = .(, , , ), BackgroundColor3 = C.item,
Text = name, TextColor3 = C.text, Font = .Font.GothamMedium,
TextSize = , LayoutOrder = order, AutoButtonColor = ,
}, side)
(b, )
tabButtons[name] = b
page = (, {
Size = .(, ), BackgroundTransparency = , Visible = ,
}, content)
(, { Padding = .(, ), SortOrder = .SortOrder.LayoutOrder }, page)
pages[name] = page
b.MouseButton1Click:(() (name) )
page
(page, text, order, color, size)
(, {
Size = .(, , , size size + ), BackgroundTransparency = ,
Text = text, TextColor3 = color C.dim, Font = .Font.Gotham,
TextSize = size , TextXAlignment = .TextXAlignment.Left,
TextWrapped = , LayoutOrder = order,
}, page)
(page, text, order, onChange)
row = (, {
Size = .(, , , ), BackgroundColor3 = C.item,
BorderSizePixel = , LayoutOrder = order,
}, page)
(row, )
(, {
Size = .(, -, , ), Position = .(, ),
BackgroundTransparency = , Text = text, TextColor3 = C.text,
Font = .Font.GothamMedium, TextSize = ,
TextXAlignment = .TextXAlignment.Left,
}, row)
track = (, {
Size = .(, ), Position = .(, -, , -),
BackgroundColor3 = C.off, Text = , AutoButtonColor = ,
}, row)
(track, )
knob = (, {
Size = .(, ), Position = .(, ),
BackgroundColor3 = C.text, BorderSizePixel = ,
}, track)
(knob, )
on =
(v)
on = v
TweenService:(track, TweenInfo.(), { BackgroundColor3 = on C.on C.off }):()
TweenService:(knob, TweenInfo.(), {
Position = on .(, ) .(, ),
}):()
(on)
track.MouseButton1Click:(() ( on) )
set
(page, text, order, cb)
b = (, {
Size = .(, , , ), BackgroundColor3 = C.item,
Text = text, TextColor3 = C.text, Font = .Font.GothamMedium,
TextSize = , LayoutOrder = order,
}, page)
(b, )
b.MouseButton1Click:(cb)
b
candyPage = (, )
(candyPage, , , C.text, )
setCandy = (candyPage, , , (v) (, v) )
candyCount = (candyPage, , , C.dim, )
(candyPage, , , ()
.(()
root = ()
back = root root.CFrame
obj (tracked.candy)
obj.Parent (tpTo, obj); .(TP_DELAY)
r = ()
r back r.CFrame = back
)
)
ghostPage = (, )
(ghostPage, , , C.text, )
setGhost = (ghostPage, , , (v) (, v) )
ghostCount = (ghostPage, , , C.dim, )
ghostStatus = (ghostPage, , , C.dim, )
(ghostPage, , , C.dim, )
cfgPage = (, )
(cfgPage, , , C.text, )
speedLabel = (cfgPage, , , C.dim, )
(name, )
TP_DELAY =
speedLabel.Text = ():(name, )
(cfgPage, , , () (, ) )
(cfgPage, , , () (, ) )
(cfgPage, , , () (, ) )
infoPage = (, )
(infoPage, , , C.text, )
(infoPage, , )
(infoPage, , )
(infoPage, , )
()
.(()
gui.Parent
candyCount.Text = .. (tracked.candy)
ghostCount.Text = .. (tracked.ghost)
ghostStatus.Text = matchActive
ghostStatus.TextColor3 = matchActive C.on C.dim
.()
)
minimized =
minBtn.MouseButton1Click:(()
minimized = minimized
side.Visible = minimized
content.Visible = minimized
main.Size = minimized .(, ) .(, )
)
closeBtn.MouseButton1Click:(()
state.candy, state.ghost = ,
.()
gui:()
)
UIS.InputBegan:((i, gp)
gp i.KeyCode == .KeyCode.RightShift
main.Visible = main.Visible
)