Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Rayfield UI Starter (clean theme, ready for legit features)
- local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
- local Window = Rayfield:CreateWindow({
- Name = "Your Hub | Rayfield",
- LoadingTitle = "Booting UI…",
- LoadingSubtitle = "for your fans ✨",
- ConfigurationSaving = {
- Enabled = true,
- FolderName = "YourHub",
- FileName = "Settings"
- },
- Discord = { Enabled = false },
- KeySystem = false,
- })
- -- Tabs
- local Main = Window:CreateTab("Main", 4483362458)
- local Visuals = Window:CreateTab("Visuals", 4483362458)
- local About = Window:CreateTab("About", 4483362458)
- -- MAIN: Toggles / Buttons (PUT YOUR ALLOWED FEATURES HERE)
- Main:CreateSection("Controls")
- Main:CreateToggle({
- Name = "Feature A (allowed)",
- CurrentValue = false,
- Flag = "FeatureA",
- Callback = function(on)
- -- TODO: implement your *permitted* feature here
- -- Example: toggling a custom camera mode in your own place
- if on then
- print("Feature A ON")
- else
- print("Feature A OFF")
- end
- end,
- })
- Main:CreateSlider({
- Name = "Speed (demo)",
- Range = {1, 100},
- Increment = 1,
- Suffix = "level",
- CurrentValue = 25,
- Flag = "SpeedLevel",
- Callback = function(value)
- -- TODO: apply to your allowed systems only
- print("Speed set to", value)
- end,
- })
- Main:CreateDropdown({
- Name = "Theme Accent",
- Options = {"Default","Cyan","Purple","Red","Green","Gold"},
- CurrentOption = "Default",
- Flag = "Accent",
- Callback = function(option)
- -- Simple accent demo (UIStroke color for your own frames, etc.)
- print("Accent:", option)
- end,
- })
- Main:CreateButton({
- Name = "Run Allowed Script",
- Callback = function()
- -- Example: load your OWN script or code for YOUR game/place
- -- loadstring(game:HttpGet("https://your-safe-endpoint.example/yourfile.lua"))()
- print("Ran your allowed script.")
- end,
- })
- -- VISUALS: Cosmetic settings for your UI/videos
- Visuals:CreateSection("UI Cosmetics")
- Visuals:CreateToggle({
- Name = "Compact Mode",
- CurrentValue = false,
- Flag = "CompactMode",
- Callback = function(on)
- -- You can resize/move Rayfield here if you want
- print("Compact Mode:", on)
- end,
- })
- Visuals:CreateKeybind({
- Name = "Toggle UI",
- CurrentKeybind = "RightControl",
- HoldToInteract = false,
- Flag = "ToggleUIBind",
- Callback = function()
- Rayfield:Toggle() -- shows/hides the UI
- end,
- })
- -- ABOUT
- About:CreateParagraph({Title = "Notes", Content = "Use this hub for your own features or things a game explicitly allows. No bypassing paid content."})
Advertisement
Add Comment
Please, Sign In to add comment