-- Check if PlaceId matches the target game
if game.PlaceId == 189707 or game.PlaceId == 3255508650 then
-- Load the Rayfield library
local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()
-- Function to 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
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 the 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()
-- Function to 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
local ScriptTab = Window:CreateTab("📜 Script", nil) -- New Script Tab
local FETab = Window:CreateTab("🔮 FE", nil) -- New FE Tab
-- Add Sections to Tabs
MainTab:CreateSection("Main")
BrawlTab:CreateSection("Scripts")
RageTab:CreateSection("Rage Features") -- Rage section
ScriptTab:CreateSection("Execute Your Script") -- Section in Script Tab
FETab:CreateSection("FE Features") -- Section for FE features
return MainTab, BrawlTab, RageTab, ScriptTab, FETab
end
local MainTab, BrawlTab, RageTab, ScriptTab, FETab = createTabs()
-- Load external script with error handling
local function loadExternalScript(url)
local success, err = pcall(function()
local response = game:HttpGet(url, 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
local scriptURL = 'https://[Log in to view URL]'
loadExternalScript(scriptURL)
-- 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 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 for "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)
-- Fly Script
local flying = false
local player = game.Players.LocalPlayer
local character = player.Character
local hrp
local function toggleFly()
flying = not flying
hrp = character:FindFirstChild("HumanoidRootPart")
if not hrp then
Rayfield:Notify({
Title = "Error",
Content = "HumanoidRootPart not found. Ensure your character is loaded properly.",
Duration = 5,
Image = nil,
})
return
end
if flying then
local bodyGyro = Instance.new("BodyGyro")
local bodyVelocity = Instance.new("BodyVelocity")
bodyGyro.P = 9e4
bodyGyro.Parent = hrp
bodyGyro.MaxTorque = Vector3.new(9e4, 9e4, 9e4)
bodyVelocity.Velocity = Vector3.new(0, 0.1, 0) -- Press up to fly
bodyVelocity.MaxForce = Vector3.new(9e4, 9e4, 9e4)
bodyVelocity.Parent = hrp
-- Fly loop
while flying and wait() do
bodyGyro.CFrame = CFrame.new(workspace.CurrentCamera.CFrame.Position)
bodyVelocity.Velocity = (workspace.CurrentCamera.CFrame.LookVector * 50) + Vector3.new(0, 0.1, 0) -- Change to add a slight upward velocity
end
-- Clean up BodyGyro and BodyVelocity on toggle off
bodyGyro:Destroy()
bodyVelocity:Destroy()
end
end
-- Create Fly Button in Main Tab
MainTab:CreateButton({
Name = "Toggle Fly",
Flag = "FlyButton",
Callback = toggleFly
})
-- FE Fling Script for Brawl Tab
local function feFlingPlayer()
local player = game.Players.LocalPlayer
local character = player.Character
if character and character:FindFirstChild("HumanoidRootPart") then
-- Create a BodyVelocity for fling mechanics
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 FE Fling Button in Brawl Tab
BrawlTab:CreateButton({
Name = "Activate FE Fling",
Flag = "FEFlingButton",
Callback = feFlingPlayer
})
-- Rage Tab Features
local rageEnabled = false
-- Toggle Damage Multiplier in Rage Tab
local function toggleRage()
rageEnabled = not rageEnabled
if rageEnabled then
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
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,
})
-- Script Tab: Execute Scripts from UI
ScriptTab:CreateTextBox({
Name = "Custom Script",
PlaceholderText = "Paste your script here...",
TextDisappear = true,
Callback = function(script)
local success, err = pcall(function()
loadstring(script)() -- Execute the script
end)
if success then
Rayfield:Notify({
Title = "Script Executed",
Content = "Your script has run successfully!",
Duration = 5,
Image = nil,
})
else
Rayfield:Notify({
Title = "Script Error",
Content = "Error executing script: " .. tostring(err),
Duration = 5,
Image = nil,
})
end
end
})
-- FE Black Hole Script for FE Tab
local function activateBlackHole()
local player = game.Players.LocalPlayer
local character = player.Character
if character and character:FindFirstChild("HumanoidRootPart") then
local blackHole = Instance.new("Part")
blackHole.Size = Vector3.new(10, 10, 10) -- Size of the black hole
blackHole.Shape = Enum.PartType.Ball
blackHole.BrickColor = BrickColor.new("Really black")
blackHole.Material = Enum.Material.SmoothPlastic
blackHole.Anchored = true
blackHole.CanCollide = false
blackHole.Position = character.HumanoidRootPart.Position
blackHole.Parent = workspace
blackHole:SetNetworkOwner(nil) -- Ensure it’s networked for all clients
-- Create a sound effect for the black hole
local sound = Instance.new("Sound", blackHole)
sound.SoundId = "rbxassetid://your-sound-id" -- Replace with your preferred sound ID
sound:Play()
-- Create a pull effect
blackHole.Touched:Connect(function(hit)
local human = hit.Parent:FindFirstChild("Humanoid")
if human and hit.Parent ~= character then
local direction = (blackHole.Position - hit.Position).unit
local forceMagnitude = 50 -- Adjust force strength as needed
local bodyVelocity = Instance.new("BodyVelocity")
bodyVelocity.Velocity = direction * forceMagnitude
bodyVelocity.MaxForce = Vector3.new(5000, 5000, 5000)
bodyVelocity.Parent = hit.Parent.HumanoidRootPart
-- Clean up after force is applied
game:GetService("Debris"):AddItem(bodyVelocity, 0.25)
end
end)
-- Clean up black hole after a set duration
game:GetService("Debris"):AddItem(blackHole, 5) -- Destroy after 5 seconds
else
Rayfield:Notify({
Title = "Error",
Content = "HumanoidRootPart not found. Ensure your character is loaded properly.",
Duration = 5,
Image = nil,
})
end
end
-- Add Black Hole Button in FE Tab
FETab:CreateButton({
Name = "Activate FE Black Hole",
Flag = "BlackHoleButton",
Callback = activateBlackHole
})
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: