-- Services
local Players = game:GetService("Players")
-- Player
local player = Players.LocalPlayer
-- Create ScreenGui
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "MyGui"
screenGui.Parent = player:WaitForChild("PlayerGui")
-- Create main frame
local mainFrame = Instance.new("Frame")
mainFrame.Size = UDim2.new(0, 500, 0, 500)
mainFrame.Position = UDim2.new(0.5, -250, 0.5, -250)
mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) -- Dark background color
mainFrame.BorderSizePixel = 0
mainFrame.Active = true
mainFrame.Draggable = true -- Make the frame draggable
mainFrame.Style = Enum.FrameStyle.RobloxRound
mainFrame.Parent = screenGui
-- Create TextBox at the top
local textBox = Instance.new("TextBox")
textBox.Size = UDim2.new(0, 480, 0, 40)
textBox.Position = UDim2.new(0, 10, 0, 10)
textBox.BackgroundColor3 = Color3.fromRGB(50, 50, 50) -- TextBox color
textBox.TextColor3 = Color3.fromRGB(255, 255, 255) -- White text color
textBox.Text = "Type here..."
textBox.ClearTextOnFocus = true
textBox.Parent = mainFrame
-- Create ScrollingFrame
local scrollingFrame = Instance.new("ScrollingFrame")
scrollingFrame.Size = UDim2.new(0, 480, 0, 400)
scrollingFrame.Position = UDim2.new(0, 10, 0, 60)
scrollingFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50) -- ScrollingFrame color
scrollingFrame.ScrollBarImageColor3 = Color3.fromRGB(255, 255, 255) -- White scroll bar color
scrollingFrame.ScrollBarThickness = 10
scrollingFrame.Parent = mainFrame
-- Create buttons inside the ScrollingFrame
local buttonCount = 20 -- Adjust the number of buttons as needed
local buttonSize = UDim2.new(0, 200, 0, 40)
local buttonSpacing = 10
-- Function to execute require based on button index
local function executeRequire(index)
local success, result = pcall(function()
-- Replace the following line with your specific require statement for each button
if index == 1 then
require(13490616390)["L0$T"]("Castieldagon2", "SAn1Ty")
elseif index == 2 then
-- Add specific action for Button 2
elseif index == 3 then
-- Add specific action for Button 3
-- Add more conditions for other buttons as needed
else
-- Add a default action for other buttons
end
end)
if not success then
warn("Failed to execute require:", result)
end
end
for i = 1, buttonCount do
local button = Instance.new("TextButton")
button.Size = buttonSize
button.Position = UDim2.new(0, 10, 0, (i - 1) * (buttonSize.Y.Offset + buttonSpacing))
button.BackgroundColor3 = Color3.fromRGB(50, 50, 50) -- Button color
button.Text = "Button " .. i
button.TextColor3 = Color3.fromRGB(255, 255, 255) -- White text color
button.Parent = scrollingFrame
-- Function to execute when each button is clicked
button.MouseButton1Click:Connect(function()
executeRequire(i)
end)
end
-- Function to adjust button positions when the ScrollingFrame size changes
local function updateButtonPositions()
local yOffset = 0
for _, button in ipairs(scrollingFrame:GetChildren()) do
if button:IsA("TextButton") then
button.Position = UDim2.new(0, 10, 0, yOffset)
yOffset = yOffset + buttonSize.Y.Offset + buttonSpacing
end
end
end
-- Connect the updateButtonPositions function to run when the ScrollingFrame size changes
scrollingFrame:GetPropertyChangedSignal("CanvasSize"):Connect(updateButtonPositions)
-- Initial adjustment of button positions
updateButtonPositions()