· last year · Oct 04, 2024, 09:40 AM
1-- Version 1: <<Planetary>> General-Purpose GUI
2-- Created by: bioladevs
3
4--[[
5 Do not claim ownership of this file.
6 You are free to distribute this file as long as the original author (bioladevs) is credited.
7
8 The author is not responsible for any malicious code, or damages new edits of this file given by someone other than the author have caused.
9]]
10
11--[[
12 <<How do i import custom commands?>>
13
14 // Go to line 1,021
15--]]
16
17------------------------ >> << ------------------------
18
19
20local Planetary = Instance.new("ScreenGui")
21Planetary.Name = "Planetary"
22Planetary.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
23Planetary.Parent = game.Players.LocalPlayer.PlayerGui
24
25
26local _C_CommandLine = Instance.new("Frame")
27_C_CommandLine.Draggable = true
28_C_CommandLine.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']
29_C_CommandLine.ZIndex = 2500
30_C_CommandLine.BorderSizePixel = 0
31_C_CommandLine.Size = UDim2.new(0.391605824, 0, 0.0210382827, 0)
32_C_CommandLine.BorderColor3 = Color3.new(0, 0, 0)
33_C_CommandLine.Name = "_C_CommandLine"
34_C_CommandLine.BackgroundTransparency = 0.5
35_C_CommandLine.Position = UDim2.new(0.303701758, 0, 0.489071041, 0)
36_C_CommandLine.Visible = false
37_C_CommandLine.BackgroundColor3 = Color3.new(0.133333, 0.133333, 0.133333)
38
39
40local __UI0 = Instance.new("UIStroke")
41__UI0.Thickness = 3
42__UI0.Name = "__UI0"
43__UI0.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_CommandLine']
44__UI0.Transparency = 0.5
45
46
47local _C_InputDisplayer = Instance.new("ScrollingFrame")
48_C_InputDisplayer.Active = true
49_C_InputDisplayer.BorderSizePixel = 0
50_C_InputDisplayer.CanvasSize = UDim2.new(0, 3000, 0, 0)
51_C_InputDisplayer.BackgroundColor3 = Color3.new(1, 1, 1)
52_C_InputDisplayer.AutomaticCanvasSize = Enum.AutomaticSize.X
53_C_InputDisplayer.Size = UDim2.new(0.949999988, 0, 1, 0)
54_C_InputDisplayer.ScrollBarImageColor3 = Color3.new(0, 0, 0)
55_C_InputDisplayer.BorderColor3 = Color3.new(0, 0, 0)
56_C_InputDisplayer.ScrollBarThickness = 1
57_C_InputDisplayer.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_CommandLine']
58_C_InputDisplayer.BackgroundTransparency = 1
59_C_InputDisplayer.Position = UDim2.new(0.0269999914, 0, 0, 0)
60_C_InputDisplayer.Name = "_C_InputDisplayer"
61
62
63local _S_CommandLine_UserInputTxt = Instance.new("TextBox")
64_S_CommandLine_UserInputTxt.ZIndex = 4000
65_S_CommandLine_UserInputTxt.BorderSizePixel = 0
66_S_CommandLine_UserInputTxt.RichText = true
67_S_CommandLine_UserInputTxt.BackgroundColor3 = Color3.new(1, 1, 1)
68_S_CommandLine_UserInputTxt.AutomaticSize = Enum.AutomaticSize.X
69_S_CommandLine_UserInputTxt.Size = UDim2.new(0.939999998, 0, 1, 0)
70_S_CommandLine_UserInputTxt.ClearTextOnFocus = false
71_S_CommandLine_UserInputTxt.Name = "_S_CommandLine_UserInputTxt"
72_S_CommandLine_UserInputTxt.TextColor3 = Color3.new(1, 1, 1)
73_S_CommandLine_UserInputTxt.BorderColor3 = Color3.new(0, 0, 0)
74_S_CommandLine_UserInputTxt.Text = ''
75_S_CommandLine_UserInputTxt.Font = Enum.Font.RobotoMono
76_S_CommandLine_UserInputTxt.BackgroundTransparency = 1
77_S_CommandLine_UserInputTxt.Position = UDim2.new(0.00999999978, 0, 0, 0)
78_S_CommandLine_UserInputTxt.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_CommandLine']['_C_InputDisplayer']
79_S_CommandLine_UserInputTxt.TextSize = 12
80_S_CommandLine_UserInputTxt.TextXAlignment = Enum.TextXAlignment.Left
81
82
83local _S_CommandLine_SyntaxInterfaceTxt = Instance.new("TextBox")
84_S_CommandLine_SyntaxInterfaceTxt.ZIndex = 3000
85_S_CommandLine_SyntaxInterfaceTxt.BorderSizePixel = 0
86_S_CommandLine_SyntaxInterfaceTxt.RichText = true
87_S_CommandLine_SyntaxInterfaceTxt.BackgroundColor3 = Color3.new(1, 1, 1)
88_S_CommandLine_SyntaxInterfaceTxt.AutomaticSize = Enum.AutomaticSize.X
89_S_CommandLine_SyntaxInterfaceTxt.Size = UDim2.new(0.940248311, 0, 1, 0)
90_S_CommandLine_SyntaxInterfaceTxt.ClearTextOnFocus = false
91_S_CommandLine_SyntaxInterfaceTxt.Name = "_S_CommandLine_SyntaxInterfaceTxt"
92_S_CommandLine_SyntaxInterfaceTxt.TextColor3 = Color3.new(1, 1, 1)
93_S_CommandLine_SyntaxInterfaceTxt.BorderColor3 = Color3.new(0, 0, 0)
94_S_CommandLine_SyntaxInterfaceTxt.Text = ''
95_S_CommandLine_SyntaxInterfaceTxt.Font = Enum.Font.RobotoMono
96_S_CommandLine_SyntaxInterfaceTxt.BackgroundTransparency = 1
97_S_CommandLine_SyntaxInterfaceTxt.Position = UDim2.new(0.00999999978, 0, 0, 0)
98_S_CommandLine_SyntaxInterfaceTxt.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_CommandLine']['_C_InputDisplayer']
99_S_CommandLine_SyntaxInterfaceTxt.TextSize = 12
100_S_CommandLine_SyntaxInterfaceTxt.TextXAlignment = Enum.TextXAlignment.Left
101
102
103local _G_I0 = Instance.new("ImageLabel")
104_G_I0.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_CommandLine']
105_G_I0.Image = "http://www.roblox.com/asset/?id=14776960352"
106_G_I0.ZIndex = 500
107_G_I0.BorderSizePixel = 0
108_G_I0.Size = UDim2.new(0.0721620023, 0, 2.43413782, 0)
109_G_I0.Name = "_G_I0"
110_G_I0.BorderColor3 = Color3.new(0, 0, 0)
111_G_I0.ImageColor3 = Color3.new(0.443137, 0.341176, 0.372549)
112_G_I0.BackgroundTransparency = 1
113_G_I0.Position = UDim2.new(0.955990851, 0, -1.43413782, 0)
114_G_I0.BackgroundColor3 = Color3.new(1, 1, 1)
115
116
117local _G_I1 = Instance.new("ImageLabel")
118_G_I1.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_CommandLine']
119_G_I1.Image = "http://www.roblox.com/asset/?id=14776960352"
120_G_I1.ZIndex = 500
121_G_I1.BorderSizePixel = 0
122_G_I1.Size = UDim2.new(0.0721620023, 0, 2.43413782, 0)
123_G_I1.Name = "_G_I1"
124_G_I1.BorderColor3 = Color3.new(0, 0, 0)
125_G_I1.ImageColor3 = Color3.new(0.443137, 0.341176, 0.372549)
126_G_I1.BackgroundTransparency = 1
127_G_I1.Position = UDim2.new(0.955990851, 0, -1.43413782, 0)
128_G_I1.BackgroundColor3 = Color3.new(1, 1, 1)
129
130
131local _C_OutputWindow = Instance.new("Frame")
132_C_OutputWindow.Draggable = true
133_C_OutputWindow.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']
134_C_OutputWindow.ZIndex = 500
135_C_OutputWindow.BorderSizePixel = 0
136_C_OutputWindow.Size = UDim2.new(0.261261702, 0, 0.445901632, 0)
137_C_OutputWindow.BorderColor3 = Color3.new(0, 0, 0)
138_C_OutputWindow.Name = "_C_OutputWindow"
139_C_OutputWindow.BackgroundTransparency = 0.5
140_C_OutputWindow.Position = UDim2.new(0.0205015708, 0, 0.260382593, 0)
141_C_OutputWindow.Visible = false
142_C_OutputWindow.BackgroundColor3 = Color3.new(0.133333, 0.133333, 0.133333)
143
144
145local __UI2 = Instance.new("UIStroke")
146__UI2.Thickness = 3
147__UI2.Name = "__UI2"
148__UI2.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_OutputWindow']
149__UI2.Transparency = 0.5
150
151
152local _G_I4 = Instance.new("ImageLabel")
153_G_I4.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_OutputWindow']
154_G_I4.Image = "rbxassetid://624323430"
155_G_I4.BorderSizePixel = 0
156_G_I4.Size = UDim2.new(1, 0, 1, 0)
157_G_I4.Name = "_G_I4"
158_G_I4.BorderColor3 = Color3.new(0, 0, 0)
159_G_I4.ImageTransparency = 0.949999988079071
160_G_I4.BackgroundTransparency = 1
161_G_I4.BackgroundColor3 = Color3.new(1, 1, 1)
162
163
164local _G_I2 = Instance.new("ImageLabel")
165_G_I2.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_OutputWindow']
166_G_I2.Image = "http://www.roblox.com/asset/?id=14776960352"
167_G_I2.ZIndex = 500
168_G_I2.BorderSizePixel = 0
169_G_I2.Size = UDim2.new(0.0965265557, 0, 0.10264238, 0)
170_G_I2.Name = "_G_I2"
171_G_I2.BorderColor3 = Color3.new(0, 0, 0)
172_G_I2.ImageColor3 = Color3.new(0.443137, 0.341176, 0.372549)
173_G_I2.BackgroundTransparency = 1
174_G_I2.Position = UDim2.new(0.936996222, 0, -0.0523973927, 0)
175_G_I2.BackgroundColor3 = Color3.new(1, 1, 1)
176
177
178local _G_I3 = Instance.new("ImageLabel")
179_G_I3.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_OutputWindow']
180_G_I3.Image = "http://www.roblox.com/asset/?id=14776960352"
181_G_I3.ZIndex = 500
182_G_I3.BorderSizePixel = 0
183_G_I3.Size = UDim2.new(0.0965265557, 0, 0.10264238, 0)
184_G_I3.Name = "_G_I3"
185_G_I3.BorderColor3 = Color3.new(0, 0, 0)
186_G_I3.ImageColor3 = Color3.new(0.443137, 0.341176, 0.372549)
187_G_I3.BackgroundTransparency = 1
188_G_I3.Position = UDim2.new(0.936996222, 0, -0.0523973927, 0)
189_G_I3.BackgroundColor3 = Color3.new(1, 1, 1)
190
191
192local _C_OutpScroll = Instance.new("ScrollingFrame")
193_C_OutpScroll.Active = true
194_C_OutpScroll.BorderSizePixel = 0
195_C_OutpScroll.CanvasSize = UDim2.new(0, 3000, 0, 1000)
196_C_OutpScroll.BackgroundColor3 = Color3.new(1, 1, 1)
197_C_OutpScroll.AutomaticCanvasSize = Enum.AutomaticSize.XY
198_C_OutpScroll.Size = UDim2.new(0.949999988, 0, 0.969362736, 0)
199_C_OutpScroll.ScrollBarImageColor3 = Color3.new(0, 0, 0)
200_C_OutpScroll.BorderColor3 = Color3.new(0, 0, 0)
201_C_OutpScroll.ScrollBarThickness = 3
202_C_OutpScroll.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_OutputWindow']
203_C_OutpScroll.BackgroundTransparency = 1
204_C_OutpScroll.Position = UDim2.new(0.0269999579, 0, 0.0306372587, 0)
205_C_OutpScroll.Name = "_C_OutpScroll"
206
207
208local Output_OutputTxt = Instance.new("TextLabel")
209Output_OutputTxt.ZIndex = 10000
210Output_OutputTxt.BorderSizePixel = 0
211Output_OutputTxt.RichText = true
212Output_OutputTxt.TextYAlignment = Enum.TextYAlignment.Top
213Output_OutputTxt.BackgroundColor3 = Color3.new(1, 1, 1)
214Output_OutputTxt.Text = [[**Planetary: Output-Window > Version: 1.0.0**
215 /////////////////////////////////////////////
216 **To close output, use the \"output-close\" command**
217 **To see all current commands, use the \"cmds\" command**
218 **To import new commands, use the \"import\" command**
219 **To check the commands imported, use the \"import-check\" command**]]
220Output_OutputTxt.AutomaticSize = Enum.AutomaticSize.XY
221Output_OutputTxt.Size = UDim2.new(0.986653328, 0, 0.971555173, 0)
222Output_OutputTxt.Name = "Output_OutputTxt"
223Output_OutputTxt.TextColor3 = Color3.new(0.698039, 0.698039, 0.698039)
224Output_OutputTxt.BorderColor3 = Color3.new(0, 0, 0)
225Output_OutputTxt.Text = ""
226Output_OutputTxt.Font = Enum.Font.RobotoMono
227Output_OutputTxt.BackgroundTransparency = 1
228Output_OutputTxt.Position = UDim2.new(0.0100000314, 0, -9.64525313e-08, 0)
229Output_OutputTxt.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_OutputWindow']['_C_OutpScroll']
230Output_OutputTxt.TextSize = 12
231Output_OutputTxt.TextXAlignment = Enum.TextXAlignment.Left
232
233
234local _C_Description = Instance.new("Frame")
235_C_Description.Draggable = true
236_C_Description.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']
237_C_Description.ZIndex = 500
238_C_Description.BorderSizePixel = 0
239_C_Description.Size = UDim2.new(0.228675708, 0, 0.0210382827, 0)
240_C_Description.BorderColor3 = Color3.new(0, 0, 0)
241_C_Description.Name = "_C_Description"
242_C_Description.BackgroundTransparency = 0.5
243_C_Description.Position = UDim2.new(0.303348273, 0, 0.549453557, 0)
244_C_Description.Visible = false
245_C_Description.BackgroundColor3 = Color3.new(0.392157, 0.392157, 0.392157)
246
247
248local __UI1 = Instance.new("UIStroke")
249__UI1.Thickness = 3
250__UI1.Name = "__UI1"
251__UI1.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_Description']
252__UI1.Color = Color3.new(1, 0.964706, 0.964706)
253__UI1.Transparency = 0.5
254
255
256local _C_DescScroll = Instance.new("ScrollingFrame")
257_C_DescScroll.Active = true
258_C_DescScroll.BorderSizePixel = 0
259_C_DescScroll.CanvasSize = UDim2.new(0, 3000, 0, 0)
260_C_DescScroll.BackgroundColor3 = Color3.new(1, 1, 1)
261_C_DescScroll.AutomaticCanvasSize = Enum.AutomaticSize.X
262_C_DescScroll.Size = UDim2.new(0.949999988, 0, 1, 0)
263_C_DescScroll.ScrollBarImageColor3 = Color3.new(0, 0, 0)
264_C_DescScroll.BorderColor3 = Color3.new(0, 0, 0)
265_C_DescScroll.ScrollBarThickness = 2
266_C_DescScroll.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_Description']
267_C_DescScroll.BackgroundTransparency = 1
268_C_DescScroll.Position = UDim2.new(0.0269999914, 0, 0, 0)
269_C_DescScroll.Name = "_C_DescScroll"
270
271
272local _S_DescTxt = Instance.new("TextLabel")
273_S_DescTxt.BorderSizePixel = 0
274_S_DescTxt.RichText = true
275_S_DescTxt.BackgroundColor3 = Color3.new(1, 1, 1)
276_S_DescTxt.AutomaticSize = Enum.AutomaticSize.X
277_S_DescTxt.Size = UDim2.new(1, 0, 1, 0)
278_S_DescTxt.Name = "_S_DescTxt"
279_S_DescTxt.TextColor3 = Color3.new(1, 1, 1)
280_S_DescTxt.BorderColor3 = Color3.new(0, 0, 0)
281_S_DescTxt.Text = "-None-"
282_S_DescTxt.Font = Enum.Font.SourceSans
283_S_DescTxt.BackgroundTransparency = 1
284_S_DescTxt.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_Description']['_C_DescScroll']
285_S_DescTxt.TextSize = 12
286_S_DescTxt.TextXAlignment = Enum.TextXAlignment.Left
287
288
289local _C_ArgDesc = Instance.new("Frame")
290_C_ArgDesc.Draggable = true
291_C_ArgDesc.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']
292_C_ArgDesc.ZIndex = 500
293_C_ArgDesc.BorderSizePixel = 0
294_C_ArgDesc.Size = UDim2.new(0.228675708, 0, 0.0210382827, 0)
295_C_ArgDesc.BorderColor3 = Color3.new(0, 0, 0)
296_C_ArgDesc.Name = "_C_ArgDesc"
297_C_ArgDesc.BackgroundTransparency = 0.5
298_C_ArgDesc.Position = UDim2.new(0.385465056, 0, 0.595901668, 0)
299_C_ArgDesc.Visible = false
300_C_ArgDesc.BackgroundColor3 = Color3.new(0.333333, 0.333333, 0.333333)
301
302
303local __UI4 = Instance.new("UIStroke")
304__UI4.Thickness = 3
305__UI4.Name = "__UI4"
306__UI4.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_ArgDesc']
307__UI4.Color = Color3.new(0.243137, 0.235294, 0.235294)
308__UI4.Transparency = 0.5
309
310
311local _C_ArgScroll = Instance.new("ScrollingFrame")
312_C_ArgScroll.Active = true
313_C_ArgScroll.BorderSizePixel = 0
314_C_ArgScroll.CanvasSize = UDim2.new(0, 3000, 0, 0)
315_C_ArgScroll.BackgroundColor3 = Color3.new(1, 1, 1)
316_C_ArgScroll.AutomaticCanvasSize = Enum.AutomaticSize.X
317_C_ArgScroll.Size = UDim2.new(0.949999988, 0, 1, 0)
318_C_ArgScroll.ScrollBarImageColor3 = Color3.new(0, 0, 0)
319_C_ArgScroll.BorderColor3 = Color3.new(0, 0, 0)
320_C_ArgScroll.ScrollBarThickness = 2
321_C_ArgScroll.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_ArgDesc']
322_C_ArgScroll.BackgroundTransparency = 1
323_C_ArgScroll.Position = UDim2.new(0.0269999914, 0, 0, 0)
324_C_ArgScroll.Name = "_C_ArgScroll"
325
326
327local _S_ArgDescTxt = Instance.new("TextLabel")
328_S_ArgDescTxt.BorderSizePixel = 0
329_S_ArgDescTxt.RichText = true
330_S_ArgDescTxt.BackgroundColor3 = Color3.new(1, 1, 1)
331_S_ArgDescTxt.AutomaticSize = Enum.AutomaticSize.X
332_S_ArgDescTxt.Size = UDim2.new(1, 0, 1, 0)
333_S_ArgDescTxt.Name = "_S_ArgDescTxt"
334_S_ArgDescTxt.TextColor3 = Color3.new(1, 1, 1)
335_S_ArgDescTxt.BorderColor3 = Color3.new(0, 0, 0)
336_S_ArgDescTxt.Text = "Parameters: (None)"
337_S_ArgDescTxt.Font = Enum.Font.SourceSans
338_S_ArgDescTxt.BackgroundTransparency = 1
339_S_ArgDescTxt.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_ArgDesc']['_C_ArgScroll']
340_S_ArgDescTxt.TextSize = 12
341_S_ArgDescTxt.TextXAlignment = Enum.TextXAlignment.Left
342
343
344local _C_Notif = Instance.new("Frame")
345_C_Notif.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']
346_C_Notif.ZIndex = 500
347_C_Notif.BorderSizePixel = 0
348_C_Notif.Size = UDim2.new(0.111366011, 0, 0.0524590462, 0)
349_C_Notif.BorderColor3 = Color3.new(0, 0, 0)
350_C_Notif.Name = "_C_Notif"
351_C_Notif.BackgroundTransparency = 0.30000001192092896
352_C_Notif.Position = UDim2.new(1, 0, 0.798087478, 0)
353_C_Notif.Visible = false
354_C_Notif.BackgroundColor3 = Color3.new(0, 0, 0)
355
356
357local __UI5 = Instance.new("UIStroke")
358__UI5.Thickness = 3
359__UI5.Name = "__UI5"
360__UI5.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_Notif']
361__UI5.Transparency = 0.30000001192092896
362
363
364local _S_NotifTxt = Instance.new("TextLabel")
365_S_NotifTxt.TextWrapped = true
366_S_NotifTxt.BorderSizePixel = 0
367_S_NotifTxt.RichText = true
368_S_NotifTxt.BackgroundColor3 = Color3.new(1, 1, 1)
369_S_NotifTxt.AutomaticSize = Enum.AutomaticSize.X
370_S_NotifTxt.Size = UDim2.new(0.918071151, 0, 1.00000024, 0)
371_S_NotifTxt.Name = "_S_NotifTxt"
372_S_NotifTxt.TextColor3 = Color3.new(1, 1, 1)
373_S_NotifTxt.BorderColor3 = Color3.new(0, 0, 0)
374_S_NotifTxt.Text = "-None-"
375_S_NotifTxt.Font = Enum.Font.SourceSansBold
376_S_NotifTxt.BackgroundTransparency = 1
377_S_NotifTxt.Position = UDim2.new(0.0468164794, 0, 0, 0)
378_S_NotifTxt.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_Notif']
379_S_NotifTxt.TextSize = 13
380
381
382local _C_LoadingScreen = Instance.new("Frame")
383_C_LoadingScreen.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']
384_C_LoadingScreen.BorderSizePixel = 0
385_C_LoadingScreen.Size = UDim2.new(0.195724756, 0, 0.342349708, 0)
386_C_LoadingScreen.BorderColor3 = Color3.new(0, 0, 0)
387_C_LoadingScreen.Name = "_C_LoadingScreen"
388_C_LoadingScreen.BackgroundTransparency = 1
389_C_LoadingScreen.Position = UDim2.new(0.401459843, 0, 0.116120212, 0)
390_C_LoadingScreen.Visible = false
391_C_LoadingScreen.BackgroundColor3 = Color3.new(0, 0, 0)
392
393
394local _G_C0 = Instance.new("UICorner")
395_G_C0.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_LoadingScreen']
396_G_C0.Name = "_G_C0"
397
398
399local _S_LTxt = Instance.new("TextLabel")
400_S_LTxt.TextWrapped = true
401_S_LTxt.BorderSizePixel = 0
402_S_LTxt.RichText = true
403_S_LTxt.TextScaled = true
404_S_LTxt.BackgroundColor3 = Color3.new(0, 0, 0)
405_S_LTxt.AutomaticSize = Enum.AutomaticSize.X
406_S_LTxt.Size = UDim2.new(1.15210426, 0, 0.185953885, 0)
407_S_LTxt.Name = "_S_LTxt"
408_S_LTxt.TextColor3 = Color3.new(0.619608, 0.239216, 1)
409_S_LTxt.BorderColor3 = Color3.new(0, 0, 0)
410_S_LTxt.Text = ""
411_S_LTxt.Font = Enum.Font.SourceSansBold
412_S_LTxt.BackgroundTransparency = 0.8999999761581421
413_S_LTxt.Position = UDim2.new(-0.10635341, 0, 0.814046323, 0)
414_S_LTxt.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_LoadingScreen']
415_S_LTxt.TextSize = 13
416
417
418local _G_C1 = Instance.new("UICorner")
419_G_C1.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_LoadingScreen']['_S_LTxt']
420_G_C1.Name = "_G_C1"
421
422
423local _G_LLogo = Instance.new("ImageLabel")
424_G_LLogo.Parent = game.Players.LocalPlayer.PlayerGui['Planetary']['_C_LoadingScreen']
425_G_LLogo.Image = "http://www.roblox.com/asset/?id=14776960352"
426_G_LLogo.ZIndex = 500
427_G_LLogo.BorderSizePixel = 0
428_G_LLogo.Size = UDim2.new(0.642610312, 0, 0.713177085, 0)
429_G_LLogo.Name = "_G_LLogo"
430_G_LLogo.BorderColor3 = Color3.new(0, 0, 0)
431_G_LLogo.ImageColor3 = Color3.new(0.443137, 0.341176, 0.372549)
432_G_LLogo.BackgroundTransparency = 1
433_G_LLogo.Position = UDim2.new(0.164487392, 0, 0.155104712, 0)
434_G_LLogo.BackgroundColor3 = Color3.new(1, 1, 1)
435
436-------------------------------------------------------------
437
438local R_TweenService = game:GetService("TweenService")
439local R_UIS = game:GetService("UserInputService")
440
441local P_Plr = game.Players.LocalPlayer
442
443local FRMT_CS = "<font color=\"rgb(%d, %d, %d)\">%s</font>"
444local FRMT_IS = "<font color=\"rgb(255, 0, 13)\"><font transparency=\"0.5\"><s>%s</s></font></font>"
445
446local P_API, P_UTIL, P_CMDS, P_CMDCACHE, P_OUTPUT_UP_CACHE, P_OUTPUT_DOWN_CACHE, P_IMPORT_CACHE, P_CONNECTION_CACHE = {}, {}, { Commands = { ["cmds"] = 1, ["import"] = 2, ["import-check"] = 3, ["output-stream-switch"] = 4, ["output-open"] = 5, ["output-close"] = 6, ["output-clear"] = 7, ["output-refresh-rate"] = 8, ["output-refresh-force"] = 9, ["cache-clear-cmdlog"] = 10, ["print"] = 11, ["output-print"] = 11, ["planetary-setpermission-game-manipulation"] = 12, ["planetary-notify"] = 13, ["notify"] = 13, ["warn"] = 14, ["output-warn"] = 14 }, Description = {"View a list of all current commands within an output.", "Used to import more commands from website <link> using HttpGet (Or for regular loadstring, set argument <regular_str> to True); Return value must be in Dropbox format order. (See Source-Code)", "View all imported commands from Dropboxes", "Switches the output re-direction to the ROBLOX console; or vice-versa depending on the current state.", "Opens the Planetary output.", "Closes the Planetary output.", "Clears contents within the Planetary output.", "Sets the refresh-rate of the Planetary output to <rate_number_int>;", "Forcefully updates the output; this is independant from the main updater.", "Flushes the history of all your previously used commands.", "Outputs your message <message> to an output.", "Allows the Planetary API to create ROBLOX Instances and attach them to other parents not pertaining to the GUI itself.", "Fires the Planetary Notification API with message <notif_msg>.", "Warns <message> to an output."}, ArgumentDescription = {}, Parameters = { 0, 2, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1 }, Event = {} }, {}, {}, {}, {}, {}
447local PBOOL_CMD_ACTIVE, PBOOL_OUTPUT_ACTIVE, PBOOL_NOTIFICATION_ACTIVE, PBOOL_GAME_MANIPULATOR_PERMISSION, PBOOL_INFO_TO_RBLX_OUTPUT, PBOOL_SYNTAX_UPDATER_HALT, PBOOL_TAKE_AUTOCOMPLETION, PBOOL_GUI_NOT_ACTIVE = false, false, false, false, false, false, false, false
448
449local P_SYNTAX_DEFAULT_STRING_RC, P_SYNTAX_DEFAULT_STRING = FRMT_CS:format(125, 210, 255, "game") .. ":\\" .. FRMT_CS:format(104, 104, 104, P_Plr.Name) .. '\\' .. FRMT_CS:format(107, 127, 255, "Planetary") .. '\\', "game:\\" .. P_Plr.Name .. "\\Planetary\\"
450
451local P_AUTOCOMPLETION_SNAPSHOT = ''
452
453local PINT_LATEST_SNAPSHOT = tick()
454local PINT_LENGTH = #P_SYNTAX_DEFAULT_STRING
455local PINT_OUTPUT_REFRESH_RATE = 0.1
456local PINT_RESTING_OUTPUT_REFRESH_RATE = 2
457local PINT_INDEX, PINT_MAX_INDEX = 1, 1
458-------------------------------------------------------------
459do
460 function P_UTIL.R_Tween(o, t, p) local a = R_TweenService:Create(o, t, p); local c; c = a.Completed:Connect(function() a:Destroy(); c:Disconnect() end) return a end
461 function P_UTIL.P_InputStringFormat(s)
462 return s:gsub("^[%s\n\t]",'')
463 end
464 function P_UTIL.P_InputStringGetRoots(s, cmdOnly)
465 local _command = nil
466 local _cmdbreakfound = false
467 local _usedstr = ''
468
469 s = s:gsub(P_SYNTAX_DEFAULT_STRING, '', 1)
470 s = s:gsub("[^\\]+", function(x) _command = x; _usedstr = s; return '' end, 1)
471
472 _cmdbreakfound = (not not (_usedstr:match('\\')))
473
474 if cmdOnly then return _command end
475
476 local i = 1
477 local _cmdargs = {}
478
479 for args in string.gmatch(s, "([^\\]+)") do
480 _cmdargs[i] = args
481 i = i + 1
482 end
483
484 return _command, _cmdargs, _cmdbreakfound
485 end
486 function P_UTIL.P_MakeSenseOfCommand(s)
487 local bestMatch = nil
488 local true_len = #s;
489 local len = #s
490
491 while not bestMatch and len > 0 do
492 for cmd in pairs(P_CMDS.Commands) do
493 if cmd:sub(1, len) == s and true_len <= #cmd then
494 bestMatch = cmd
495 break
496 end
497 end
498 len = len - 1
499 end
500 return bestMatch, len
501 end
502 function P_UTIL.P_ConstantSyntaxHandler(s, ambiguity)
503 s = P_UTIL.P_InputStringFormat(s)
504 _S_CommandLine_UserInputTxt.Text = s
505
506 if s:sub(1, PINT_LENGTH) ~= P_SYNTAX_DEFAULT_STRING then
507 _S_CommandLine_UserInputTxt.Text = P_SYNTAX_DEFAULT_STRING
508 _S_CommandLine_UserInputTxt.CursorPosition = PINT_LENGTH + 1
509 return FRMT_IS:format(s)
510 end
511
512 local cmd, cargs, cmdbreak = P_UTIL.P_InputStringGetRoots(s)
513 if not cmd then return P_SYNTAX_DEFAULT_STRING_RC end
514
515 local txtbuild = {P_SYNTAX_DEFAULT_STRING_RC}
516
517 if not P_CMDS.Commands[cmd] then
518 local evaluated_cmd, slenf = P_UTIL.P_MakeSenseOfCommand(cmd)
519
520 if PBOOL_TAKE_AUTOCOMPLETION then
521 local len = 3
522 local regular_formatting = false
523 local oldcmd = cmd
524
525 cmd = cmd:reverse():gsub("^\t", '', 1):reverse()
526
527 local nevaluated_cmd, nslenf = P_UTIL.P_MakeSenseOfCommand(cmd)
528 if nevaluated_cmd then
529 txtbuild[2] = FRMT_CS:format(255, 172, 6, nevaluated_cmd)
530 cmd = nevaluated_cmd
531 evaluated_cmd = nevaluated_cmd
532 regular_formatting = true
533
534 local max_argn = P_CMDS.Parameters[P_CMDS.Commands[cmd]]
535 for n, v in ipairs(cargs) do
536 if n <= max_argn then
537 txtbuild[len] = '\\' .. FRMT_CS:format(174, 178, 255, v)
538 else
539 txtbuild[len] = '\\' .. FRMT_IS:format(v)
540 end
541 len = len + 1
542 end
543
544
545 _S_CommandLine_SyntaxInterfaceTxt.Text = table.concat(txtbuild)
546 _S_CommandLine_UserInputTxt.Text = _S_CommandLine_SyntaxInterfaceTxt.ContentText
547 _S_CommandLine_UserInputTxt.CursorPosition = #_S_CommandLine_UserInputTxt.ContentText + 1
548
549 P_API.LoadUpInputtedCommandProperties(cmd)
550
551 PBOOL_TAKE_AUTOCOMPLETION = false
552 return table.concat(txtbuild)
553 end
554
555 cmd = oldcmd
556 PBOOL_TAKE_AUTOCOMPLETION = false
557 end
558
559 if evaluated_cmd and not cmdbreak and ambiguity then
560 local len = 4
561 local regular_formatting = false
562
563 txtbuild[2] = FRMT_IS:format(cmd:sub(1, slenf+1))
564 txtbuild[3] = "<font transparency=\"0.5\">" .. evaluated_cmd:sub(slenf + 2) .. "</font>"
565
566 P_API.LoadUpInputtedCommandProperties()
567
568 if #cargs > 0 then
569 for _, v in ipairs(cargs) do txtbuild[len] = '\\' .. FRMT_IS:format(v); len = len + 1 end
570 end
571 return table.concat(txtbuild)
572 end
573
574 txtbuild[2] = FRMT_IS:format(cmd);
575 local len = 3
576
577 if #cargs > 0 then
578 for _, v in ipairs(cargs) do txtbuild[len] = '\\' .. FRMT_IS:format(v); len = len + 1 end
579 end
580
581 P_API.LoadUpInputtedCommandProperties()
582 return table.concat(txtbuild)
583 else
584 txtbuild[2] = FRMT_CS:format(255, 172, 6, cmd)
585 local max_argn = P_CMDS.Parameters[P_CMDS.Commands[cmd]]
586 local len = 3
587
588 for n, v in ipairs(cargs) do
589 if n <= max_argn then
590 txtbuild[len] = '\\' .. FRMT_CS:format(174, 178, 255, v)
591 else
592 txtbuild[len] = '\\' .. FRMT_IS:format(v)
593 end
594 len = len + 1
595 end
596
597 P_API.LoadUpInputtedCommandProperties(cmd)
598
599 return table.concat(txtbuild), P_CMDS.Event[P_CMDS.Commands[cmd]], cargs
600 end
601 end
602 function P_UTIL.P_IsNumber(s)
603 if type(s) == "number" or tonumber(s) then return tonumber(s) end
604 return nil
605 end
606 function P_UTIL.P_ToBool(b)
607 if type(b) == "boolean" then return b end
608 if type(b) == "string" then
609 b = b:lower()
610 if b:match("false") or b == "f" then return false end
611 if b:match("true") or b == "t" then return true end
612 elseif type(b) == "number" then
613 if b == 0 then return false end
614 if b == 1 then return true end
615 end
616 return false
617 end
618
619 function P_API.LoadUpInputtedCommandProperties(cmd)
620 if not cmd then
621 _C_Description.Visible = false
622 _C_ArgDesc.Visible = false
623 else
624 local cptr = P_CMDS.Commands[cmd]
625 if not cptr then _C_Description.Visible = false; _C_ArgDesc.Visible = false return end
626
627 _S_DescTxt.Text = P_CMDS.Description[cptr]
628 _S_ArgDescTxt.Text = P_CMDS.ArgumentDescription[cptr]
629
630 _C_Description.Visible = true
631 _C_ArgDesc.Visible = true
632 end
633 end
634 function P_API.RequestNotification(txt, lft)
635 if PBOOL_NOTIFICATION_ACTIVE then return false end
636 PBOOL_NOTIFICATION_ACTIVE = true
637
638 _C_Notif.BackgroundTransparency = 1
639 _S_NotifTxt.Text = ''
640 _C_Notif.Visible = true
641
642 P_UTIL.R_Tween(_C_Notif, TweenInfo.new(0.5, Enum.EasingStyle.Elastic), {BackgroundTransparency = 0.3, Position = UDim2.new(0.695, 0, 0.798, 0)}):Play()
643 P_UTIL.R_Tween(__UI5, TweenInfo.new(0.45, Enum.EasingStyle.Elastic), {Transparency = 0.3}):Play()
644
645 wait(0.8)
646 spawn(function()
647 _S_NotifTxt.Text = txt
648 wait(lft or 5)
649 _S_NotifTxt.Text = ''
650 P_UTIL.R_Tween(_C_Notif, TweenInfo.new(0.5, Enum.EasingStyle.Elastic), {BackgroundTransparency = 1, Position = UDim2.new(1, 0, 0.798, 0)}):Play()
651 P_UTIL.R_Tween(__UI5, TweenInfo.new(0.45, Enum.EasingStyle.Elastic), {Transparency = 1}):Play()
652 wait(0.6)
653 _C_Notif.Visible = false
654 wait()
655 PBOOL_NOTIFICATION_ACTIVE = false
656 end)
657 if PBOOL_GAME_MANIPULATOR_PERMISSION then
658 spawn(function()
659 local s = Instance.new("Sound")
660 s.SoundId = "rbxassetid://5568992074"
661
662 pcall(function()
663 s.Parent = P_Plr.Character.Head
664 end)
665
666 wait()
667 s:Play()
668 wait(2)
669 s:Destroy()
670 end)
671 end
672
673 return true
674 end
675 function P_API.RequestPRIORITYOutputSendSignal(txt)
676 if PBOOL_INFO_TO_RBLX_OUTPUT then
677 print(os.date("%X") .. ' - ' .. tostring(txt) .. '\n')
678 return
679 end
680 table.insert(P_OUTPUT_UP_CACHE, os.date("%X") .. ' - ' .. tostring(txt) .. '\n')
681 end
682 function P_API.RequestOutputSendSignal(txt)
683 if PBOOL_INFO_TO_RBLX_OUTPUT then
684 print(os.date("%X") .. ' - ' .. tostring(txt) .. '\n')
685 return
686 end
687 table.insert(P_OUTPUT_DOWN_CACHE, os.date("%X") .. ' - ' .. tostring(txt) .. '\n')
688 end
689 function P_API.RequestPRIORITYOutputSendSignalWARN(txt, regtxtaddon)
690
691 if PBOOL_INFO_TO_RBLX_OUTPUT then
692 txt = os.date("%X") .. ' - ' .. txt .. (regtxtaddon or '')
693 warn(tostring(txt) .. '\n')
694 return
695 end
696
697 txt = os.date("%X") .. ' - ' .. FRMT_CS:format(255, 155, 50, txt) .. (regtxtaddon or '')
698 table.insert(P_OUTPUT_UP_CACHE, tostring(txt) .. '\n')
699 end
700 function P_API.RequestOutputSendSignalWARN(txt, regtxtaddon)
701
702 if PBOOL_INFO_TO_RBLX_OUTPUT then
703 txt = txt .. os.date("%X") .. ' - ' .. (regtxtaddon or '')
704 warn(tostring(txt) .. '\n')
705 return
706 end
707
708 txt = os.date("%X") .. ' - ' .. FRMT_CS:format(255, 155, 50, txt) .. (regtxtaddon or '')
709 table.insert(P_OUTPUT_DOWN_CACHE, tostring(txt) .. '\n')
710 end
711 function P_API.LoadComponents()
712 local function cmd_active()
713 PBOOL_CMD_ACTIVE = true
714
715 _S_CommandLine_UserInputTxt.ZIndex = 3000
716 _S_CommandLine_SyntaxInterfaceTxt.ZIndex = 4000
717
718 if PBOOL_SYNTAX_UPDATER_HALT then repeat wait() until not PBOOL_SYNTAX_UPDATER_HALT end
719
720 _S_CommandLine_SyntaxInterfaceTxt.Text = _S_CommandLine_UserInputTxt.Text
721 _S_CommandLine_UserInputTxt.Text = _S_CommandLine_SyntaxInterfaceTxt.ContentText
722
723 _S_CommandLine_UserInputTxt.CursorPosition = #_S_CommandLine_UserInputTxt.Text + 1
724
725 spawn(function()
726 while PBOOL_CMD_ACTIVE do
727 if PBOOL_SYNTAX_UPDATER_HALT then repeat wait() until not PBOOL_SYNTAX_UPDATER_HALT end
728
729 _S_CommandLine_SyntaxInterfaceTxt.Text = P_UTIL.P_ConstantSyntaxHandler(_S_CommandLine_UserInputTxt.ContentText, true)
730 wait()
731 end
732 end)
733 end
734 local function cmd_background(enter_hit)
735 PBOOL_CMD_ACTIVE = false
736 _S_CommandLine_SyntaxInterfaceTxt.ZIndex = 3000
737 _S_CommandLine_UserInputTxt.ZIndex = 4000
738
739 local txt, event, cargs = P_UTIL.P_ConstantSyntaxHandler(_S_CommandLine_UserInputTxt.ContentText)
740 _S_CommandLine_UserInputTxt.Text = txt
741 _S_CommandLine_SyntaxInterfaceTxt.Text = ''
742
743 if enter_hit and event then
744 local s = _S_CommandLine_UserInputTxt.ContentText
745 event(table.unpack(cargs))
746
747 if PINT_MAX_INDEX >= 1 then
748 if P_CMDCACHE[PINT_MAX_INDEX] ~= s and P_CMDCACHE[PINT_MAX_INDEX - 1] ~= s then
749 table.insert(P_CMDCACHE, s)
750 end
751 else
752 table.insert(P_CMDCACHE, s)
753 end
754
755 PINT_MAX_INDEX = #P_CMDCACHE
756 PINT_INDEX = PINT_MAX_INDEX + 1
757 end
758 end
759 local function output_refresh()
760 local final = tostring(table.concat(P_OUTPUT_UP_CACHE)) .. tostring(table.concat(P_OUTPUT_DOWN_CACHE))
761 if final:gsub("[%s\n\t]*",'') == '' then
762 Output_OutputTxt.Text = [[**Planetary: Output-Window > Version: 1.0.0**
763 /////////////////////////////////////////////
764 **To close output, use the \"output-close\" command**
765 **To see all current commands, use the \"cmds\" command**
766 **To import new commands, use the \"import\" command**
767 **To check the commands imported, use the \"import-check\" command**]]
768 return
769 end
770
771 Output_OutputTxt.Text = tostring(table.concat(P_OUTPUT_UP_CACHE)) .. tostring(table.concat(P_OUTPUT_DOWN_CACHE))
772 end
773
774 table.insert(P_CONNECTION_CACHE, _S_CommandLine_UserInputTxt.Focused:Connect(cmd_active))
775 table.insert(P_CONNECTION_CACHE, _S_CommandLine_UserInputTxt.FocusLost:Connect(cmd_background))
776 table.insert(P_CONNECTION_CACHE, R_UIS.InputBegan:Connect(function(IO, G)
777 if not PBOOL_CMD_ACTIVE then return end
778
779 if IO.KeyCode == Enum.KeyCode.Tab and not PBOOL_TAKE_AUTOCOMPLETION then
780 PBOOL_TAKE_AUTOCOMPLETION = true
781 elseif IO.KeyCode == Enum.KeyCode.Up then
782 if PINT_MAX_INDEX == 0 then return end
783 PINT_INDEX = PINT_INDEX + 1
784 if PINT_INDEX > PINT_MAX_INDEX then
785 PINT_INDEX = PINT_MAX_INDEX
786 end
787 PBOOL_SYNTAX_UPDATER_HALT = true
788
789 local s = P_CMDCACHE[PINT_INDEX]
790 _S_CommandLine_UserInputTxt.Text = s
791 _S_CommandLine_UserInputTxt.CursorPosition = #s + 1
792
793 repeat wait() until _S_CommandLine_UserInputTxt.ContentText == s
794 PBOOL_SYNTAX_UPDATER_HALT = false
795 elseif IO.KeyCode == Enum.KeyCode.Down then
796 if PINT_MAX_INDEX == 0 then return end
797 PINT_INDEX = PINT_INDEX - 1
798 if PINT_INDEX <= 0 then
799 PINT_INDEX = 1
800 end
801 PBOOL_SYNTAX_UPDATER_HALT = true
802
803 local s = P_CMDCACHE[PINT_INDEX]
804 _S_CommandLine_UserInputTxt.Text = s
805 _S_CommandLine_UserInputTxt.CursorPosition = #s + 1
806
807 repeat wait() until _S_CommandLine_UserInputTxt.ContentText == s
808 PBOOL_SYNTAX_UPDATER_HALT = false
809 end
810 end))
811
812 P_CMDS.Event[9] = output_refresh
813 P_API.API_Utils.ClearOutput = output_refresh
814 P_API.API_Admin_Utils.OutputRefresh = output_refresh
815
816 spawn(function()
817 while not PBOOL_GUI_NOT_ACTIVE do
818 output_refresh()
819
820 if not _C_OutputWindow.Visible then
821 wait(PINT_RESTING_OUTPUT_REFRESH_RATE)
822 else
823 wait(PINT_OUTPUT_REFRESH_RATE)
824 end
825 end
826 end)
827 end
828 function P_API.LoadScreen()
829 _S_LTxt.Visible = false
830 _G_LLogo.Visible = false
831 _C_LoadingScreen.Visible = true
832
833 _G_LLogo.ImageTransparency = 1
834 _S_LTxt.BackgroundTransparency = 1
835
836 _G_LLogo.ImageTransparency = 1
837 _G_LLogo.Visible = true
838 P_UTIL.R_Tween(_G_LLogo, TweenInfo.new(1.5, Enum.EasingStyle.Sine), {ImageTransparency = 0}):Play()
839
840 wait(1.475)
841
842 _S_LTxt.Visible = true
843
844 local m = "Planetary - Universal Exploiting"
845 for i = 1, 32 do
846 if i <= 9 then
847 _S_LTxt.Text = _S_LTxt.Text .. "<font color=\"rgb(255, 42, 30)\">" .. m:sub(i,i) .. "</font>"
848 elseif i == 11 then
849 _S_LTxt.Text = _S_LTxt.Text .. "<font color=\"rgb(0, 0, 0)\">-</font>"
850 else
851 _S_LTxt.Text = _S_LTxt.Text .. m:sub(i, i)
852 end
853 wait(0.02)
854 end
855
856 P_UTIL.R_Tween(_S_LTxt, TweenInfo.new(1.5, Enum.EasingStyle.Sine), {BackgroundTransparency = 0.8}):Play()
857
858 wait(2)
859
860 P_UTIL.R_Tween(_G_LLogo, TweenInfo.new(1.5, Enum.EasingStyle.Sine), {ImageTransparency = 1}):Play()
861 P_UTIL.R_Tween(_S_LTxt, TweenInfo.new(1.5, Enum.EasingStyle.Sine), {BackgroundTransparency = 1}):Play()
862 P_UTIL.R_Tween(_S_LTxt, TweenInfo.new(1.5, Enum.EasingStyle.Sine), {TextTransparency = 1}):Play()
863
864 wait(1.667)
865
866 _C_LoadingScreen:Destroy()
867
868 _C_CommandLine.Visible = true
869 _C_OutputWindow.Visible = true
870
871 P_API.LoadComponents()
872
873 _C_CommandLine.Visible = true
874 _C_OutputWindow.Visible = true
875
876 return true
877 end
878end
879-------------------------------------------------------------
880
881-- Import API
882function P_API.ImportCommandsFromDropbox(dropbox_l, adminPermission, regularString) -- import custom commands from <dropbox_l> website : dont use this in a seperate thread, make sure it's always synced.
883 --[[
884 Format:
885 return
886 { -- dropbox
887 ...: { -- crate
888 Command: string
889
890 Args: number<int>,
891 Desc: string,
892 ArgDesc: string,
893
894 Init: function({PrintOutput = function(String), Notify = function(String, Lifetime: Number), ArgumentToNumber = function(Number?String?), ArgumentToBoolean = function(Boolean?String?Number?)}) returns-> CommandFunction: (...: args returned from user input)
895 }
896 }
897 --]]
898
899 local dropbox;
900
901 if not regularString then
902 pcall(function() dropbox = loadstring(game:HttpGet(dropbox_l))() end)
903 else
904 pcall(function() dropbox = loadstring(dropbox_l)() end)
905 end
906
907 if not dropbox then return 1, "Null dropbox recieved through getter method." end
908 if type(dropbox) ~= "table" then return 1, "Dropbox type is not recognized as a table." end
909
910 local cmax = #P_CMDS.Event
911 local cache = {'\n', dropbox_l}
912 for n, crate in ipairs(dropbox) do
913 if type(crate) ~= "table" then return 1, "Crate was not recognized as a table; on index " .. n end
914 if not crate.Args or not crate.Desc or not crate.ArgDesc or not crate.Command or not crate.Init then return 1, "Unfinished crate on index " .. n .. "; crate must have [Command: str, Desc: str, ArgDesc: str, Args: num, Init: function]" end
915 if P_CMDS.Commands[crate.Command] then return 1, "Command already exists: " .. crate.Command .. "; on index " .. n end
916
917 local fired;
918 if adminPermission == true then
919 fired = crate.Init(P_API.API_Utils, P_API.API_Admin_Utils)
920 else
921 fired = crate.Init(P_API.API_Utils)
922 end
923
924 if type(fired) ~= "function" then return 1, "Return type from function crate " .. n .. "'s Init() is not of type function, got " .. type(fired) end
925
926 cmax = cmax + 1
927
928 table.insert(P_CMDS.Parameters, crate.Args)
929 table.insert(P_CMDS.ArgumentDescription, crate.ArgDesc)
930 table.insert(P_CMDS.Description, crate.Desc)
931
932
933 table.insert(P_CMDS.Event, fired)
934
935 P_CMDS.Commands[crate.Command] = cmax
936 table.insert(cache, '\n\t- \"' .. crate.Command .. '\"')
937 end
938
939 table.insert(P_IMPORT_CACHE, table.concat(cache))
940 return 0
941end
942-------------------------------------------------------------
943do
944 P_CMDS.ArgumentDescription = {
945 "Parameters: (<font color=\"rgb(51, 133, 255)\">None</font>)",
946 "Parameters: (<font color=\"rgb(144, 179, 255)\">site_link</font>::<font color=\"rgb(255, 133, 50)\">String</font>, <font color=\"rgb(144, 179, 255)\">admin_permission</font>::<font color=\"rgb(255, 131, 115)\">Boolean</font>, <font color=\"rgb(144, 179, 255)\">regular_str</font>::<font color=\"rgb(255, 131, 115)\">Boolean</font>)",
947 "Parameters: (<font color=\"rgb(51, 133, 255)\">None</font>)",
948 "Parameters: (<font color=\"rgb(51, 133, 255)\">None</font>)",
949 "Parameters: (<font color=\"rgb(51, 133, 255)\">None</font>)",
950 "Parameters: (<font color=\"rgb(51, 133, 255)\">None</font>)",
951 "Parameters: (<font color=\"rgb(51, 133, 255)\">None</font>)",
952 "Parameters: (<font color=\"rgb(144, 179, 255)\">rate_number_int</font>::<font color=\"rgb(33, 255, 66)\">Number</font>-><font color=\"rgb(61, 122, 255)\">Float</font>)",
953 "Parameters: (<font color=\"rgb(51, 133, 255)\">None</font>)",
954 "Parameters: (<font color=\"rgb(51, 133, 255)\">None</font>)",
955 "Parameters: (<font color=\"rgb(144, 179, 255)\">message</font>::<font color=\"rgb(255, 133, 50)\">String</font>)",
956 "Parameters: (<font color=\"rgb(51, 133, 255)\">None</font>)",
957 "Parameters: (<font color=\"rgb(144, 179, 255)\">notif_msg</font>::<font color=\"rgb(255, 133, 50)\">String</font>)",
958 "Parameters: (<font color=\"rgb(144, 179, 255)\">message</font>::<font color=\"rgb(255, 133, 50)\">String</font>)",
959 }
960
961 P_CMDS.Event[1] = function()
962 local t = {"<font color=\"rgb(185, 213, 255)\"><u>All-Current Commands</u></font>:"}
963 local l = 0
964 for k, v in pairs(P_CMDS.Commands) do
965 table.insert(t, '\n\t\"' .. FRMT_CS:format(255, 155, 50, k) .. '\"')
966 table.insert(t, ',')
967 l = l + 2
968 end
969
970 if l > 0 then
971 t[l] = nil
972 end
973 P_API.RequestPRIORITYOutputSendSignal(table.concat(t))
974 end
975
976 P_CMDS.Event[2] = function(a, b) b = P_UTIL.P_ToBool(b); local m, res, res2 = pcall(function() return P_API.ImportCommandsFromDropbox(a, b) end); if PBOOL_INFO_TO_RBLX_OUTPUT then print("[Function, ImportResult1, ImportResult2] result: " .. tostring((m or 'nil')) .. ', ' .. tostring(res) .. ', ' .. tostring(res2) ) return end; P_API.RequestPRIORITYOutputSendSignalWARN("[Function, ImportResult1, ImportResult2] result: ", tostring((m or 'nil')) .. ', ' .. tostring(res) .. ', ' .. tostring(res2)) end
977 P_CMDS.Event[3] = function() local s = table.concat(P_IMPORT_CACHE); if s == '' then s = "--No history--" end; P_API.RequestPRIORITYOutputSendSignal(s) end
978 P_CMDS.Event[4] = function() PBOOL_INFO_TO_RBLX_OUTPUT = not PBOOL_INFO_TO_RBLX_OUTPUT; P_API.RequestPRIORITYOutputSendSignalWARN("Output re-direction (RBLX Dev-Console) Set to: " .. tostring(PBOOL_INFO_TO_RBLX_OUTPUT)) end
979 P_CMDS.Event[5] = function() _C_OutputWindow.Visible = true end
980 P_CMDS.Event[6] = function() _C_OutputWindow.Visible = false end
981 P_CMDS.Event[7] = function() P_OUTPUT_UP_CACHE = {}; P_OUTPUT_DOWN_CACHE = {} end
982 P_CMDS.Event[8] = function(n) local num = P_UTIL.P_IsNumber(n); if not num then P_API.RequestPRIORITYOutputSendSignalWARN("Number needed for refresh-rate assignment, got: " .. tostring(n)) end; if num > 60 then P_API.RequestPRIORITYOutputSendSignalWARN("Cannot set output refresh-rate over 60 seconds.") return end P_API.RequestPRIORITYOutputSendSignal("Set output-refresh rate to: " .. tostring(num)); PINT_OUTPUT_REFRESH_RATE = num end
983 P_CMDS.Event[10] = function() PINT_MAX_INDEX = 0; PINT_INDEX = 0; P_CMDCACHE = {}; end
984 P_CMDS.Event[11] = function(message) P_API.RequestOutputSendSignal(tostring(message)) end
985 P_CMDS.Event[12] = function() PBOOL_GAME_MANIPULATOR_PERMISSION = not PBOOL_GAME_MANIPULATOR_PERMISSION; P_API.RequestPRIORITYOutputSendSignalWARN("Set Planetary's permission to instantiate/create game objects to: " .. tostring(PBOOL_GAME_MANIPULATOR_PERMISSION)) end
986 P_CMDS.Event[13] = function(s) repeat wait() until P_API.RequestNotification(s, 3) end
987 P_CMDS.Event[14] = function(s) P_API.RequestOutputSendSignalWARN(s) end
988end
989
990-------------------------------------------------------------
991-- Util API
992P_API.API_Utils = {}
993P_API.API_Admin_Utils = {}
994
995P_API.API_Admin_Utils.PrintOutput = function(s) P_API.RequestOutputSendSignal(s) end
996P_API.API_Admin_Utils.Notify = function(s) repeat wait() until P_API.RequestNotification(s) end
997P_API.API_Admin_Utils.WarnOutput = function(a, b) P_API.RequestOutputSendSignalWARN(a, b) end
998P_API.API_Admin_Utils.CloseOutput = function() P_CMDS.Event[6]() end
999P_API.API_Admin_Utils.OpenOutput = function() P_CMDS.Event[7]() end
1000P_API.API_Admin_Utils.ImportDropbox = function(a, b, c) P_API.ImportCommandsFromDropbox(a, b, c) end
1001P_API.API_Admin_Utils.OutputIsViewed = function() return _C_OutputWindow.Visible end
1002P_API.API_Admin_Utils.ArgumentToNumber = P_UTIL.P_IsNumber
1003P_API.API_Admin_Utils.ArgumentToBoolean = P_UTIL.P_ToBool
1004P_API.API_Admin_Utils.DropboxIsImported = function(s)
1005 for _, v in pairs(P_IMPORT_CACHE) do
1006 if v:match(s) then return true end
1007 end
1008end
1009
1010
1011P_API.API_Utils.WarnOutput = function(a, b) wait(0.15); P_API.RequestOutputSendSignalWARN(a, b) end
1012P_API.API_Utils.PrintOutput = function(s) wait(0.15); P_API.RequestOutputSendSignal(s) end
1013P_API.API_Utils.Notify = function(s) wait(0.15); P_API.RequestNotification(s) end
1014P_API.API_Utils.ArgumentToNumber = P_UTIL.P_IsNumber
1015P_API.API_Utils.ArgumentToBoolean = P_UTIL.P_ToBool
1016P_API.API_Utils.OutputIsViewed = function() return _C_OutputWindow.Visible end
1017
1018
1019-------------------------------------------------------------
1020-- Do any pre-runtime imports in this section! --
1021-- How do I import? Visit: https://pastebin.com/nfQQbaHK
1022
1023 -- DO --
1024 -- P_API.ImportCommandsFromDropbox(<site>, <admin_perms>, false)
1025 -- END --
1026-------------------------------------------------------------
1027
1028Planetary.Name = string.rep(({'a', 'b', 'c', 'd', 'e', 'f', 'g', '_', 'h', '5', 'F', 'Q'})[math.random(1, 3)], math.random(1, 5)) .. string.rep(({'a', 'b', 'c', 'd', 'e', 'f', 'g', '_', 'h', '5', 'F', 'Q'})[math.random(1, 3)], math.random(1, 10))
1029
1030P_API.RequestNotification("Registered Execution!")
1031P_API.LoadScreen()
1032
1033repeat wait() until P_API.RequestNotification("Loaded Standard Functions!")