Skip to main content
Rayfield Gen2 is out NewA ground-up rebuild — faster, undetectable by design, and actively developed. Use it for new scripts instead of Rayfield (2022).Read the Gen2 docs ForgeA key system for your scriptPlayers earn keys through ad links or buy them in your own store.Open Forge
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.

Share it

Publish your script on RoScripts and people can find it by game, copy a loadstring link that keeps working through every update, and see what Scriptsight found when it read the code.

Publish on RoScripts

List your script for free, with a short link and a Scriptsight review.