Advertisement
trixade

OrionLib

May 19th, 2022
1,533
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.85 KB | None | 0 0
  1. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
  2. local Window = OrionLib:MakeWindow({Name = "Title of the library", HidePremium = false, SaveConfig = true, ConfigFolder = "OrionTest"})
  3. local Tab = Window:MakeTab({
  4.     Name = "Tab 1",
  5.     Icon = "rbxassetid://4483345998",
  6.     PremiumOnly = false
  7. })
  8. OrionLib:MakeNotification({
  9.     Name = "Title!",
  10.     Content = "Among Gus",
  11.     Image = "rbxassetid://4483345998",
  12.     Time = 5
  13. })
  14. Tab:AddButton({
  15.     Name = "Button!",
  16.     Callback = function()
  17.             print("button pressed")
  18.     end    
  19. })
  20. Tab:AddToggle({
  21.     Name = "This is a toggle!",
  22.     Default = false,
  23.     Callback = function(Value)
  24.         print(Value)
  25.     end    
  26. })
  27. Tab:AddColorpicker({
  28.     Name = "Colorpicker",
  29.     Default = Color3.fromRGB(255, 0, 0),
  30.     Callback = function(Value)
  31.         print(Value)
  32.     end  
  33. })
  34. -- ColorPicker:Set(Color3.fromRGB(255,255,255))
  35. Tab:AddSlider({
  36.     Name = "Slider",
  37.     Min = 0,
  38.     Max = 20,
  39.     Default = 5,
  40.     Color = Color3.fromRGB(255,255,255),
  41.     Increment = 1,
  42.     ValueName = "bananas",
  43.     Callback = function(Value)
  44.         print(Value)
  45.     end    
  46. })
  47.  
  48.  --Slider:Set(2)
  49.  Tab:AddLabel("Label")
  50. --CoolLabel:Set("Label New!")
  51. Tab:AddParagraph("Paragraph","Paragraph Content")
  52. -- CoolParagraph:Set("Paragraph New!")
  53.  
  54. Tab:AddTextbox({
  55.     Name = "Textbox",
  56.     Default = "default box input",
  57.     TextDisappear = true,
  58.     Callback = function(Value)
  59.         print(Value)
  60.     end  
  61. })
  62.  
  63.  
  64. Tab:AddBind({
  65.     Name = "Bind",
  66.     Default = Enum.KeyCode.E,
  67.     Hold = false,
  68.     Callback = function()
  69.         print("press")
  70.     end    
  71. })
  72. -- Bind:Set(Enum.KeyCode.E)
  73. Tab:AddDropdown({
  74.     Name = "Dropdown",
  75.     Default = "1",
  76.     Options = {"1", "2"},
  77.     Callback = function(Value)
  78.         print(Value)
  79.     end    
  80. })
  81. -- Dropdown:Refresh(List<table>,true)
  82. --Dropdown:Set("dropdown option")
  83. OrionLib:Init()
  84. -- destroying the interface: OrionLib:Destroy()
  85.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement