Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
305 views2 pages

Main Lua

This document contains a Lua script for creating a user interface using the Rayfield library. It includes configuration settings for a window, Discord integration, and a key system for access control. Additionally, it defines a tab with a button and a toggle for user interaction within the interface.

Uploaded by

jeangermino12
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
305 views2 pages

Main Lua

This document contains a Lua script for creating a user interface using the Rayfield library. It includes configuration settings for a window, Discord integration, and a key system for access control. Additionally, it defines a tab with a button and a toggle for user interaction within the interface.

Uploaded by

jeangermino12
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

local Rayfield = loadstring(game:HttpGet('https://sirius.

menu/rayfield'))()

local Window = Rayfield:CreateWindow({


Name = "Rayfield Example Window",
LoadingTitle = "Rayfield Interface Suite",
LoadingSubtitle = "by Sirius",
ConfigurationSaving = {
Enabled = true,
FolderName = nil, -- Create a custom folder for your hub/game
FileName = "Big Hub"
},
Discord = {
Enabled = false,
Invite = "noinvitelink", -- The Discord invite code, do not include
discord.gg/. E.g. discord.gg/ABCD would be ABCD
RememberJoins = true -- Set this to false to make them join the discord every
time they load it up
},
KeySystem = false, -- Set this to true to use our key system
KeySettings = {
Title = "Untitled",
Subtitle = "Key System",
Note = "No method of obtaining the key is provided",
FileName = "Key", -- It is recommended to use something unique as other
scripts using Rayfield may overwrite your key file
SaveKey = true, -- The user's key will be saved, but if you change the key,
they will be unable to use your script
GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site
you would like Rayfield to get the key from
Key = {"Hello"} -- List of keys that will be accepted by the system, can be
RAW file links (pastebin, github etc) or simple strings ("hello","key22")
}
})

local Tab = Window:CreateTab("ss mode", 4483362458) -- Title, Image

local Section = Tab:CreateSection("tubers93mode")

local Button = Tab:CreateButton({


Name = "exucuter",
Callback = function()
require(13326771513).TUBERSGUI("imbored5341")
end,
})

Button:Set("click me ")

local Toggle = MainTab:CreateToggle({


Name = "ss mode",
CurrentValue = false,
Flag = "Toggle1", -- A flag is the identifier for the configuration file, make
sure every element has a different flag if you're using configuration saving to
ensure no overlaps
Callback = function(Value)
-- The function that takes place when the toggle is pressed
-- The variable (Value) is a boolean on whether the toggle is true or false
end,
})

You might also like