local b = game.StarterGui:WaitForChild("CoreGUI")
local a = b:WaitForChild("SpecsButton")
local player = game.Players.LocalPlayer
ownedunit = Instance.new("Folder", player)
ownedunit.Name = "OwnedSpecs"
function Closeframes()
for i,v in pairs(a.Parent:GetChildren()) do
for i2,v2 in pairs(v:GetChildren()) do
if v2:IsA("ScreenGui") then
v2.Enabled = false
end
end
task.wait(0.5)
end
task.wait(0.5)
end
a.MouseButton1Click:Connect(function()
a.SpecsGUI.Enabled = not a.SpecsGUI.Enabled
for i,v in pairs(player.OwnedSpecs:GetChildren()) do
local SpecTextButton = Instance.new("TextButton", a.SpecsGUI.MainSpecFrames.OwnedSpecs)
SpecTextButton.Name = v.Name.."TextButton"
SpecTextButton.Text = v.Name
SpecTextButton.BackgroundColor3 = Color3.new(0.0509804, 0.74902, 0.854902)
SpecTextButton.RichText = true
SpecTextButton.FontFace.Bold = true
SpecTextButton.TextScaled = true
end
task.wait(0.5)
end)
a.SpecsGUI.MainSpecFrames.CloseButton.MouseButton1Click:Connect(function()
a.SpecsGUI.Enabled = false
end)
** You are now Level 6! **