Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.sirius.menu/llms.txt

Use this file to discover all available pages before exploring further.

Load Rayfield

Add the following line at the top of your script to load the Rayfield library.
local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()

Enable configuration saving

Configuration saving lets Rayfield automatically persist and restore element values across sessions.
1

Enable ConfigurationSaving in CreateWindow

Set ConfigurationSaving.Enabled to true and provide a FileName when calling CreateWindow.
2

Set a unique flag on each element

Every element that supports configuration saving has a Flag field. Make sure each flag is unique to avoid conflicts.
3

Call LoadConfiguration at the end of your script

Place Rayfield:LoadConfiguration() after all your elements have been created.
Rayfield:LoadConfiguration()
Rayfield will now automatically save and restore your configuration on each load.