local ui = {} if game.CoreGui:FindFirstChild("卡密系统") then game.CoreGui["卡密系统"]:Destroy() end function ui:Create(title,key,group,func) local ScreenGui = Instance.new("ScreenGui") local Frame = Instance.new("Frame") local TextLabel = Instance.new("TextLabel") local TextLabel_2 = Instance.new("TextLabel") local UI = Instance.new("UICorner") local TextLabel_3 = Instance.new("TextLabel") local TextBox = Instance.new("TextBox") local TextButton = Instance.new("TextButton") ScreenGui.Name = "卡密系统" ScreenGui.Parent = game.CoreGui ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling Frame.Name = "卡密系统框架" Frame.Parent = ScreenGui Frame.AnchorPoint = Vector2.new(0.5, 0.5) Frame.BackgroundColor3 = Color3.fromRGB(61, 61, 61) Frame.Position = UDim2.new(0.5, 0, 0.5, 0) Frame.Size = UDim2.new(0.349999994, 0, 0.699999988, 0) TextLabel.Name = "标题" TextLabel.Parent = Frame TextLabel.AnchorPoint = Vector2.new(0.5, 0.5) TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextLabel.BackgroundTransparency = 1.000 TextLabel.Position = UDim2.new(0.5, 0, 0.0500000007, 0) TextLabel.Size = UDim2.new(0.699999988, 0, 0.100000001, 0) TextLabel.Font = Enum.Font.SourceSans TextLabel.Text = title TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255) TextLabel.TextScaled = true TextLabel.TextSize = 14.000 TextLabel.TextWrapped = true TextLabel_2.Name = "状态" TextLabel_2.Parent = Frame TextLabel_2.AnchorPoint = Vector2.new(0.5, 0.5) TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextLabel_2.BackgroundTransparency = 1.000 TextLabel_2.Position = UDim2.new(0.5, 0, 0.800000012, 0) TextLabel_2.Size = UDim2.new(0.699999988, 0, 0.0500000007, 0) TextLabel_2.Font = Enum.Font.SourceSans TextLabel_2.Text = "状态" TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255) TextLabel_2.TextScaled = true TextLabel_2.TextSize = 14.000 TextLabel_2.TextWrapped = true UI.CornerRadius = UDim.new(0, 50) UI.Name = "UI圆润" UI.Parent = Frame TextLabel_3.Name = "状态框" TextLabel_3.Parent = Frame TextLabel_3.AnchorPoint = Vector2.new(0.5, 0.5) TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextLabel_3.BorderColor3 = Color3.fromRGB(0, 0, 0) TextLabel_3.BorderSizePixel = 10 TextLabel_3.Position = UDim2.new(0.5, 0, 0.899999976, 0) TextLabel_3.Size = UDim2.new(0.699999988, 0, 0.100000001, 0) TextLabel_3.Font = Enum.Font.SourceSans TextLabel_3.Text = "状态: 输入卡密中..." TextLabel_3.TextColor3 = Color3.fromRGB(0, 0, 0) TextLabel_3.TextScaled = true TextLabel_3.TextSize = 14.000 TextLabel_3.TextWrapped = true TextBox.Name = "卡密输入框" TextBox.Parent = Frame TextBox.AnchorPoint = Vector2.new(0.5, 0.5) TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextBox.Position = UDim2.new(0.400000006, 0, 0.600000024, 0) TextBox.Size = UDim2.new(0.699999988, 0, 0.100000001, 0) TextBox.Font = Enum.Font.SourceSans TextBox.Text = "" TextBox.TextColor3 = Color3.fromRGB(0, 0, 0) TextBox.TextScaled = true TextBox.TextSize = 14.000 TextBox.TextWrapped = true TextButton.Parent = Frame TextButton.AnchorPoint = Vector2.new(0.5, 0.5) TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextButton.Position = UDim2.new(0.899999976, 0, 0.600000024, 0) TextButton.Size = UDim2.new(0.119999997, 0, 0.100000001, 0) TextButton.Font = Enum.Font.SourceSans TextButton.Text = "确认" TextButton.TextColor3 = Color3.fromRGB(0, 0, 0) TextButton.TextScaled = true TextButton.TextSize = 14.000 TextButton.TextWrapped = true TextButton.MouseButton1Click:Connect(function() _G.EnterKey = TextBox.Text if _G.EnterKey == key then TextLabel_3.Text = "状态: 卡密正确!!!" wait(2) for t = 1,0,0.1 do wait(0.03) Frame.Transparency = t end wait(1) ScreenGui:Destroy() func() else TextLabel_3.Text = "状态: 卡密错误!"..group wait(3) TextLabel_3.Text = "状态: 输入卡密中..." end end) end return ui