if game.PlaceId ~= 96342491571673 and game.
PlaceId ~= 109983668079237 then
    return
end
local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
local Window = Rayfield:CreateWindow({
   Name = "HLemon Hub | Steal A Brainrot [Premium Script]",
   Icon = 133520378097790,
   LoadingTitle = "Steal A Brainrot Script Script [Premium Script] @Han",
   LoadingSubtitle = "Join Discord HLemonHub",
   Theme = "DarkBlue",
   DisableRayfieldPrompts = false,
   DisableBuildWarnings = false,
   ConfigurationSaving = {
      Enabled = true,
      FolderName = "HanzHub",
      FileName = "Hanz Hub"
   },
   Discord = {
      Enabled = true,
      Invite = "ECxQFc97F5",
      RememberJoins = true
   },
   KeySystem = False,
   KeySettings = {
      Title = "Han Key",
      Subtitle = "Key system",
      Note = "Mau Key? Buy Key Premium",
      FileName = "Key",
      SaveKey = true,
      GrabKeyFromSite = false,
      Key = {"Premium_jfgue786eh767et75egyf5"}
   }
})
-- Buat part transparan untuk Billboard
local part = Instance.new("Part", workspace)
part.Anchored = true
part.CanCollide = false
part.Size = Vector3.new(4,1,4)
part.Transparency = 1
part.Name = "DiscordBillboard"
-- Ambil posisi player
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local hrp = char:WaitForChild("HumanoidRootPart")
part.Position = hrp.Position + Vector3.new(0,5,0)
-- Buat BillboardGui
local bb = Instance.new("BillboardGui", part)
bb.Size = UDim2.new(0, 200, 0, 50)
bb.StudsOffset = Vector3.new(0, 6, 0)
bb.AlwaysOnTop = true
-- Teks utama
local text = Instance.new("TextLabel", bb)
text.Size = UDim2.new(1, 0, 1, 0)
text.BackgroundTransparency = 1
text.Text = "discord.gg/ECxQFc97F5"
text.TextColor3 = Color3.fromRGB(180, 220, 255)
text.TextStrokeTransparency = 0
text.TextStrokeColor3 = Color3.new(0, 0, 0)
text.Font = Enum.Font.GothamBold
text.TextScaled = true
-- Tambahkan gambar (tanduk/icon)
local img = Instance.new("ImageLabel", bb)
img.Size = UDim2.new(0.3, 0, 0.3, 0)
img.Position = UDim2.new(0.35, 0, 1, 0)
img.BackgroundTransparency = 100
img.Image = "133520378097790" -- 🔷 ID gambar bisa diganti sesuai selera
-- Auto hilang setelah 1 detik
task.delay(10, function()
     part:Destroy()
end)
local Tab = Window:CreateTab("Update", nil) -- Title, Image
Tab:CreateSection("Changelog")
Tab:CreateParagraph({
    Title = "What's New?",
    Content = [[
[+] Added Notify Brainrot Spawn
 - Mythic Brainrot
 - God Brainrot
 - Secret Brainrot
- Join discord HLemon Hub
    ]]
})
local Button = Tab:CreateButton({
   Name = "Copy Discord Link",
   Callback = function()
      -- Ganti link di sini dengan link Discord kamu
      setclipboard("https://discord.gg/ECxQFc97F5")
        -- Tampilkan notifikasi bahwa link sudah dicopy
        Rayfield:Notify({
           Title = "Copied!",
           Content = "Discord link copied to clipboard.",
           Duration = 2,
           Image = 4483362458,
           Actions = {
              Ignore = {
                 Name = "OK",
                 Callback = function() end
              }
           }
        })
     end,
})
local Tab = Window:CreateTab("Main", nil)
local Section = Tab:CreateSection("Player Setting")
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local boostSpeedActive = false
local boostSpeedConnection = nil
local speed = 50
-- Buat GUI
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "BoostSpeedGui"
ScreenGui.ResetOnSpawn = false
ScreenGui.Parent = game.CoreGui
ScreenGui.Enabled = false -- Awalnya tidak tampil
local Frame = Instance.new("Frame", ScreenGui)
Frame.Size = UDim2.new(0, 200, 0, 120)
Frame.Position = UDim2.new(0.5, -100, 0.5, -60)
Frame.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
Frame.BorderSizePixel = 0
Frame.Active = true
Frame.Draggable = true
local UICorner = Instance.new("UICorner", Frame)
UICorner.CornerRadius = UDim.new(0, 8)
-- Judul
local Title = Instance.new("TextLabel", Frame)
Title.Size = UDim2.new(1, 0, 0, 30)
Title.Position = UDim2.new(0, 0, 0, 0)
Title.BackgroundTransparency = 1
Title.Text = "Boost Speed"
Title.TextColor3 = Color3.new(1,1,1)
Title.Font = Enum.Font.SourceSansBold
Title.TextSize = 20
-- Tombol
local Button = Instance.new("TextButton", Frame)
Button.Size = UDim2.new(1, -20, 0, 40)
Button.Position = UDim2.new(0, 10, 0, 50)
Button.BackgroundColor3 = Color3.fromRGB(50, 150, 50)
Button.TextColor3 = Color3.new(1,1,1)
Button.Font = Enum.Font.SourceSansBold
Button.TextSize = 20
Button.Text = "Enable Boost"
local function updateButton()
    if boostSpeedActive then
         Button.Text = "Disable Boost"
         Button.BackgroundColor3 = Color3.fromRGB(150, 50, 50)
    else
         Button.Text = "Enable Boost"
         Button.BackgroundColor3 = Color3.fromRGB(50, 150, 50)
    end
end
local function setBoostState(state)
      boostSpeedActive = state
      updateButton()
      if boostSpeedConnection then
          boostSpeedConnection:Disconnect()
          boostSpeedConnection = nil
      end
      if boostSpeedActive then
          local character = player.Character or player.CharacterAdded:Wait()
          local humanoid = character:FindFirstChildOfClass("Humanoid")
          local hrp = character:FindFirstChild("HumanoidRootPart")
          if humanoid then
              humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
          end
          if not hrp then return end
            boostSpeedConnection = RunService.Heartbeat:Connect(function()
                if not boostSpeedActive then
                    if boostSpeedConnection then boostSpeedConnection:Disconnect() end
                    return
                end
                if not hrp or not hrp.Parent then
                    if boostSpeedConnection then boostSpeedConnection:Disconnect() end
                    return
                end
                local camera = workspace.CurrentCamera
                local lookVector = camera.CFrame.LookVector
                lookVector = Vector3.new(lookVector.X, 0, lookVector.Z).Unit
                hrp.Velocity = lookVector * speed
            end)
      else
            local character = player.Character
            if character then
                local hrp = character:FindFirstChild("HumanoidRootPart")
                if hrp then
                    hrp.Velocity = Vector3.new(0, 0, 0)
                end
            end
      end
end
-- Tombol GUI
Button.MouseButton1Click:Connect(function()
     setBoostState(not boostSpeedActive)
end)
updateButton()
-- === TOGGLE RAYFIELD ===
Tab:CreateToggle({
    Name = "Boost Speed",
    CurrentValue = false,
    Flag = "BoostSpeedGUI",
    Callback = function(show)
        ScreenGui.Enabled = show
           if not show then
               setBoostState(false) -- Pastikan boost mati saat GUI mati
           end
     end
})
local   TweenService = game:GetService("TweenService")
local   Players = game:GetService("Players")
local   LocalPlayer = Players.LocalPlayer
local   Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local   root = Character:WaitForChild("HumanoidRootPart")
local skyActive = false
-- Update karakter kalau respawn
local function updateCharacter()
    Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
    root = Character:WaitForChild("HumanoidRootPart")
end
-- Daftar posisi pintu
local doorPositions = {
    Vector3.new(-466, -1, 220), Vector3.new(-466, -2, 116), Vector3.new(-466, -2,
8),
    Vector3.new(-464, -2, -102), Vector3.new(-351, -2, -100), Vector3.new(-354, -2,
5),
    Vector3.new(-354, -2, 115), Vector3.new(-358, -2, 223)
}
-- Cari pintu terdekat
local function getNearestDoor()
    if not root then updateCharacter() end
    local closest, minDist = nil, math.huge
    for _, door in ipairs(doorPositions) do
        local dist = (root.Position - door).Magnitude
        if dist < minDist then
            minDist = dist
            closest = door
        end
    end
    return closest
end
-- Teleport ke pintu lalu ke langit
local function teleportToSky()
    if not root then updateCharacter() end
    local door = getNearestDoor()
    if door and root then
        TweenService:Create(root, TweenInfo.new(1.2), { CFrame =
CFrame.new(door) }):Play()
        task.wait(1.3)
        root.CFrame = root.CFrame + Vector3.new(0, 200, 0)
    end
end
-- Turun ke tanah
local function teleportToGround()
    if not root then updateCharacter() end
    if root then
            root.CFrame = root.CFrame - Vector3.new(0, 50, 0)
      end
end
-- =========================
-- GUI Basic
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "TeleportSkyGui"
ScreenGui.ResetOnSpawn = false
ScreenGui.Parent = game.CoreGui
ScreenGui.Enabled = false -- awalnya mati
local Frame = Instance.new("Frame", ScreenGui)
Frame.Size = UDim2.new(0, 200, 0, 120)
Frame.Position = UDim2.new(0.5, -100, 0.5, -60)
Frame.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
Frame.BorderSizePixel = 0
Frame.Active = true
Frame.Draggable = true
local UICorner = Instance.new("UICorner", Frame)
UICorner.CornerRadius = UDim.new(0, 8)
-- Judul
local Title = Instance.new("TextLabel", Frame)
Title.Size = UDim2.new(1, 0, 0, 30)
Title.Position = UDim2.new(0, 0, 0, 0)
Title.BackgroundTransparency = 1
Title.Text = "Teleport Sky"
Title.TextColor3 = Color3.new(1,1,1)
Title.Font = Enum.Font.SourceSansBold
Title.TextSize = 20
-- Tombol
local Button = Instance.new("TextButton", Frame)
Button.Size = UDim2.new(1, -20, 0, 40)
Button.Position = UDim2.new(0, 10, 0, 50)
Button.BackgroundColor3 = Color3.fromRGB(50, 150, 50)
Button.TextColor3 = Color3.new(1,1,1)
Button.Font = Enum.Font.SourceSansBold
Button.TextSize = 20
Button.Text = "Enable Sky"
local function updateButton()
    if skyActive then
         Button.Text = "Disable Sky"
         Button.BackgroundColor3 = Color3.fromRGB(150, 50, 50)
    else
         Button.Text = "Enable Sky"
         Button.BackgroundColor3 = Color3.fromRGB(50, 150, 50)
    end
end
local function setSkyState(state)
    skyActive = state
    updateButton()
      if skyActive then
          teleportToSky()
      else
            teleportToGround()
      end
end
Button.MouseButton1Click:Connect(function()
     setSkyState(not skyActive)
end)
updateButton()
-- =========================
-- TOGGLE RAYFIELD
Tab:CreateToggle({
   Name = "Teleport Sky",
   CurrentValue = false,
   Flag = "TeleportSkyGUI",
   Callback = function(show)
       ScreenGui.Enabled = show
       if not show then
           setSkyState(false) -- matikan sky kalau GUI mati
       end
   end
})
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local   LocalPlayer = Players.LocalPlayer
local   char = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local   humanoid = char:WaitForChild("Humanoid")
local   root = char:WaitForChild("HumanoidRootPart")
local boostJumpEnabled = false
local boostJumpConnection = nil
-- Toggle Rayfield
local Toggle = Tab:CreateToggle({
   Name = "Boost Jump",
   CurrentValue = false,
   Flag = "ToggleBoostJump",
   Callback = function(Value)
      boostJumpEnabled = Value
        if boostJumpEnabled then
           -- Sambungkan event loncat
           boostJumpConnection = UserInputService.JumpRequest:Connect(function()
              if boostJumpEnabled and humanoid and root then
                  root.AssemblyLinearVelocity = Vector3.new(0, 100, 0)
                  local gravityConn
                  gravityConn = RunService.Stepped:Connect(function()
                      if not char or not root or not humanoid or not boostJumpEnabled
then
                              gravityConn:Disconnect()
                              return
                        end
                        if humanoid:GetState() == Enum.HumanoidStateType.Freefall then
                           root.Velocity = Vector3.new(root.Velocity.X,
math.clamp(root.Velocity.Y, -20, 150), root.Velocity.Z)
                       elseif humanoid.FloorMaterial ~= Enum.Material.Air then
                           gravityConn:Disconnect()
                       end
                  end)
              end
          end)
      else
          -- Disconnect jika dinonaktifkan
          if boostJumpConnection then
              boostJumpConnection:Disconnect()
              boostJumpConnection = nil
          end
      end
   end,
})
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local humanoid = nil
local godConnection = nil
-- Fungsi update character & humanoid
local function updateCharacter()
    local char = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
    humanoid = char:FindFirstChildOfClass("Humanoid")
end
-- Fungsi God Mode
local function setGodMode(on)
    if not humanoid then updateCharacter() end
    if not humanoid then return end
    if on then
         humanoid.MaxHealth = math.huge
         humanoid.Health = math.huge
         if godConnection then godConnection:Disconnect() end
         godConnection =
humanoid:GetPropertyChangedSignal("Health"):Connect(function()
              if humanoid.Health < math.huge then
                  humanoid.Health = math.huge
              end
         end)
    else
         if godConnection then godConnection:Disconnect() end
         godConnection = nil
         pcall(function()
              humanoid.MaxHealth = 100
              humanoid.Health = 100
         end)
    end
end
-- Toggle Rayfield untuk God Mode
local Toggle = Tab:CreateToggle({
   Name = "GodMode",
   CurrentValue = false,
     Flag = "ToggleGodMode",
     Callback = function(Value)
        setGodMode(Value)
     end,
})
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local noclipConnection = nil
local Toggle = Tab:CreateToggle({
   Name = "Noclip",
   CurrentValue = false,
   Flag = "ToggleNoclip",
   Callback = function(Value)
      if Value then
         -- Aktifkan Noclip
         noclipConnection = RunService.Stepped:Connect(function()
             local character = LocalPlayer.Character
             if character then
                 for _, part in pairs(character:GetDescendants()) do
                     if part:IsA("BasePart") then
                         part.CanCollide = false
                     end
                 end
             end
         end)
      else
         -- Nonaktifkan Noclip
         if noclipConnection then
             noclipConnection:Disconnect()
             noclipConnection = nil
         end
           -- Kembalikan CanCollide ke true
           local character = LocalPlayer.Character
           if character then
               for _, part in pairs(character:GetDescendants()) do
                   if part:IsA("BasePart") then
                       part.CanCollide = true
                   end
               end
           end
        end
     end,
})
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local Camera = workspace.CurrentCamera
local espEnabled = false
local espObjects = {}
-- Fungsi untuk membuat ESP untuk satu player
local function createESP(player)
    if player == Players.LocalPlayer then return end
    if espObjects[player] then return end
    if not player.Character or not
player.Character:FindFirstChild("HumanoidRootPart") then return end
      local tracer = Drawing.new("Line")
      tracer.Thickness = 2
      tracer.Color = Color3.fromRGB(0, 255, 0)
      tracer.Visible = true
      local box = Drawing.new("Square")
      box.Thickness = 1.5
      box.Color = Color3.fromRGB(255, 0, 0)
      box.Visible = true
      box.Filled = false
      espObjects[player] = {Tracer = tracer, Box = box}
end
-- Hapus ESP ketika dimatikan atau player keluar
local function clearESP()
    for _, v in pairs(espObjects) do
        v.Tracer:Remove()
        v.Box:Remove()
    end
    espObjects = {}
end
-- Update posisi Tracer & Box setiap frame
RunService.RenderStepped:Connect(function()
    if not espEnabled then return end
      for player, data in pairs(espObjects) do
          if player.Character and player.Character:FindFirstChild("HumanoidRootPart")
then
                  local hrp = player.Character.HumanoidRootPart
                  local pos, onScreen = Camera:WorldToViewportPoint(hrp.Position)
                  local size = 5
            if onScreen then
                -- Tracer
                data.Tracer.From = Vector2.new(Camera.ViewportSize.X / 2,
Camera.ViewportSize.Y)
                data.Tracer.To = Vector2.new(pos.X, pos.Y)
                data.Tracer.Visible = true
                        -- Box
                        data.Box.Position = Vector2.new(pos.X - size * 2, pos.Y - size * 3)
                        data.Box.Size = Vector2.new(size * 4, size * 6)
                        data.Box.Visible = true
                  else
                        data.Tracer.Visible = false
                        data.Box.Visible = false
                  end
            end
      end
end)
-- Toggle GUI (Rayfield)
local Toggle = Tab:CreateToggle({
     Name = "ESP",
     CurrentValue = false,
     Flag = "ToggleESPTracerBox",
     Callback = function(Value)
        espEnabled = Value
        if Value then
           for _, player in pairs(Players:GetPlayers()) do
               createESP(player)
           end
            -- Tambah ESP jika ada player baru join
            Players.PlayerAdded:Connect(function(player)
                 player.CharacterAdded:Connect(function()
                      task.wait(1)
                      if espEnabled then
                          createESP(player)
                      end
                 end)
            end)
        else
            clearESP()
        end
     end,
})
local Section = Tab:CreateSection("AimBot")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local LocalPlayer = Players.LocalPlayer
local Camera = workspace.CurrentCamera
local   aimbotEnabled = false
local   targetBox = nil
local   distanceLabel = nil
local   connection = nil
-- Fungsi cari player terdekat
local function getClosestPlayer()
    local closest, distance = nil, math.huge
    for _, player in pairs(Players:GetPlayers()) do
        if player ~= LocalPlayer and player.Character and
player.Character:FindFirstChild("HumanoidRootPart") then
            local hrp = player.Character.HumanoidRootPart
            local screenPoint, onScreen = Camera:WorldToViewportPoint(hrp.Position)
            if onScreen then
                local dist = (Vector2.new(screenPoint.X, screenPoint.Y) -
Vector2.new(Camera.ViewportSize.X/2, Camera.ViewportSize.Y/2)).Magnitude
                if dist < distance then
                    closest = player
                    distance = dist
                end
            end
        end
    end
    return closest
end
-- Buat ESP Box
local function createESPBox(target)
    if targetBox then targetBox:Destroy() end
    local hrp = target.Character:FindFirstChild("HumanoidRootPart")
    if not hrp then return end
      local box = Instance.new("BoxHandleAdornment")
      box.Name = "TargetBox"
      box.Adornee = hrp
      box.Size = Vector3.new(3, 6, 3)
      box.AlwaysOnTop = true
      box.ZIndex = 10
      box.Color3 = Color3.fromRGB(255, 0, 0)
      box.Transparency = 0.5
      box.Parent = hrp
      targetBox = box
end
-- Buat Label Jarak
local function createDistanceLabel(target)
    if distanceLabel then distanceLabel:Destroy() end
    local head = target.Character:FindFirstChild("Head")
    if not head then return end
      local billboard = Instance.new("BillboardGui")
      billboard.Name = "DistanceLabel"
      billboard.Adornee = head
      billboard.Size = UDim2.new(0, 100, 0, 20)
      billboard.StudsOffset = Vector3.new(0, 2.5, 0)
      billboard.AlwaysOnTop = true
      billboard.Parent = head
      local textLabel = Instance.new("TextLabel", billboard)
      textLabel.Size = UDim2.new(1, 0, 1, 0)
      textLabel.BackgroundTransparency = 1
      textLabel.TextColor3 = Color3.new(1, 1, 1)
      textLabel.TextStrokeTransparency = 0
      textLabel.Font = Enum.Font.SourceSansBold
      textLabel.TextScaled = true
      textLabel.Text = "..."
      distanceLabel = billboard
      return textLabel
end
-- Toggle Aimbot
local Toggle = Tab:CreateToggle({
   Name = "AimbotLock",
   CurrentValue = false,
   Flag = "ToggleAimbot",
   Callback = function(v)
      aimbotEnabled = v
        if aimbotEnabled then
           connection = RunService.RenderStepped:Connect(function()
              local target = getClosestPlayer()
            if target and target.Character and
target.Character:FindFirstChild("HumanoidRootPart") then
                local hrp = target.Character.HumanoidRootPart
                Camera.CFrame = CFrame.new(Camera.CFrame.Position, hrp.Position)
                createESPBox(target)
                  local textLabel = createDistanceLabel(target)
                  if textLabel then
                      local distance =
math.floor((LocalPlayer.Character.HumanoidRootPart.Position -
hrp.Position).Magnitude)
                      textLabel.Text = "Jarak: " .. distance .. "m"
                  end
              end
          end)
      else
          if connection then
              connection:Disconnect()
              connection = nil
          end
          if targetBox then
              targetBox:Destroy()
              targetBox = nil
          end
          if distanceLabel then
              distanceLabel:Destroy()
              distanceLabel = nil
          end
      end
   end,
})
local Tab = Window:CreateTab("Notifying", nil)
local Section = Tab:CreateSection("Notify Brainrot Spawn")
local animalsFolder = workspace:WaitForChild("RenderedMovingAnimals")
-- Daftar target hewan (tanpa harga)
local targetAnimals = {
    "Frigo Camelo",
    "Orangutini Ananassini",
    "Rhino Toasterino",
    "Bombardiro Crocodilo",
    "Bombombini Gusini",
    "Cavallo Virtuoso"
}
-- Fungsi buat notifikasi
local function notify(text)
    game.StarterGui:SetCore("SendNotification", {
        Title = "Mythic Brainrot!",
        Text = text,
        Duration = 5
    })
end
-- Cek apakah nama target
local function isTarget(animalName)
      for _, name in ipairs(targetAnimals) do
          if animalName:match(name) then
              return true
          end
      end
      return false
end
-- Global toggle state
getgenv().notifyEnabled = false
-- Pantau hewan baru
animalsFolder.ChildAdded:Connect(function(animal)
     if getgenv().notifyEnabled and isTarget(animal.Name) then
         notify(animal.Name .. " Spawn!!")
     end
end)
-- Cek hewan yang sudah ada
local function checkExisting()
    for _, animal in ipairs(animalsFolder:GetChildren()) do
        if getgenv().notifyEnabled and isTarget(animal.Name) then
            notify(animal.Name .. " sudah ada")
        end
    end
end
-- UI Toggle (Rayfield)
local Toggle = Tab:CreateToggle({
    Name = "Notify Mythic Brainrot",
    CurrentValue = false,
    Flag = "NotifyMythicBrainrot",
    Callback = function(Value)
         getgenv().notifyEnabled = Value
         if Value then
             checkExisting()
         end
    end,
})
local animalsFolder = workspace:WaitForChild("RenderedMovingAnimals")
-- 🔷 Daftar God-tier hewan (tanpa harga)
local targetAnimals = {
    "Cocofanto Elefanto",
    "Girafa Celestre",
    "Gattatino Nyanino",
    "Matteo",
    "Tralalero Tralala",
    "Unclito Samito",
    "Odin Din Din Dun",
    "Trenozosturzzo Turbo 3000",
    "Lucky Block"
}
-- 🔷 Fungsi buat notifikasi
local function notify(text)
    game.StarterGui:SetCore("SendNotification", {
        Title = "God Brainrot!",
           Text = text,
           Duration = 5
      })
end
-- 🔷 Cek apakah nama target
local function isTarget(animalName)
    for _, name in ipairs(targetAnimals) do
        if animalName:match(name) then
            return true
        end
    end
    return false
end
-- 🔷 Global toggle state
getgenv().notifyEnabled = false
-- 🔷 Pantau hewan baru
animalsFolder.ChildAdded:Connect(function(animal)
     if getgenv().notifyEnabled and isTarget(animal.Name) then
         notify(animal.Name .. " Spawn!!")
     end
end)
-- 🔷 Cek hewan yang sudah ada
local function checkExisting()
    for _, animal in ipairs(animalsFolder:GetChildren()) do
        if getgenv().notifyEnabled and isTarget(animal.Name) then
            notify(animal.Name .. " sudah ada")
        end
    end
end
-- 🔷 UI Toggle (Rayfield)
local Toggle = Tab:CreateToggle({
    Name = "Notify God Brainrot",
    CurrentValue = false,
    Flag = "NotifyGodBrainrot",
    Callback = function(Value)
         getgenv().notifyEnabled = Value
         if Value then
             checkExisting()
         end
    end,
})
local animalsFolder = workspace:WaitForChild("RenderedMovingAnimals")
-- 🔷 Daftar Secret-tier hewan (tanpa harga)
local targetAnimals = {
    "La Vacca Saturno Saturnita",
    "Sammyni Spiderini",
    "Los Tralaleritos",
    "Las Tralaleritas",
    "Graipuss Medussi",
    "La Grande Combinassion",
    "Garama and Madundung"
}
-- 🔷 Fungsi buat notifikasi
local function notify(text)
    game.StarterGui:SetCore("SendNotification", {
        Title = "Secret Brainrot!",
        Text = text,
        Duration = 5
    })
end
-- 🔷 Cek apakah nama target
local function isTarget(animalName)
    for _, name in ipairs(targetAnimals) do
        if animalName:match(name) then
            return true
        end
    end
    return false
end
-- 🔷 Global toggle state
getgenv().notifyEnabledSecret = false
-- 🔷 Pantau hewan baru
animalsFolder.ChildAdded:Connect(function(animal)
     if getgenv().notifyEnabledSecret and isTarget(animal.Name) then
         notify(animal.Name .. " Spawn!!")
     end
end)
-- 🔷 Cek hewan yang sudah ada
local function checkExisting()
    for _, animal in ipairs(animalsFolder:GetChildren()) do
        if getgenv().notifyEnabledSecret and isTarget(animal.Name) then
            notify(animal.Name .. " sudah ada")
        end
    end
end
-- 🔷 UI Toggle (Rayfield)
local Toggle = Tab:CreateToggle({
    Name = "Notify Secret Brainrot",
    CurrentValue = false,
    Flag = "NotifySecretBrainrot",
    Callback = function(Value)
         getgenv().notifyEnabledSecret = Value
         if Value then
             checkExisting()
         end
    end,
})
local Tab = Window:CreateTab("Setting", nil)
local Section = Tab:CreateSection("Moded")
local Toggle = Tab:CreateToggle({
    Name = "Boost FPS",
    CurrentValue = false,
    Flag = "BoostFPSToggle",
     Callback = function(Value)
         local lighting = game:GetService("Lighting")
         if Value then
             -- BOOST ON
             lighting.GlobalShadows = false
             lighting.FogEnd = 100000
             lighting.Brightness = 0
               for _, v in ipairs(lighting:GetChildren()) do
                   if v:IsA("PostEffect") then
                       v.Enabled = false
                   end
               end
               for _, v in ipairs(workspace:GetDescendants()) do
                   if v:IsA("BasePart") or v:IsA("MeshPart") then
                       v.Material = Enum.Material.Plastic
                       v.Reflectance = 0
                   elseif v:IsA("Decal") or v:IsA("Texture") then
                       v:Destroy()
                   elseif v:IsA("ParticleEmitter") or v:IsA("Trail") then
                       v.Enabled = false
                   end
               end
               settings().Rendering.QualityLevel = Enum.QualityLevel.Level01
               print("✅ Boost FPS ON")
         else
               -- BOOST OFF (reset ringan)
               lighting.GlobalShadows = true
               lighting.FogEnd = 100
               lighting.Brightness = 2
               for _, v in ipairs(lighting:GetChildren()) do
                   if v:IsA("PostEffect") then
                       v.Enabled = true
                   end
               end
               settings().Rendering.QualityLevel = Enum.QualityLevel.Automatic
               print("❌ Boost FPS OFF")
         end
     end,
})
local Toggle = Tab:CreateToggle({
    Name = "No Fog",
    CurrentValue = false,
    Flag = "NoFogToggle",
    Callback = function(Value)
        local lighting = game:GetService("Lighting")
         if Value then
             -- Aktifkan No Fog
             lighting.FogStart = 100000
             lighting.FogEnd = 100000
             lighting.FogColor = Color3.fromRGB(255, 255, 255)
             print("Fog dimatikan ✅")
         else
               -- Aktifkan kembali fog default
               lighting.FogStart = 0
               lighting.FogEnd = 100
               lighting.FogColor = Color3.fromRGB(192, 192, 192)
               print("Fog dinyalakan kembali ❌")
         end
     end,
})
STab:CreateButton({
   Name = "Discord Invite",
   Callback = function()
      setclipboard("https://discord.gg/EJkYJMt337")
      Rayfield:Notify({
         Title = "Copied!",
         Content = "Discord link copied to clipboard.",
         Duration = 2,
         Image = 4483362458,
         Actions = {
            Ignore = {
               Name = "OK",
               Callback = function() end
            }
         }
      })
   end,
})