Skip to content

Commit f3a92e4

Browse files
Hopefully fixed
This update should fix all the issues with the system.
1 parent b7928b5 commit f3a92e4

2 files changed

Lines changed: 52 additions & 32 deletions

File tree

UI/Key System UI.rbxm

-18.5 KB
Binary file not shown.

main.lua

Lines changed: 52 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ if getgenv().BloxyBinKeyUI then
88
end
99

1010
-- Actual stript
11+
local GuiService = game:GetService("GuiService")
1112
local TweenService = game:GetService("TweenService")
1213
local HttpService = game:GetService("HttpService")
1314
local main = {}
@@ -66,6 +67,15 @@ local function Make_Menu(settings)
6667
thumbnail = "rbxassetid://13584686088"
6768
end
6869

70+
local function randomString() -- Used to give random names to the UI elements for added anti-detections
71+
local length = math.random(10,20)
72+
local array = {}
73+
for i = 1, length do
74+
array[i] = string.char(math.random(32, 126))
75+
end
76+
return table.concat(array)
77+
end
78+
6979
local rbxmSuite = loadstring(game:HttpGetAsync("https://github.com/richie0866/rbxm-suite/releases/latest/download/rbxm-suite.lua"))()
7080
local Path = rbxmSuite.download("Vortex-scripts/BloxyBin-Key-System@latest", "UI.rbxm")
7181

@@ -91,59 +101,69 @@ local function Make_Menu(settings)
91101
KeySystem.Parent = CoreGui
92102
end
93103

94-
KeySystem.Main_Entry.Input["Error Text"]["Error Text Label"].Text = ""
95-
KeySystem.Main_Entry.Image.Image.Image = thumbnail
96-
KeySystem.Main_Entry.Image.Image.BackgroundTransparency = 1
97-
KeySystem.Main_Entry.Script_Info.Creator_Name.Text = settings.Script_Creator or full_response.creator.username
98-
KeySystem.Main_Entry.Script_Info.Script_Name.Text = settings.Script_Name or full_response.paste.title
104+
KeySystem.Name = randomString()
105+
106+
local GUI_Elements = {}
107+
108+
for i, v in pairs(KeySystem:GetDecendants()) do
109+
GUI_Elements[i] = v
110+
v.Name = randomString()
111+
end
112+
113+
GUI_Elements["Error Text Label"].Text = ""
114+
GUI_Elements["Image"].Image = thumbnail
115+
GUI_Elements["Creator Name"].Text = settings.Script_Creator or full_response.creator.username
116+
GUI_Elements["Script Name"].Text = settings.Script_Name or full_response.paste.title
117+
118+
99119

100-
KeySystem.Main_Entry.Visible = true
120+
GUI_Elements["Main Entry"].Visible = true
101121

102-
TweenService:Create(KeySystem.Main_Entry.Script_Info, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {Position = UDim2.new(0, 0, 0, 0)}):Play()
122+
TweenService:Create(GUI_Elements["Script Info"], TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {Position = UDim2.new(0, 0, 0, 0)}):Play()
103123
task.wait(0.25)
104-
TweenService:Create(KeySystem.Main_Entry.Input, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {Position = UDim2.new(0, 0, 0.383, 0)}):Play()
124+
TweenService:Create(GUI_Elements["Input"], TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {Position = UDim2.new(0, 0, 0.383, 0)}):Play()
105125
task.wait(0.25)
106-
TweenService:Create(KeySystem.Main_Entry.Image, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {Position = UDim2.new(0.5, 0, 0.2, 0)}):Play()
126+
TweenService:Create(GUI_Elements["Image Frame"], TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {Position = UDim2.new(0.5, 0, 0.2, 0)}):Play()
107127

108-
KeySystem.Main_Entry["UI Controls"]["Close Button"].Activated:Connect(function()
128+
GUI_Elements["Close Button"].Activated:Connect(function()
109129
KeySystem:Destroy()
110130
getgenv().BloxyBinKeyUI = nil
111131
end)
112132

113-
KeySystem.Main_Entry.Input.Buttons["Copy Link"].Button.Activated:Connect(function()
133+
GUI_Elements["Copy Link Button"].Button.Activated:Connect(function()
114134
local suc = pcall(function()
115135
setclipboard("https://bloxybin.com/key/" .. settings.Paste_ID)
116136
end)
117137

118138
if not suc then
119139

120-
KeySystem.Main_Entry.Input["Error Text"]["Error Text Label"].Text = "Unable to copy link."
121-
TweenService:Create(KeySystem.Main_Entry.Input["Error Text"]["Error Text Label"], TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {Position = UDim2.new(0, 0, 0, 0)}):Play()
140+
GUI_Elements["Error Text Label"].Text = "Unable to copy link."
141+
TweenService:Create(GUI_Elements["Error Text Label"], TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {Position = UDim2.new(0, 0, 0, 0)}):Play()
122142
task.wait(1.5)
123-
TweenService:Create(KeySystem.Main_Entry.Input["Error Text"]["Error Text Label"], TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.In), {Position = UDim2.new(0, 0, 1, 0)}):Play()
143+
TweenService:Create(GUI_Elements["Error Text Label"], TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.In), {Position = UDim2.new(0, 0, 1, 0)}):Play()
124144

125145
end
126146
end)
127147

128-
KeySystem.Main_Entry.Input.Buttons.Submit.Button.Activated:Connect(function()
148+
GUI_Elements["Submit Button"].Activated:Connect(function()
129149

130-
local key_status = check_key(KeySystem.Main_Entry.Input.Key_Input.Text, settings.Paste_ID)
150+
local key_status = check_key(GUI_Elements["Key Input"].Text, settings.Paste_ID)
131151

132152
if key_status == 200 then -- Key is correct
133153

134-
writefile("BloxyBinKeySystem/Keys/" .. settings.Paste_ID .. ".txt", KeySystem.Main_Entry.Input.Key_Input.Text)
154+
writefile("BloxyBinKeySystem/Keys/" .. settings.Paste_ID .. ".txt", GUI_Elements["Key Input"].Text)
135155

136-
TweenService:Create(KeySystem.Main_Entry.Input, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {Position = UDim2.new(-0.5, 0, 0.383, 0)}):Play()
156+
TweenService:Create(GUI_Elements["Input"], TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {Position = UDim2.new(-0.5, 0, 0.383, 0)}):Play()
137157
task.wait(0.25)
138-
TweenService:Create(KeySystem.Main_Entry.Image, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {Position = UDim2.new(1, 0, 0.2, 0)}):Play()
158+
TweenService:Create(GUI_Elements["Image Frame"], TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {Position = UDim2.new(1, 0, 0.2, 0)}):Play()
139159
task.wait(0.25)
140-
TweenService:Create(KeySystem.Main_Entry.Script_Info, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {Position = UDim2.new(-0.5, 0, 0, 0)}):Play()
160+
TweenService:Create(GUI_Elements["Script Info"], TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {Position = UDim2.new(-0.5, 0, 0, 0)}):Play()
141161
task.wait(1)
142162

143163
KeySystem:Destroy()
144164
getgenv().BloxyBinKeyUI = nil
145165

146-
local suc, msg = pcall(settings.Callback, KeySystem.Main_Entry.Input.Key_Input.Text)
166+
local suc, msg = pcall(settings.Callback, GUI_Elements["Key Input"].Text)
147167
if not suc then
148168
warn([[==============
149169
Error. Key System couldn't run script!
@@ -152,29 +172,29 @@ local function Make_Menu(settings)
152172

153173
elseif key_status == 400 or key_status == 0 then -- This is an invalid key / Key isn't for this script
154174

155-
TweenService:Create(KeySystem.Main_Entry.Input.Buttons.Submit.Button, TweenInfo.new(0.2, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {BackgroundColor3 = Color3.fromRGB(109, 0, 0)}):Play()
156-
TweenService:Create(KeySystem.Main_Entry.Input.Buttons.Submit, TweenInfo.new(0.4, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out), {Position = UDim2.new(0.184, 0, 0.358, 0)}):Play()
175+
TweenService:Create(GUI_Elements["Submit Button"], TweenInfo.new(0.2, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {BackgroundColor3 = Color3.fromRGB(109, 0, 0)}):Play()
176+
TweenService:Create(GuiService["Submit"], TweenInfo.new(0.4, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out), {Position = UDim2.new(0.184, 0, 0.358, 0)}):Play()
157177
task.wait(0.1)
158-
TweenService:Create(KeySystem.Main_Entry.Input.Buttons.Submit, TweenInfo.new(0.4, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out), {Position = UDim2.new(0.204, 0, 0.358, 0)}):Play()
178+
TweenService:Create(GuiService["Submit"], TweenInfo.new(0.4, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out), {Position = UDim2.new(0.204, 0, 0.358, 0)}):Play()
159179
task.wait(0.1)
160-
TweenService:Create(KeySystem.Main_Entry.Input.Buttons.Submit, TweenInfo.new(0.4, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out), {Position = UDim2.new(0.194, 0, 0.358, 0)}):Play()
161-
TweenService:Create(KeySystem.Main_Entry.Input.Buttons.Submit.Button, TweenInfo.new(0.2, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {BackgroundColor3 = Color3.fromRGB(59, 59, 59)}):Play()
180+
TweenService:Create(GuiService["Submit"], TweenInfo.new(0.4, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out), {Position = UDim2.new(0.194, 0, 0.358, 0)}):Play()
181+
TweenService:Create(GUI_Elements["Submit Button"], TweenInfo.new(0.2, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {BackgroundColor3 = Color3.fromRGB(59, 59, 59)}):Play()
162182

163183
elseif key_status == 404 then -- Something with the server
164184

165-
KeySystem.Main_Entry.Input["Error Text"]["Error Text Label"].Text = "BloxyBin Servers errored! Please try again later."
166-
TweenService:Create(KeySystem.Main_Entry.Input["Error Text"]["Error Text Label"], TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {Position = UDim2.new(0, 0, 0, 0)}):Play()
185+
GUI_Elements["Error Text Label"].Text = "BloxyBin Servers errored! Please try again later."
186+
TweenService:Create(GUI_Elements["Error Text Label"], TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {Position = UDim2.new(0, 0, 0, 0)}):Play()
167187
task.wait(1.5)
168-
TweenService:Create(KeySystem.Main_Entry.Input["Error Text"]["Error Text Label"], TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.In), {Position = UDim2.new(0, 0, 1, 0)}):Play()
188+
TweenService:Create(GUI_Elements["Error Text Label"], TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.In), {Position = UDim2.new(0, 0, 1, 0)}):Play()
169189

170190
end
171191
end)
172192

173193
task.wait(0.25)
174-
KeySystem.Main_Entry.Input["Error Text"]["Error Text Label"].Text = "Read & Write file functions may be broken on some executors."
175-
TweenService:Create(KeySystem.Main_Entry.Input["Error Text"]["Error Text Label"], TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {Position = UDim2.new(0, 0, 0, 0)}):Play()
194+
GUI_Elements["Error Text Label"].Text = "Read & Write file functions may be broken on some executors."
195+
TweenService:Create(GUI_Elements["Error Text Label"], TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {Position = UDim2.new(0, 0, 0, 0)}):Play()
176196
task.wait(2.5)
177-
TweenService:Create(KeySystem.Main_Entry.Input["Error Text"]["Error Text Label"], TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.In), {Position = UDim2.new(0, 0, 1, 0)}):Play()
197+
TweenService:Create(GUI_Elements["Error Text Label"], TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.In), {Position = UDim2.new(0, 0, 1, 0)}):Play()
178198

179199
end
180200

0 commit comments

Comments
 (0)