From 5da3f2f197ddc054d3402ae8b63a74b35f6a4c56 Mon Sep 17 00:00:00 2001 From: greentrevion23-afk Date: Tue, 2 Jun 2026 11:34:29 -0500 Subject: [PATCH] Update getting-started.mdx -local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() title: Loading the library description: How to load Rayfield into your script and enable configuration saving. --- **Share your script with the community.** Publish your script on [RoScripts](https://roscripts.io) so players can find your script. ## Load Rayfield Add the following line at the top of your script to load the Rayfield library. ```lua local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() ``` ## Enable configuration saving Configuration saving lets Rayfield automatically persist and restore element values across sessions. Set `ConfigurationSaving.Enabled` to `true` and provide a `FileName` when calling `CreateWindow`. Every element that supports configuration saving has a `Flag` field. Make sure each flag is unique to avoid conflicts. Place `Rayfield:LoadConfiguration()` after all your elements have been created. ```lua Rayfield:LoadConfiguration() ``` Rayfield will now automatically save and restore your configuration on each load. --- rayfield/getting-started.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rayfield/getting-started.mdx b/rayfield/getting-started.mdx index 28368dd..6d3a752 100644 --- a/rayfield/getting-started.mdx +++ b/rayfield/getting-started.mdx @@ -1,4 +1,4 @@ ---- +---local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() title: Loading the library description: How to load Rayfield into your script and enable configuration saving. ---