· 4 years ago · Jun 21, 2021, 12:14 PM
1if syn then
2 local thealtening_thing = Instance.new("ScreenGui")
3 local aapikey = Instance.new("Frame")
4 local logoo = Instance.new("ImageLabel")
5 local key = Instance.new("TextBox")
6 local ccontinue = Instance.new("TextButton")
7 local generate = Instance.new("Frame")
8 local gen_title = Instance.new("TextLabel")
9 local username_title = Instance.new("TextLabel")
10 local username_box = Instance.new("Frame")
11 local USER = Instance.new("TextLabel")
12 local copy_user = Instance.new("TextButton")
13 local token_title = Instance.new("TextLabel")
14 local token_box = Instance.new("Frame")
15 local TOKEN = Instance.new("TextLabel")
16 local copy_token = Instance.new("TextButton")
17 local GENERATE = Instance.new("TextButton")
18 local acc_info = Instance.new("Frame")
19 local acc_title = Instance.new("TextLabel")
20 local FAVORITE = Instance.new("TextButton")
21 local PRIVATE = Instance.new("TextButton")
22 local STATUS = Instance.new("TextLabel")
23 HttpService = game:GetService("HttpService")
24 --Properties:
25
26 thealtening_thing.Name = "thealtening_thing"
27 thealtening_thing.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
28
29 aapikey.Name = "apikey"
30 aapikey.Parent = thealtening_thing
31 aapikey.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
32 aapikey.Position = UDim2.new(0.3487055, 0, 0.157303363, 0)
33 aapikey.Size = UDim2.new(0, 374, 0, 235)
34
35 logoo.Name = "logoo"
36 logoo.Parent = aapikey
37 logoo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
38 logoo.BackgroundTransparency = 1.000
39 logoo.Position = UDim2.new(0.319892436, 0, 0, 0)
40 logoo.Size = UDim2.new(0, 133, 0, 99)
41 logoo.Image = "http://www.roblox.com/asset/?id=6597949394"
42
43 key.Name = "key"
44 key.Parent = aapikey
45 key.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
46 key.BorderColor3 = Color3.fromRGB(0, 255, 0)
47 key.Position = UDim2.new(0.231182799, 0, 0.559485555, 0)
48 key.Size = UDim2.new(0, 200, 0, 29)
49 key.Font = Enum.Font.SourceSansLight
50 key.PlaceholderText = "Please insert your api key here.."
51 key.Text = ""
52 key.TextColor3 = Color3.fromRGB(255, 255, 255)
53 key.TextSize = 14.000
54
55 ccontinue.Name = "ccontinue"
56 ccontinue.Parent = aapikey
57 ccontinue.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
58 ccontinue.BorderColor3 = Color3.fromRGB(0, 255, 0)
59 ccontinue.Position = UDim2.new(0.244551703, 0, 0.773496628, 0)
60 ccontinue.Size = UDim2.new(0, 190, 0, 29)
61 ccontinue.Font = Enum.Font.SourceSansLight
62 ccontinue.Text = "Check"
63 ccontinue.TextColor3 = Color3.fromRGB(255, 255, 255)
64 ccontinue.TextSize = 14.000
65 ccontinue.MouseButton1Down:connect(function()
66 storedapikey = key.Text
67 local check = syn.request({
68 Url = "https://api.thealtening.com/v2/license?key="..storedapikey,
69 Method = "GET";
70 })
71 ValidCheck = HttpService:JSONDecode(check.Body);
72 HasLicense = check.hasLicense;
73 LicenseType = check.licenseType;
74 Code = check.StatusCode;
75 if Code == 200 then
76
77 if LicenseType == "premium" or "basic" then
78 storedapikey = key.Text;
79 key.TextColor3 = Color3.fromRGB(0, 255, 0)
80 key.Text = "Valid API Key. Opening Generator."
81 wait(0.4)
82 aapikey:Destroy()
83 generate.Visible = true
84 end
85 end
86 if Code == 401 then
87 key.TextColor3 = Color3.fromRGB(255, 0, 0)
88 key.Text = "Invalid API key."
89 if Code == 403 then
90 key.TextColor3 = Color3.fromRGB(255, 0, 0)
91 key.Text = "You do not own TheAltening Premium." end;
92 if Code == 404 then
93 key.TextColor3 = Color3.fromRGB(255, 0, 0)
94 key.Text"Endpoint does not exist." end;
95 if Code == 500 then
96 key.TextColor3 = Color3.fromRGB(255, 0, 0)
97 key.Text = "TheAltening servers are down for maintence or an unknown error occured." end;
98
99 end
100
101 end)
102
103 generate.Name = "generate"
104 generate.Parent = thealtening_thing
105 generate.Active = true
106 generate.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
107 generate.BorderColor3 = Color3.fromRGB(0, 255, 127)
108 generate.Position = UDim2.new(0.220064715, 0, 0.269662917, 0)
109 generate.Size = UDim2.new(0, 551, 0, 287)
110 generate.Visible = false
111
112 gen_title.Name = "gen_title"
113 gen_title.Parent = generate
114 gen_title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
115 gen_title.BackgroundTransparency = 1.000
116 gen_title.Position = UDim2.new(0, 0, 0.111524165, 0)
117 gen_title.Size = UDim2.new(0, 200, 0, 32)
118 gen_title.Font = Enum.Font.SourceSansBold
119 gen_title.Text = "Generate"
120 gen_title.TextColor3 = Color3.fromRGB(255, 255, 255)
121 gen_title.TextScaled = true
122 gen_title.TextSize = 14.000
123 gen_title.TextWrapped = true
124
125 username_title.Name = "username_title"
126 username_title.Parent = generate
127 username_title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
128 username_title.BackgroundTransparency = 1.000
129 username_title.BorderColor3 = Color3.fromRGB(27, 42, 53)
130 username_title.Position = UDim2.new(0, 0, 0.282527894, 0)
131 username_title.Size = UDim2.new(0, 89, 0, 22)
132 username_title.Font = Enum.Font.SourceSans
133 username_title.Text = "Username:"
134 username_title.TextColor3 = Color3.fromRGB(255, 255, 255)
135 username_title.TextSize = 19.000
136
137 username_box.Name = "username_box"
138 username_box.Parent = username_title
139 username_box.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
140 username_box.BorderColor3 = Color3.fromRGB(0, 255, 0)
141 username_box.Position = UDim2.new(0.0891943127, 0, 0.955221295, 0)
142 username_box.Size = UDim2.new(0, 252, 0, 34)
143
144 USER.Name = "USER"
145 USER.Parent = username_box
146 USER.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
147 USER.BackgroundTransparency = 1.000
148 USER.Position = UDim2.new(0, 0, 0.0882352963, 0)
149 USER.Size = UDim2.new(0, 89, 0, 28)
150 USER.Font = Enum.Font.SourceSansSemibold
151 USER.Text = "Not Generated"
152 USER.TextColor3 = Color3.fromRGB(255, 255, 255)
153 USER.TextSize = 14.000
154
155 copy_user.Name = "copy_user"
156 copy_user.Parent = USER
157 copy_user.BackgroundColor3 = Color3.fromRGB(0, 255, 127)
158 copy_user.BorderColor3 = Color3.fromRGB(0, 255, 127)
159 copy_user.Position = UDim2.new(2.83146071, 0, -0.107142858, 0)
160 copy_user.Size = UDim2.new(0, 78, 0, 34)
161 copy_user.Font = Enum.Font.SourceSansBold
162 copy_user.Text = "Copy"
163 copy_user.TextColor3 = Color3.fromRGB(255, 255, 255)
164 copy_user.TextScaled = true
165 copy_user.TextSize = 14.000
166 copy_user.TextWrapped = true
167 copy_token.MouseButton1Down:connect(function()
168 setclipboard(AltName)
169 end)
170
171 token_title.Name = "token_title"
172 token_title.Parent = generate
173 token_title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
174 token_title.BackgroundTransparency = 1.000
175 token_title.BorderColor3 = Color3.fromRGB(27, 42, 53)
176 token_title.Position = UDim2.new(0, 0, 0.53531599, 0)
177 token_title.Size = UDim2.new(0, 73, 0, 22)
178 token_title.Font = Enum.Font.SourceSans
179 token_title.Text = "Token:"
180 token_title.TextColor3 = Color3.fromRGB(255, 255, 255)
181 token_title.TextSize = 19.000
182
183 token_box.Name = "token_box"
184 token_box.Parent = token_title
185 token_box.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
186 token_box.BorderColor3 = Color3.fromRGB(0, 255, 0)
187 token_box.Position = UDim2.new(0.0891943127, 0, 0.955221295, 0)
188 token_box.Size = UDim2.new(0, 252, 0, 34)
189
190 TOKEN.Name = "TOKEN"
191 TOKEN.Parent = token_box
192 TOKEN.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
193 TOKEN.BackgroundTransparency = 1.000
194 TOKEN.Position = UDim2.new(0, 0, 0.0882352963, 0)
195 TOKEN.Size = UDim2.new(0, 89, 0, 28)
196 TOKEN.Font = Enum.Font.SourceSansSemibold
197 TOKEN.Text = "Not Generated"
198 TOKEN.TextColor3 = Color3.fromRGB(255, 255, 255)
199 TOKEN.TextSize = 14.000
200
201 copy_token.Name = "copy_token"
202 copy_token.Parent = TOKEN
203 copy_token.BackgroundColor3 = Color3.fromRGB(0, 255, 127)
204 copy_token.BorderColor3 = Color3.fromRGB(0, 255, 127)
205 copy_token.Position = UDim2.new(2.83146071, 0, -0.107142858, 0)
206 copy_token.Size = UDim2.new(0, 78, 0, 34)
207 copy_token.Font = Enum.Font.SourceSansBold
208 copy_token.Text = "Copy"
209 copy_token.TextColor3 = Color3.fromRGB(255, 255, 255)
210 copy_token.TextScaled = true
211 copy_token.TextSize = 14.000
212 copy_token.TextWrapped = true
213 copy_token.MouseButton1Down:connect(function()
214 setclipboard(Token)
215 end)
216
217 GENERATE.Name = "GENERATE"
218 GENERATE.Parent = generate
219 GENERATE.BackgroundColor3 = Color3.fromRGB(0, 255, 127)
220 GENERATE.BorderColor3 = Color3.fromRGB(0, 255, 127)
221 GENERATE.Position = UDim2.new(0.012704174, 0, 0.787456453, 0)
222 GENERATE.Size = UDim2.new(0, 164, 0, 40)
223 GENERATE.Font = Enum.Font.SourceSansSemibold
224 GENERATE.Text = "Generate"
225 GENERATE.TextColor3 = Color3.fromRGB(255, 255, 255)
226 GENERATE.TextScaled = true
227 GENERATE.TextSize = 14.000
228 GENERATE.TextWrapped = true
229 GENERATE.MouseButton1Down:connect(function()
230 local Response = syn.request({
231 Url = "https://api.thealtening.com/v2/generate?key="..storedapikey,"[&info=true]",
232 Method = "GET";
233 })
234
235
236 SuccesCheck = Response.Success;
237 Info = Response.Body;
238 Root = HttpService:JSONDecode(Info);
239 Token = Root.token;
240 AltName = Root.username;
241 CheckLimit = Root.limit;
242 local ExpireCheck = syn.request({
243 Url = "https://api.thealtening.com/v2/info?key="..storedapikey,"&token="..Token,
244 Method = "GET";
245 })
246 ExpireInfo = ExpireCheck.Body
247 ExpireDecode = HttpService:JSONDecode(ExpireInfo)
248 Date = tostring(ExpireDecode.expires)
249 Code = Response.StatusCode;
250 if CheckLimit == true then STATUS.TextColor3 = Color3.fromRGB(255, 0, 0) STATUS.Text = "You've hit your daily (api) limit for alts."
251 else
252
253
254 if SuccesCheck == true then
255 setclipboard(Token)
256 STATUS.Text = "Success! Generated an alt. Expires on "..Date
257 username_box.USER.Text = AltName
258 token_box.TOKEN.Text = Token
259 else STATUS.TextColor3 = Color3.fromRGB(255, 85, 0) STATUS.Text = "An unknown error has occured. Please Try again later."
260 end
261 end
262 end)
263 acc_info.Name = "acc_info"
264 acc_info.Parent = generate
265 acc_info.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
266 acc_info.BorderColor3 = Color3.fromRGB(0, 255, 127)
267 acc_info.Position = UDim2.new(1.01270413, 0, 0, 0)
268 acc_info.Size = UDim2.new(0, 264, 0, 287)
269
270 acc_title.Name = "acc_title"
271 acc_title.Parent = acc_info
272 acc_title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
273 acc_title.BackgroundTransparency = 1.000
274 acc_title.Position = UDim2.new(0.121212125, 0, 0, 0)
275 acc_title.Size = UDim2.new(0, 200, 0, 30)
276 acc_title.Font = Enum.Font.SourceSansBold
277 acc_title.Text = "Account Information"
278 acc_title.TextColor3 = Color3.fromRGB(255, 255, 255)
279 acc_title.TextScaled = true
280 acc_title.TextSize = 14.000
281 acc_title.TextWrapped = true
282
283 FAVORITE.Name = "FAVORITE"
284 FAVORITE.Parent = acc_info
285 FAVORITE.BackgroundColor3 = Color3.fromRGB(0, 255, 127)
286 FAVORITE.BorderColor3 = Color3.fromRGB(0, 255, 127)
287 FAVORITE.Position = UDim2.new(0.0530303046, 0, 0.763066173, 0)
288 FAVORITE.Size = UDim2.new(0, 87, 0, 36)
289 FAVORITE.Font = Enum.Font.SourceSansBold
290 FAVORITE.Text = "Favorite"
291 FAVORITE.TextColor3 = Color3.fromRGB(255, 255, 255)
292 FAVORITE.TextSize = 14.000
293 FAVORITE.MouseButton1Down:connect(function()
294 local Favorite = syn.request({
295 Url = "https://api.thealtening.com/v2/favorite?key=" .. storedapikey, "&token=" .. Token,
296 Method= "GET"
297 })
298 FavoriteInfo = Favorite.Body;
299 FavoriteDecode = HttpService:JSONDecode(FavoriteInfo);
300 STATUS.Text = "Succesfully favorited the alt."
301 end)
302
303 PRIVATE.Name = "PRIVATE"
304 PRIVATE.Parent = acc_info
305 PRIVATE.BackgroundColor3 = Color3.fromRGB(0, 255, 127)
306 PRIVATE.BorderColor3 = Color3.fromRGB(0, 255, 127)
307 PRIVATE.Position = UDim2.new(0.549242437, 0, 0.763066173, 0)
308 PRIVATE.Size = UDim2.new(0, 87, 0, 36)
309 PRIVATE.Font = Enum.Font.SourceSansBold
310 PRIVATE.Text = "Private"
311 PRIVATE.TextColor3 = Color3.fromRGB(255, 255, 255)
312 PRIVATE.TextSize = 14.000
313 PRIVATE.MouseButton1Down:connect(function()
314 local private = syn.request({
315 Url = "https://api.thealtening.com/v2/private?key=" .. storedapikey, "&token=" .. Token,
316 Method = "GET"
317 })
318 PrivateInfo = private.Body;
319 PrivateDecode = HttpService:JSONDecode(PrivateInfo);
320 STATUS.Text = "Succesfully privated the alt."
321 end)
322
323 STATUS.Name = "STATUS"
324 STATUS.Parent = generate
325 STATUS.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
326 STATUS.BackgroundTransparency = 1.000
327 STATUS.Position = UDim2.new(0.644283116, 0, 0.28222996, 0)
328 STATUS.Size = UDim2.new(0, 180, 0, 31)
329 STATUS.Font = Enum.Font.SourceSansLight
330 STATUS.Text = "Waiting.."
331 STATUS.TextColor3 = Color3.fromRGB(255, 255, 255)
332 STATUS.TextSize = 17.000
333 STATUS.TextWrapped = true
334
335 -- Scripts:
336 local function LOSYWZZ_fake_script() -- generate.LocalScript
337 local script = Instance.new('LocalScript', generate)
338
339 script.Parent.Parent.generate.Draggable = true
340 end
341 coroutine.wrap(LOSYWZZ_fake_script)()
342else game.Players.LocalPlayer:Kick("Only Synapse is supported sorry") end;