--[[ you can make alot of things, you can add a loading screen with a wait(time) before loading the UI on the player's face, its recommended using loading UIs to engage players using your hub, check docs for further instructions.: https://galaxyshubdocumentation.netlify.app/ ]]--
local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/Galaxy-BloxYT/Galaxy-s-Hub-Script-Library/refs/heads/main/Library%20engine"))()
-- Key System mechanic
local keySuccess = Library:InitKeySystem({
UseKeySystem = false, -- Enable or Disable key system
Key = "TEST", -- static key, i'll add dynamic (auto generated) and improve the KeySuccess function to appear the lib smoothly instead of just spawning :P
KeySystemTitle = "My Incredible Hub! | Key System", -- key system title
SaveKey = true, -- if the library should save the key into the UNDER function↓↓
FileName = "GalaxysHubLibKeyPlaceholder.txt" -- filename to save the key
})
-- if bro closed or invalid key, nothing happens
if not keySuccess then return end
wait(0.35) -- this is the time where the key GUI gets destroyed, i'll remove this wait later.
local Window = Library.CreateWindow("My Incredible Hub!") -- title
Window:Notify("Hello, this is a placeholder notification!", "Description Example", true, {
["Noti. button example1"] = function() game.Players.LocalPlayer.Character.Humanoid.Health = 0 end,
["Noti. button example2"] = function() game.Players.LocalPlayer.Character.Humanoid.Health = 100 end
})
local Tab = Window:CreateTab("General")
Tab:AddButton("Placeholder Button", function()
game.Players.LocalPlayer.Character.Humanoid.Health = 0
end)
Tab:AddLabel("Placeholder label")
Tab:AddSection("Placeholder section")
local speedSlider = Tab:AddSlider("Slider Example", 16, 100, 16, function(value)
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = value
end)
local mainToggle = Tab:AddToggle("Placeholder Toggle", false, function(state)
print("Toggle state:", state)
end)
Tab:AddColorSelection("Color Selection example", Color3.fromRGB(0, 100, 255), function(color)
print("Color:", color)
end)
Tab:AddTextBox("Textbox", "Type here...", function(text, enterPressed)
if enterPressed then
print("Text:", text)
end
end)
Tab:AddDropdown(
"Placeholder Name 1", -- name
{"Option 1", "Option 2", "Option3"}, -- options
"Option 1", -- default
false, -- MultipleChoice, put true and use table.concat(chosen, ", ")
function(chosen)
print("you choose:", chosen)
end
)
Tab:AddDropdown(
"Placeholder Name 2 - MultipleChoice", -- Dropdown's Name
{"Option 1", "Option 2", "Option 3", "Option 4"}, -- Current available options
{"Option 1", "Option 3"}, -- Default Options
true, -- MultipleChoice (true = more than one)
function(chosen)
print("Option selected:", table.concat(chosen, ", ")) -- do not delete the concat.
end -- you shall use "= chosen" or "(chosen)" to change anything from your script. (like auto farms)
)
local ConfigTab = Window:CreateTab("Configurations")
ConfigTab:AddButton("Save configs", function()
Window:Notify("Saved", "Saved succesfully!") -- you can put the writefile and readfile system here btw
end)Here’s the brand new Galaxy's Hub script library! 🚀
Got a few elements done for now:
- Tab:AddLabel,
- Tab:AddButton,
- Tab:AddToggle,
- Tab:AddColorSelection,
- Tab:AddTextBox,
- Tab:AddSlider,
- Tab:AddDropdown",
- Tab:AddSection" and,
- Window:CreateTab.
Key System is here!! You can customize it your way.
Official Documentation is out! Check /console or check the script itself for the link. (Or, if you're lazy, here it is: https://galaxyshubdocumentation.netlify.app/ , i'm broke btw, this is why i used netlify.)
(Yeah, they're all custom.)
It also comes with fully interactive notifications featuring customizable buttons, so you can set them up however you want. Oh, the whole library is open source. (Unlimited buttons for notifications)
More stuff is coming soon, so stay tuned!
Join our Discord for updates, new features, and more!
No comments yet. Be the first to comment!
1--[[ you can make alot of things, you can add a loading screen with a wait(time) before loading the UI on the player's face, its recommended using loading UIs to engage players using your hub, check docs for further instructions.: https://galaxyshubdocumentation.netlify.app/ ]]--
2
3local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/Galaxy-BloxYT/Galaxy-s-Hub-Script-Library/refs/heads/main/Library%20engine"))()
4
5-- Key System mechanic
6local keySuccess = Library:InitKeySystem({
7 UseKeySystem = false, -- Enable or Disable key system
8 Key = "TEST", -- static key, i'll add dynamic (auto generated) and improve the KeySuccess function to appear the lib smoothly instead of just spawning :P
9 KeySystemTitle = "My Incredible Hub! | Key System", -- key system title
10 SaveKey = true, -- if the library should save the key into the UNDER function↓↓
11 FileName = "GalaxysHubLibKeyPlaceholder.txt" -- filename to save the key
12})
13
14-- if bro closed or invalid key, nothing happens
15if not keySuccess then return end
16
17wait(0.35) -- this is the time where the key GUI gets destroyed, i'll remove this wait later.
18
19local Window = Library.CreateWindow("My Incredible Hub!") -- title
20
21Window:Notify("Hello, this is a placeholder notification!", "Description Example", true, {
22 ["Noti. button example1"] = function() game.Players.LocalPlayer.Character.Humanoid.Health = 0 end,
23 ["Noti. button example2"] = function() game.Players.LocalPlayer.Character.Humanoid.Health = 100 end
24})
25
26local Tab = Window:CreateTab("General")
27
28Tab:AddButton("Placeholder Button", function()
29 game.Players.LocalPlayer.Character.Humanoid.Health = 0
30end)
31
32Tab:AddLabel("Placeholder label")
33
34Tab:AddSection("Placeholder section")
35
36local speedSlider = Tab:AddSlider("Slider Example", 16, 100, 16, function(value)
37 game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = value
38end)
39
40local mainToggle = Tab:AddToggle("Placeholder Toggle", false, function(state)
41 print("Toggle state:", state)
42end)
43
44Tab:AddColorSelection("Color Selection example", Color3.fromRGB(0, 100, 255), function(color)
45 print("Color:", color)
46end)
47
48Tab:AddTextBox("Textbox", "Type here...", function(text, enterPressed)
49 if enterPressed then
50 print("Text:", text)
51 end
52end)
53
54Tab:AddDropdown(
55 "Placeholder Name 1", -- name
56 {"Option 1", "Option 2", "Option3"}, -- options
57 "Option 1", -- default
58 false, -- MultipleChoice, put true and use table.concat(chosen, ", ")
59 function(chosen)
60 print("you choose:", chosen)
61 end
62)
63
64Tab:AddDropdown(
65 "Placeholder Name 2 - MultipleChoice", -- Dropdown's Name
66 {"Option 1", "Option 2", "Option 3", "Option 4"}, -- Current available options
67 {"Option 1", "Option 3"}, -- Default Options
68 true, -- MultipleChoice (true = more than one)
69 function(chosen)
70 print("Option selected:", table.concat(chosen, ", ")) -- do not delete the concat.
71 end -- you shall use "= chosen" or "(chosen)" to change anything from your script. (like auto farms)
72)
73
74local ConfigTab = Window:CreateTab("Configurations")
75
76ConfigTab:AddButton("Save configs", function()
77 Window:Notify("Saved", "Saved succesfully!") -- you can put the writefile and readfile system here btw
78end)