Skip to main content
Sentivel Endorsed by RayfieldStatus pages and uptime monitoring for whatever you ship. Free to start.Take a look
Share your script with the community.Publish your script on RoScripts so players can find your script.

Load Rayfield

Add the following line at the top of your script to load the Rayfield library.

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 will now automatically save and restore your configuration on each load.