ModerkaScripts

Moderka Library API

Jan 18th, 2024 (edited)
970
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.31 KB | None | 0 0
  1. -- Moderka Library
  2.  
  3. -- This documentation is for the stable release of Moderka Library.
  4.  
  5.  
  6. -- Booting the Library
  7.  
  8. local ModerkaLibrary = loadstring(game:HttpGet("https://raw.githubusercontent.com/ttwizz/Roblox/master/ModerkaLibrary.lua", true))()
  9.  
  10.  
  11. -- Creating a Window
  12.  
  13. local Window = ModerkaLibrary:AddWindow("Title of the library")
  14.  
  15.  
  16. -- Creating a Page
  17.  
  18. local Page = Window:AddPage("Page 1")
  19.  
  20.  
  21. -- Creating a Button
  22.  
  23. local Button = Page:AddButton("Button 1", function()
  24.     print("Button 1 pressed!")
  25. end)
  26.  
  27.  
  28. -- Creating a Label
  29.  
  30. local Label = Page:AddLabel("Label 1")
  31.  
  32.  
  33. -- Creating a Dropdown
  34.  
  35. local Dropdown = Page:AddDropdown("Dropdown 1", {"Value 1", "Value 2", "Value 3"}, function(Value)
  36.     print(Value)
  37. end)
  38.  
  39.  
  40. -- Creating a Colour Picker
  41.  
  42. local ColourPicker = Page:AddColourPicker("Colour Picker 1", "white", function(Value)
  43.     print(Value)
  44. end)
  45.  
  46.  
  47. -- Creating a Slider
  48.  
  49. local Slider = Page:AddSlider("Slider 1", {Minimum = 0, Maximum = 255, Default = 50}, function(Value)
  50.     print(Value)
  51. end)
  52.  
  53.  
  54. -- Creating a Toggle
  55.  
  56. local Toggle = Page:AddToggle("Toggle 1", false, function(Value)
  57.     print(Value)
  58. end)
  59.  
  60.  
  61. -- Creating a TextBox
  62.  
  63. local TextBox = Page:AddTextBox("TextBox 1", function(Value)
  64.     print(Value)
  65. end)
  66.  
  67.  
  68. -- Destroying the Interface
  69.  
  70. Window:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment