-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdancikproject
More file actions
94 lines (76 loc) · 2.67 KB
/
dancikproject
File metadata and controls
94 lines (76 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
local Players = game:GetService("Players")
local StarterGui = game:GetService("StarterGui")
local player = Players.LocalPlayer
-- Создаём родительский ScreenGui
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "KeyMenu"
screenGui.Parent = player:WaitForChild("PlayerGui")
-- Фон
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 300, 0, 150)
frame.Position = UDim2.new(0.5, -150, 0.5, -75)
frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
frame.Parent = screenGui
-- Заголовок
local title = Instance.new("TextLabel")
title.Text = "Enter Key"
title.Size = UDim2.new(1, 0, 0, 30)
title.BackgroundTransparency = 1
title.TextColor3 = Color3.new(1,1,1)
title.Font = Enum.Font.GothamBold
title.TextSize = 24
title.Parent = frame
-- Поле ввода ключа
local textbox = Instance.new("TextBox")
textbox.PlaceholderText = "Type your key here"
textbox.Size = UDim2.new(0.9, 0, 0, 40)
textbox.Position = UDim2.new(0.05, 0, 0, 40)
textbox.Text = ""
textbox.Font = Enum.Font.Gotham
textbox.TextSize = 20
textbox.ClearTextOnFocus = false
textbox.Parent = frame
-- Кнопка копирования дискорда
local copyButton = Instance.new("TextButton")
copyButton.Text = "Copy Discord Link"
copyButton.Size = UDim2.new(0.9, 0, 0, 30)
copyButton.Position = UDim2.new(0.05, 0, 0, 90)
copyButton.BackgroundColor3 = Color3.fromRGB(85, 170, 255)
copyButton.TextColor3 = Color3.new(1,1,1)
copyButton.Font = Enum.Font.GothamBold
copyButton.TextSize = 18
copyButton.Parent = frame
-- Кнопка проверки ключа
local submitButton = Instance.new("TextButton")
submitButton.Text = "Submit Key"
submitButton.Size = UDim2.new(0.4, 0, 0, 30)
submitButton.Position = UDim2.new(0.55, 0, 0, 90)
submitButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
submitButton.TextColor3 = Color3.new(1,1,1)
submitButton.Font = Enum.Font.GothamBold
submitButton.TextSize = 18
submitButton.Parent = frame
-- Переменные
local correctKey = "ssgBoxxd"
local discordLink = "https://discord.gg/MDck8D3gPX"
-- Функции кнопок
copyButton.MouseButton1Click:Connect(function()
setclipboard(discordLink)
StarterGui:SetCore("SendNotification", {
Title = "Discord Link";
Text = "Copied to clipboard!";
Duration = 3;
})
end)
submitButton.MouseButton1Click:Connect(function()
local enteredKey = textbox.Text
if enteredKey == correctKey then
player:Kick("Bad executor. Download your exploit from our Discord server: "..discordLink)
else
StarterGui:SetCore("SendNotification", {
Title = "Error";
Text = "Invalid Key!";
Duration = 3;
})
end
end)