-- Check if PlaceId matches the target game
if game.PlaceId == 189707 or game.PlaceId == 3255508650 then
-- Load Rayfield library
local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()
-- Create Rayfield window with settings
local function createWindow()
return Rayfield:CreateWindow({
Name = "IN BETA-FE HUB",
Icon = 0,
LoadingTitle = "BETA TAYEVION HUB",
LoadingSubtitle = "by TAYEVION",
Enabled = true,
Invite = "__iiamdiorr",
RememberJoins = true
})
end
local Window = createWindow()
-- Key System with improved error handling and retry logic
local function setupKeySystem()
local KeySettings = {
Title = "TAYEVION KEY System",
Subtitle = "DM ME TO GET KEY",
Note = "Instagram: __iiamdiorr",
FileName = "HUB FE",
SaveKey = false,
GrabKeyFromSite = true,
Key = {"https://[Log in to view URL]"} -- Replace with actual key retrieval URL
}
-- Retry logic for Key System setup
local success, err
local retries = 0
repeat
success, err = pcall(function()
Window:SetKeySystem(KeySettings)
end)
retries = retries + 1
if not success then
warn("Error setting up key system: " .. err)
wait(2) -- Wait before retrying
end
until success or retries > 3 -- Retry up to 3 times
if not success then
Rayfield:Notify({
Title = "Key System Error",
Content = "There was an error setting up the key system. Please try again later.",
Duration = 5,
Image = nil,
})
else
-- Notify user that key system was set up successfully
Rayfield:Notify({
Title = "Key System",
Content = "Key system set up successfully! You can now access features.",
Duration = 5,
Image = nil,
})
end
end
setupKeySystem()
-- Create Tabs and Sections
local function createTabs()
local MainTab = Window:CreateTab("🏠 Home", nil)
local BrawlTab = Window:CreateTab("Brawl 2 Scripts", nil)
local RageTab = Window:CreateTab("💥 Rage", nil) -- New Rage Tab
-- Add Sections to Tabs
local mainSection = MainTab:CreateSection("Main")
local brawlSection = BrawlTab:CreateSection("Scripts")
local rageSection = RageTab:CreateSection("Rage Features") -- Rage section
return MainTab, BrawlTab, RageTab
end
local MainTab, BrawlTab, RageTab = createTabs()
-- Load external script with error handling
local function loadExternalScript()
local success, err = pcall(function()
local scriptURL = 'https://[Log in to view URL]'
local response = game:HttpGet(scriptURL, true)
loadstring(response)() -- Execute the script
end)
if not success then
warn("Error loading external script: " .. err)
Rayfield:Notify({
Title = "External Script Error",
Content = "The external script failed to load. Please try again later.",
Duration = 5,
Image = nil,
})
end
end
loadExternalScript()
-- Add Notification for script execution
local function sendNotification()
Rayfield:Notify({
Title = "Script Executed",
Content = "Enjoy the new features!",
Duration = 5,
Image = nil,
})
end
sendNotification()
-- Create Slider for Walkspeed Adjustment
local function createSlider(tab)
tab:CreateSlider({
Name = "Walkspeed",
Range = {0, 300},
Increment = 1,
Suffix = "Speed",
CurrentValue = 16, -- Default value
Flag = "Slider1",
Callback = function(Value)
local player = game.Players.LocalPlayer
local humanoid = player.Character and player.Character:FindFirstChild("Humanoid")
-- Ensure humanoid is valid and ready before setting walkspeed
if humanoid then
local success, err = pcall(function()
humanoid.WalkSpeed = Value
end)
if not success then
warn("Error setting walkspeed: " .. err)
Rayfield:Notify({
Title = "Walkspeed Error",
Content = "Failed to set Walkspeed.",
Duration = 5,
Image = nil,
})
end
else
warn("Humanoid not found. Ensure character is fully loaded.")
Rayfield:Notify({
Title = "Character Error",
Content = "Humanoid not found. Please make sure your character is loaded.",
Duration = 5,
Image = nil,
})
end
end,
})
end
createSlider(MainTab)
-- Create Dropdown (Coming Soon Section)
local function createDropdown(tab)
tab:CreateDropdown({
Name = "Coming Soon",
Options = {"Option 1", "Option 2"},
CurrentOption = {"Option 1"},
MultipleOptions = false,
Flag = "Teleport",
Callback = function(Options)
-- Handle option selection
print("Selected: " .. Options[1]) -- Example of handling selection
Rayfield:Notify({
Title = "Option Selected",
Content = "You selected: " .. Options[1],
Duration = 5,
Image = nil,
})
end,
})
end
createDropdown(MainTab)
-- Fling Script for Brawl 2
local function flingPlayer()
local player = game.Players.LocalPlayer
local character = player.Character
if character and character:FindFirstChild("HumanoidRootPart") then
-- Apply fling effect using BodyVelocity
local humanoidRootPart = character.HumanoidRootPart
local bodyVelocity = Instance.new("BodyVelocity")
bodyVelocity.MaxForce = Vector3.new(500000, 500000, 500000) -- Large force to fling
bodyVelocity.Velocity = Vector3.new(
math.random(-500, 500),
math.random(300, 600),
math.random(-500, 500)
) -- Random fling direction and force
bodyVelocity.Parent = humanoidRootPart
-- Cleanup after fling (remove BodyVelocity after 0.5 seconds)
game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
Rayfield:Notify({
Title = "Fling Activated",
Content = "Your character has been flung!",
Duration = 5,
Image = nil,
})
else
Rayfield:Notify({
Title = "Error",
Content = "HumanoidRootPart not found. Ensure your character is loaded properly.",
Duration = 5,
Image = nil,
})
end
end
-- Add Fling Button in Brawl Tab
BrawlTab:CreateButton({
Name = "Activate Fling",
Flag = "FlingButton",
Callback = flingPlayer
})
-- Rage Tab Features
local rageEnabled = false
-- Toggle Damage Multiplier in Rage Tab
local function toggleRage()
rageEnabled = not rageEnabled
if rageEnabled then
-- Enable Rage (Increase damage or whatever desired effect)
Rayfield:Notify({
Title = "Rage Mode Activated",
Content = "Your damage has been multiplied!",
Duration = 5,
Image = nil,
})
-- Implement damage multiplier logic here (for example, increase damage output)
else
-- Disable Rage
Rayfield:Notify({
Title = "Rage Mode Deactivated",
Content = "Your damage multiplier has been removed.",
Duration = 5,
Image = nil,
})
-- Revert changes (e.g., return damage to normal)
end
end
RageTab:CreateButton({
Name = "Toggle Rage",
Flag = "RageButton",
Callback = toggleRage,
})
else
-- User-friendly exit if PlaceId doesn't match
Rayfield:Notify({
Title = "Unsupported Game",
Content = "This script is only intended for specific games. Exiting...",
Duration = 5,
Image = nil,
})
end
To embed this program on your website, copy the following code and paste it into your website's HTML: