Advertisement
DrogbaLeHbb

Untitled

Nov 1st, 2024
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.55 KB | None | 0 0
  1. local Rayfield = loadstring(game:HttpGet('https://raw.githubusercontent.com/shlexware/Rayfield/main/source'))()
  2.  
  3. local Window = Rayfield:CreateWindow({
  4. Name = "Rayfield Example Window",
  5. LoadingTitle = "Rayfield Interface Suite",
  6. LoadingSubtitle = "by Sirius",
  7. ConfigurationSaving = {
  8. Enabled = true,
  9. FolderName = nil, -- Create a custom folder for your hub/game
  10. FileName = "Big Hub"
  11. },
  12. Discord = {
  13. Enabled = false,
  14. Invite = "sirius", -- The Discord invite code, do not include discord.gg/
  15. RememberJoins = true -- Set this to false to make them join the discord every time they load it up
  16. },
  17. KeySystem = true, -- Set this to true to use our key system
  18. KeySettings = {
  19. Title = "Sirius Hub",
  20. Subtitle = "Key System",
  21. Note = "Join the discord (discord.gg/sirius)",
  22. FileName = "SiriusKey",
  23. SaveKey = true,
  24. GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
  25. Key = ":p"
  26. }
  27. })
  28.  
  29. local Tab = Window:CreateTab("Tab Example", 4483362458)
  30.  
  31. local Section = Tab:CreateSection("Section Example")
  32.  
  33. Rayfield:Notify({
  34. Title = "Notification Title",
  35. Content = "Notification Content",
  36. Duration = 6.5,
  37. Image = 4483362458,
  38. Actions = { -- Notification Buttons
  39. Ignore = {
  40. Name = "Okay!",
  41. Callback = function()
  42. print("The user tapped Okay!")
  43. end
  44. },
  45. },
  46. })
  47.  
  48. local Button = Tab:CreateButton({
  49. Name = "Button Example",
  50. Callback = function()
  51. -- The function that takes place when the button is pressed
  52. end,
  53. })
  54.  
  55. local Toggle = Tab:CreateToggle({
  56. Name = "Toggle Example",
  57. CurrentValue = false,
  58. Flag = "Toggle1", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
  59. Callback = function(Value)
  60. -- The function that takes place when the toggle is pressed
  61. -- The variable (Value) is a boolean on whether the toggle is true or false
  62. end,
  63. })
  64.  
  65. local Slider = Tab:CreateSlider({
  66. Name = "Slider Example",
  67. Range = {0, 100},
  68. Increment = 10,
  69. Suffix = "Bananas",
  70. CurrentValue = 10,
  71. Flag = "Slider1", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
  72. Callback = function(Value)
  73. -- The function that takes place when the slider changes
  74. -- The variable (Value) is a number which correlates to the value the slider is currently at
  75. end,
  76. })
  77.  
  78. local Input = Tab:CreateInput({
  79. Name = "Input Example",
  80. PlaceholderText = "Input Placeholder",
  81. RemoveTextAfterFocusLost = false,
  82. Callback = function(Text)
  83. -- The function that takes place when the input is changed
  84. -- The variable (Text) is a string for the value in the text box
  85. end,
  86. })
  87.  
  88.  
  89. local Dropdown = Tab:CreateDropdown({
  90. Name = "Dropdown Example",
  91. Options = {"Option 1","Option 2"},
  92. CurrentOption = "Option 1",
  93. Flag = "Dropdown1", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
  94. Callback = function(Option)
  95. -- The function that takes place when the selected option is changed
  96. -- The variable (Option) is a string for the value that the dropdown was changed to
  97. end,
  98. })
  99.  
  100. local Paragraph = Tab:CreateParagraph({Title = "Paragraph Example", Content = "Paragraph Example"})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement