local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()

local Window = Rayfield:CreateWindow({
   Name = "Flame Hub",
   LoadingTitle = "Flame Hub is loading",
   LoadingSubtitle = "by Flame",
   ConfigurationSaving = {
      Enabled = false,
      FolderName = nil, -- Create a custom folder for your hub/game
      FileName = "Flame 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 MainTab = Window:CreateTab("Player", nil) -- Title, Image
local Section = MainTab:CreateSection("Player")

Rayfield:Notify({
   Title = "Script Executed",
   Content = "Script is loading",
   Duration = 5,
   Image = nil,
   Actions = { -- Notification Buttons
      Ignore = {
         Name = "OK",
         Callback = function()
         print("The user tapped OK!")
      end
   },
},
})

local Toggle = MainTab:CreateToggle({
   Name = "Infinite Jump",
   CurrentValue = false,
   Flag = "Toggle Infinite Jump", -- 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)
        local infjmp = true
game:GetService("UserInputService").jumpRequest:Connect(function()
    if infjmp then
        game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass"Humanoid":ChangeState("Jumping")
    end
end)
   end,
})

local Slider = MainTab:CreateSlider({
   Name = "Walkspeed",
   Range = {0, 500},
   Increment = 1,
   Suffix = "Speed",
   CurrentValue = 16,
   Flag = "Slider1", -- 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)
        game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = (Value)
   end,
})

local CombatTab = Window:CreateTab("Combat", nil) -- Title, Image
local Section = CombatTab:CreateSection("Combat")

local Toggle = CombatTab:CreateToggle({
   Name = "Kill Aura",
   CurrentValue = false,
   Flag = "Toggle Kill Aura", -- 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)
        -- LocalScript
local player = game.Players.LocalPlayer
local character = player.Character
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
local radius = 25 -- Radius of the aura

-- Function to damage players within the aura radius
local function damagePlayersInRadius()
    local players = game.Players:GetPlayers()

    for _, otherPlayer in ipairs(players) do
        if otherPlayer ~= player then
            local otherCharacter = otherPlayer.Character
            if otherCharacter then
                local otherHumanoidRootPart = otherCharacter:FindFirstChild("HumanoidRootPart")
                if otherHumanoidRootPart then
                    local distance = (humanoidRootPart.Position - otherHumanoidRootPart.Position).magnitude
                    if distance <= radius then
                        local humanoid = otherCharacter:FindFirstChildOfClass("Humanoid")
                        if humanoid then
                            humanoid:TakeDamage(10) -- Damage amount
                        end
                    end
                end
            end
        end
    end
end

-- Repeat the function every 1 second
while true do
    damagePlayersInRadius()
    wait(1) -- Wait time in seconds
end

   end,
})

local Toggle = CombatTab:CreateToggle({
   Name = "Aim Assist",
   CurrentValue = false,
   Flag = "Toggle Aim Assist", -- 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)
        local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local LockOnEvent = ReplicatedStorage:WaitForChild("LockOn")
local player = Players.LocalPlayer
local mouse = player:GetMouse()
local camera = workspace.CurrentCamera

-- Settings
local lockOnRadius = 50 -- Radius to find the closest player
local lockOnStrength = 0.5 -- Strength of the lock-on effect

-- Function to get the closest player within the lock-on radius
local function getClosestPlayer()
    local closestPlayer = nil
    local closestDistance = lockOnRadius

    for _, otherPlayer in ipairs(Players:GetPlayers()) do
        if otherPlayer ~= player and otherPlayer.Character then
            local humanoidRootPart = otherPlayer.Character:FindFirstChild("HumanoidRootPart")
            if humanoidRootPart then
                local distance = (mouse.Hit.p - humanoidRootPart.Position).magnitude
                if distance <= lockOnRadius and distance < closestDistance then
                    closestPlayer = otherPlayer
                    closestDistance = distance
                end
            end
        end
    end

    return closestPlayer
end

-- Function to lock onto a target player
local function lockOn()
    local closestPlayer = getClosestPlayer()
    if closestPlayer and closestPlayer.Character then
        local targetPosition = closestPlayer.Character:FindFirstChild("HumanoidRootPart").Position
        local directionToTarget = (targetPosition - camera.CFrame.p).unit
        local adjustedPosition = camera.CFrame.p + (directionToTarget * lockOnStrength)
        mouse.Hit = CFrame.new(adjustedPosition)
    end
end

-- Trigger lock-on effect when RemoteEvent is fired
LockOnEvent.OnClientEvent:Connect(function()
    lockOn()
end)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: