Run it
Copy the script and paste it into your executor.
CONFIG = {
TITLE = ,
AUTHOR = ,
WIDTH = ,
HEIGHT = ,
SLIDE_TIME = ,
BLACK = .(, , ),
PANEL = .(, , ),
CARD = .(, , ),
GOLD = .(, , ),
GOLD_LIGHT = .(, , ),
WHITE = .(, , ),
MUTED = .(, , ),
FONT = .Font.Arcade,
}
Players = :()
TweenService = :()
InsertService = :()
player = Players.LocalPlayer
playerGui = player:()
FONT = CONFIG.FONT
old = playerGui:()
old old:()
(className, props, parent)
obj = .(className)
key, value (props)
obj[key] = value
obj.Parent = parent
obj
(obj, radius)
c = obj:()
c
c = .()
c.Parent = obj
c.CornerRadius = .(, radius )
c
(obj, color, thickness)
s = .()
s.Color = color CONFIG.GOLD
s.Thickness = thickness
s.ApplyStrokeMode = .ApplyStrokeMode.Border
s.Parent = obj
s
(parent, text, size, color)
(, {
BackgroundTransparency = ,
Text = text,
TextColor3 = color CONFIG.WHITE,
TextSize = size ,
Font = FONT,
TextXAlignment = .TextXAlignment.Left,
TextYAlignment = .TextYAlignment.Center,
BorderSizePixel = ,
}, parent)
(parent, text, size, position, color, textColor)
b = (, {
Size = size,
Position = position .(),
BackgroundColor3 = color CONFIG.CARD,
BorderSizePixel = ,
Text = text,
TextColor3 = textColor CONFIG.WHITE,
TextSize = ,
Font = FONT,
AutoButtonColor = ,
}, parent)
(b, )
b
(obj, left, right, top, bottom)
(, {
PaddingLeft = .(, left ),
PaddingRight = .(, right ),
PaddingTop = .(, top ),
PaddingBottom = .(, bottom ),
}, obj)
(obj, n)
obj.LayoutOrder = n
obj
gui = (, {
Name = ,
ResetOnSpawn = ,
DisplayOrder = ,
ZIndexBehavior = .ZIndexBehavior.Sibling,
}, playerGui)
toggle = (, {
Name = ,
Size = .(, ),
Position = .(, , , -),
BackgroundColor3 = CONFIG.BLACK,
BorderSizePixel = ,
Text = ,
TextColor3 = CONFIG.GOLD,
TextSize = ,
Font = FONT,
AutoButtonColor = ,
}, gui)
(toggle, )
(toggle, CONFIG.GOLD, )
panel = (, {
Name = ,
AnchorPoint = .(, ),
Position = .(, -, , ),
Size = .(, , CONFIG.HEIGHT, ),
BackgroundColor3 = CONFIG.BLACK,
BorderSizePixel = ,
Visible = ,
ClipsDescendants = ,
}, gui)
(panel, )
(panel, CONFIG.GOLD, )
(, {
MinSize = .(, ),
MaxSize = .(CONFIG.WIDTH, ),
}, panel)
()
camera = .CurrentCamera
viewport = camera camera.ViewportSize.X
width = .(CONFIG.WIDTH, viewport * )
.(, .(, viewport - width - ))
header = (, {
Size = .(, , , ),
BackgroundColor3 = CONFIG.PANEL,
BorderSizePixel = ,
}, panel)
(header, )
(, {
Position = .(, , , -),
Size = .(, , , ),
BackgroundColor3 = CONFIG.PANEL,
BorderSizePixel = ,
}, header)
logo = (, {
Position = .(, ),
Size = .(, ),
BackgroundColor3 = .(, , ),
BorderSizePixel = ,
}, header)
(logo, )
(logo, CONFIG.GOLD, )
logoText = (logo, , , CONFIG.GOLD_LIGHT)
logoText.Size = .(, )
logoText.TextXAlignment = .TextXAlignment.Center
title = (header, CONFIG.TITLE, , CONFIG.WHITE)
title.Position = .(, )
title.Size = .(, -, , )
title.TextTruncate = .TextTruncate.AtEnd
author = (header, CONFIG.AUTHOR, , CONFIG.GOLD)
author.Position = .(, )
author.Size = .(, -, , )
close = (
header, ,
.(, ),
.(, -, , ),
CONFIG.CARD, CONFIG.GOLD
)
(, {
Position = .(, , , -),
Size = .(, -, , ),
BackgroundColor3 = CONFIG.GOLD,
BorderSizePixel = ,
}, header)
content = (, {
Name = ,
Position = .(, , , ),
Size = .(, , , -),
BackgroundTransparency = ,
BorderSizePixel = ,
ScrollBarThickness = ,
ScrollBarImageColor3 = CONFIG.GOLD,
AutomaticCanvasSize = .AutomaticSize.Y,
CanvasSize = .(),
ScrollingDirection = .ScrollingDirection.Y,
}, panel)
(, {
Padding = .(, ),
SortOrder = .SortOrder.LayoutOrder,
}, content)
(content, , , , )
searchRow = ((, {
Size = .(, , , ),
BackgroundTransparency = ,
}, content), )
searchBox = (, {
Size = .(, -, , ),
BackgroundColor3 = CONFIG.CARD,
BorderSizePixel = ,
Text = ,
PlaceholderText = ,
PlaceholderColor3 = CONFIG.MUTED,
TextColor3 = CONFIG.WHITE,
TextSize = ,
Font = FONT,
ClearTextOnFocus = ,
TextXAlignment = .TextXAlignment.Left,
}, searchRow)
(searchBox, )
(searchBox, , )
searchBtn = (
searchRow, ,
.(, , , ),
.(, -, , ),
CONFIG.GOLD, CONFIG.BLACK
)
category =
categoryBtn = ((
content,
,
.(, , , ),
,
CONFIG.CARD,
CONFIG.GOLD_LIGHT
), )
categoryBtn.TextXAlignment = .TextXAlignment.Left
(categoryBtn, , )
categoryList = ((, {
Size = .(, , , ),
AutomaticSize = .AutomaticSize.Y,
BackgroundTransparency = ,
Visible = ,
}, content), )
(, {
Padding = .(, ),
SortOrder = .SortOrder.LayoutOrder,
}, categoryList)
categories = {
{id=, name=, keyword=},
{id=, name=, keyword=},
{id=, name=, keyword=},
{id=, name=, keyword=},
{id=, name=, keyword=},
{id=, name=, keyword=},
{id=, name=, keyword=},
{id=, name=, keyword=},
{id=, name=, keyword=},
{id=, name=, keyword=},
{id=, name=, keyword=},
{id=, name=, keyword=},
{id=, name=, keyword=},
{id=, name=, keyword=},
{id=, name=, keyword=},
{id=, name=, keyword=},
{id=, name=, keyword=},
{id=, name=, keyword=},
{id=, name=, keyword=},
{id=, name=, keyword=},
}
status = ((content, , , CONFIG.MUTED), )
status.Size = .(, , , )
status.TextTruncate = .TextTruncate.AtEnd
idRow = ((, {
Size = .(, , , ),
BackgroundTransparency = ,
}, content), )
idBox = (, {
Size = .(, -, , ),
BackgroundColor3 = CONFIG.CARD,
BorderSizePixel = ,
Text = ,
PlaceholderText = ,
PlaceholderColor3 = CONFIG.MUTED,
TextColor3 = CONFIG.GOLD_LIGHT,
TextSize = ,
Font = FONT,
ClearTextOnFocus = ,
}, idRow)
(idBox, )
(idBox, , )
copyIdBtn = (
idRow, ,
.(, , , ),
.(, -, , ),
CONFIG.GOLD, CONFIG.BLACK
)
copyIdBtn.TextSize =
heading = ((
content,
,
,
CONFIG.GOLD
), )
heading.Size = .(, , , )
heading.TextTruncate = .TextTruncate.AtEnd
cardGrid = ((, {
Name = ,
Size = .(, , , ),
AutomaticSize = .AutomaticSize.Y,
BackgroundTransparency = ,
}, content), )
(, {
CellSize = .(, -, , ),
CellPadding = .(, ),
SortOrder = .SortOrder.LayoutOrder,
}, cardGrid)
moreBtn = ((
content,
,
.(, , , ),
,
.(, , ),
CONFIG.GOLD_LIGHT
), )
(moreBtn, CONFIG.GOLD, )
selectedId =
(id)
selectedId = (id)
idBox.Text = selectedId
(id)
id = (id selectedId idBox.Text):()
id
status.Text =
clipboardFunction
(()
clipboardFunction = setclipboard
)
(clipboardFunction) ==
ok = (clipboardFunction, id)
ok
status.Text =
idBox.Text = id
idBox:()
idBox.CursorPosition = #id +
status.Text =
copyIdBtn.Activated:(()
(selectedId idBox.Text)
)
query =
page =
loading =
resultOrder =
()
_, child (cardGrid:())
child:()
child:()
resultOrder =
(item)
id = item.AssetId
id
resultOrder +=
card = (, {
Name = ,
BackgroundColor3 = CONFIG.CARD,
BorderSizePixel = ,
LayoutOrder = resultOrder,
ClipsDescendants = ,
}, cardGrid)
(card, )
(card, .(, , ), )
image = (, {
Position = .(, ),
Size = .(, -, , ),
BackgroundColor3 = CONFIG.BLACK,
BorderSizePixel = ,
Image =
.. (id) .. ,
ScaleType = .ScaleType.Fit,
}, card)
(image, )
name = (
card,
(item.Name ),
,
CONFIG.WHITE
)
name.Position = .(, , , )
name.Size = .(, -, , )
name.TextTruncate = .TextTruncate.AtEnd
name.TextWrapped =
copy = (
card,
,
.(, -, , ),
.(, , , ),
CONFIG.GOLD,
CONFIG.BLACK
)
copy.TextSize =
copy.Activated:(()
(id)
(id)
)
(method, searchQuery, pageIndex)
ok, result = (()
InsertService[method](
InsertService,
searchQuery,
pageIndex
)
)
ok
, (result)
(result) ~=
{},
firstPage = result[]
(firstPage) ~=
(firstPage.Results) ~=
{},
firstPage.Results,
(loadMore)
loading
loading =
loadMore
page =
()
page +=
searchQuery = query
chosenCategory
_, cat (categories)
cat.id == category
chosenCategory = cat
chosenCategory chosenCategory.keyword
searchQuery ==
searchQuery = chosenCategory.keyword
searchQuery = chosenCategory.keyword .. .. searchQuery
heading.Text = searchQuery ==
( .. searchQuery)
status.Text =
searchBtn.Text =
.(()
methods
category ==
methods = {}
category ==
methods = {}
methods = {
,
,
}
count =
errors = {}
_, method (methods)
results, err = (
method,
searchQuery,
page
)
results
.(errors, err )
_, item (results)
item.AssetId
(item)
count +=
count >
status.Text = (count) ..
#errors >
status.Text =
status.Text =
searchBtn.Text =
loading =
)
()
query = searchBox.Text
()
searchBtn.Activated:(doSearch)
searchBox.FocusLost:((enterPressed)
enterPressed
()
)
moreBtn.Activated:(()
()
)
i, cat (categories)
b = (
categoryList,
cat.name,
.(, , , ),
,
CONFIG.CARD,
CONFIG.WHITE
)
b.LayoutOrder = i
b.TextXAlignment = .TextXAlignment.Left
(b, , )
b.Activated:(()
category = cat.id
categoryBtn.Text = cat.name ..
categoryList.Visible =
()
)
categoryBtn.Activated:(()
categoryList.Visible = categoryList.Visible
)
isOpen =
animating =
loaded =
animationId =
(value)
animating isOpen == value
animationId +=
thisAnimation = animationId
animating =
isOpen = value
toggle.Active =
value
panel.Visible =
panel.Position = .(
, -CONFIG.WIDTH - ,
,
)
loaded
loaded =
.(()
()
)
destination
value
destination = .(, (), , )
destination = .(
, -CONFIG.WIDTH - ,
,
)
tween = TweenService:(
panel,
TweenInfo.(
CONFIG.SLIDE_TIME,
.EasingStyle.Quint,
.EasingDirection.Out
),
{Position = destination}
)
tween:()
tween.Completed:(()
thisAnimation ~= animationId
value
panel.Visible =
toggle.Visible =
toggle.Active =
animating =
)
toggle.Activated:(()
( isOpen)
)
close.Activated:(()
()
)
camera = .CurrentCamera
camera
camera:():(()
isOpen animating
panel.Position = .(
, (), ,
)
)
()Search Creator store in Studio lite
Studio Lite