Run it
Copy the script and paste it into your executor.
ScreenGui = .()
ScreenGui.Name =
ScreenGui.ResetOnSpawn =
ScreenGui.Parent = :()
MainFrame = .()
MainFrame.Size = .(, , , )
MainFrame.Position = .(, , , )
MainFrame.BackgroundColor3 = .(, , )
MainFrame.BorderSizePixel =
MainFrame.Active =
MainFrame.Draggable =
MainFrame.Parent = ScreenGui
UICorner = .()
UICorner.CornerRadius = .(, )
UICorner.Parent = MainFrame
Title = .()
Title.Size = .(, , , )
Title.Text =
Title.TextSize =
Title.TextColor3 = .(, , )
Title.BackgroundTransparency =
Title.Font = .Font.SourceSansBold
Title.Parent = MainFrame
FPSCounter = .()
FPSCounter.Size = .(, , , )
FPSCounter.Position = .(, , , )
FPSCounter.Text =
FPSCounter.TextColor3 = .(, , )
FPSCounter.BackgroundTransparency =
FPSCounter.Font = .Font.SourceSans
FPSCounter.TextSize =
FPSCounter.Parent = MainFrame
ButtonsContainer = .()
ButtonsContainer.Size = .(, , , )
ButtonsContainer.Position = .(, , , )
ButtonsContainer.BackgroundTransparency =
ButtonsContainer.ClipsDescendants =
ButtonsContainer.Parent = MainFrame
UIListLayout = .()
UIListLayout.FillDirection = .FillDirection.Vertical
UIListLayout.Padding = .(, )
UIListLayout.Parent = ButtonsContainer
PageLeft = .()
PageLeft.Size = .(, , , )
PageLeft.Position = .(, , , )
PageLeft.Text =
PageLeft.BackgroundColor3 = .(, , )
PageLeft.Font = .Font.SourceSansBold
PageLeft.TextSize =
PageLeft.Parent = MainFrame
PageRight = .()
PageRight.Size = .(, , , )
PageRight.Position = .(, , , )
PageRight.Text =
PageRight.BackgroundColor3 = .(, , )
PageRight.Font = .Font.SourceSansBold
PageRight.TextSize =
PageRight.Parent = MainFrame
RunService = :()
RunService.RenderStepped:((dt)
FPSCounter.Text = .. (.( / dt))
)
buttons = {
{name = , = , callback = () () },
{name = , = , on = () () , off = () () },
}
currentPage =
itemsPerPage =
(page)
_, child (ButtonsContainer:())
child:() child:()
startIndex = (page - ) * itemsPerPage +
endIndex = .(page * itemsPerPage, #buttons)
i = startIndex, endIndex
item = buttons[i]
btn = .(, ButtonsContainer)
btn.Size = .(, , , )
btn.Text = item.name
btn.BackgroundColor3 = .(, , )
btn.TextColor3 = .(, , )
btn.Font = .Font.SourceSans
btn.TextSize =
UICornerBtn = .()
UICornerBtn.CornerRadius = .(, )
UICornerBtn.Parent = btn
item.type ==
btn.MouseButton1Click:(item.callback)
item.type ==
toggled =
btn.MouseButton1Click:(()
toggled = toggled
btn.BackgroundColor3 = toggled .(, , ) .(, , )
toggled
item.()
item.()
)
PageLeft.MouseButton1Click:(()
currentPage >
currentPage = currentPage -
(currentPage)
)
PageRight.MouseButton1Click:(()
currentPage < .(#buttons / itemsPerPage)
currentPage = currentPage +
(currentPage)
)
(currentPage)A GUI template with a infinite number of possible pages, fully open src, all you have to do to add your features is make a function, then go to the array that stores the buttons and toggles and add it to that with the name of the button, the type, and the callback there are examples in there