local CoreScript = Instance.
new("ScreenGui")
[Link] = "CoreGui"
[Link] = game:GetService("CoreGui")
local frame = [Link]("Frame")
[Link] = [Link](0, 300, 0, 200)
[Link] = [Link](0.5, -150, 0.5, -100)
frame.BackgroundColor3 = [Link](35, 35, 35)
[Link] = 0.5
[Link] = 3
frame.BorderColor3 = [Link]("Dark Red")
[Link] = true
[Link] = true
[Link] = CoreScript
local corner = [Link]("UICorner")
[Link] = [Link](0, 5)
[Link] = frame
local textLabel = [Link]("TextLabel")
[Link] = [Link](1, 0, 0, 32)
[Link] = [Link](0, 0, 0, 0)
textLabel.BackgroundColor3 = [Link](0, 0, 0)
textLabel.TextColor3 = [Link](1, 1, 1)
[Link] = "Top Text Label"
[Link] = frame
local button = [Link]("TextButton")
[Link] = [Link](0, 100, 0, 50)
[Link] = [Link](0.5, -50, 0.5, -25)
button.BackgroundColor3 = [Link](0, 0, 0)
button.TextColor3 = [Link](1, 1, 1)
[Link] = "Center Button"
[Link] = frame
local function onButtonClick()
local remoteEvents = game:GetService("ReplicatedStorage"):GetDescendants()
for _, remoteEvent in ipairs(remoteEvents) do
if remoteEvent:IsA("RemoteEvent") then
frame:Destroy()
local secondFrame = [Link]("Frame")
[Link] = [Link](0, 300, 0, 200)
[Link] = [Link](0.5, -150, 0.5, -100)
secondFrame.BackgroundColor3 = [Link](1, 1, 1)
[Link] = 0.5
[Link] = 0
[Link] = true
[Link] = true
[Link] = CoreScript
local secondCorner = [Link]("UICorner")
[Link] = [Link](0, 5)
[Link] = secondFrame
local textBox = [Link]("TextBox")
[Link] = [Link](0, 200, 0, 50)
[Link] = [Link](0.5, -100, 0.5, -25)
textBox.BackgroundColor3 = [Link](0, 0, 0)
textBox.TextColor3 = [Link](1, 1, 1)
[Link] = secondFrame
local button2 = [Link]("TextButton")
[Link] = [Link](0, 100, 0, 50)
[Link] = [Link](0, 0, 0, 60)
button2.BackgroundColor3 = [Link](0, 0, 0)
button2.TextColor3 = [Link](1, 1, 1)
[Link] = "Button 2"
[Link] = secondFrame
local button3 = [Link]("TextButton")
[Link] = [Link](0, 100, 0, 50)
[Link] = [Link](1, -100, 0, 60)
button3.BackgroundColor3 = [Link](0, 0, 0)
button3.TextColor3 = [Link](1, 1, 1)
[Link] = "Button 3"
[Link] = secondFrame
local function onButton2Click()
local scriptToExecute = [Link]
remoteEvent:FireClient([Link], scriptToExecute)
end
local function onButton3Click()
[Link] = ""
end
button2.MouseButton1Click:Connect(onButton2Click)
button3.MouseButton1Click:Connect(onButton3Click)
break
end
end
end
button.MouseButton1Click:Connect(onButtonClick)