local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()
local Window = Rayfield:CreateWindow({
Name = "🔥 Example Script Hub | Game 🔫",
LoadingTitle = "🔫 Gun Simulator 💥",
LoadingSubtitle = "by 1_F0",
ConfigurationSaving = {
Enabled = false,
FolderName = nil, -- Create a custom folder for your hub/game
FileName = "Example 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 = "Key | Youtube Hub",
Subtitle = "Key System",
Note = "Key In Discord Server",
FileName = "YoutubeHubKey1", -- It is recommended to use something unique as other scripts using Rayfield may overwrite your key file
SaveKey = false, -- The user's key will be saved, but if you change the key, they will be unable to use your script
GrabKeyFromSite = true, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
Key = {"https://[Log in to view URL]"} -- List of keys that will be accepted by the system, can be RAW file links (pastebin, github etc) or simple strings ("hello","key22")
}
})
local MainTab = Window:CreateTab("🏠 Main", nil) -- Title, Image
local MainSection = MainTab:CreateSection("Main")
local Button = MainTab:CreateButton({
Name = "Button Example",
Callback = function()
-- The function that takes place when the button is pressed
end,
})
--farming functions
--bicep varables
local BWEIGHT = 100
local FarmTab = Window:CreateTab("💪 AutoFarm", nil) -- Title, Image
local BicepSection = FarmTab:CreateSection("Bicep")
local Dropdown = FarmTab:CreateDropdown({
Name = "Dropdown Example",
Options = {"Option 1","Option 2"},
CurrentOption = {"Option 1"},
MultipleOptions = false,
Flag = "Dropdown1", -- 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(Option)
-- The function that takes place when the selected option is changed
-- The variable (Option) is a table of strings for the current selected options
end,
})
local Toggle = FarmTab:CreateToggle({
Name = "Toggle Bicep Farm",
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)
print(Dropdown.CurrentOption)
end,
})
local HandsSection = FarmTab:CreateSection("Hands")
local KnuckleSection = FarmTab:CreateSection("Knuckle")
To embed this program on your website, copy the following code and paste it into your website's HTML: