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

local Window = Rayfield:CreateWindow({
   Name = "🧠 Brainrot Spawner",
   LoadingTitle = "Loading...",
   ConfigurationSaving = { Enabled = false }
})

local Tab = Window:CreateTab("Main")
local player = game.Players.LocalPlayer

-- =========================
-- 🔔 안전 알림
-- =========================
local function safeNotify(title, text)
   task.spawn(function()
      for i = 1, 5 do
         local ok = pcall(function()
            game.StarterGui:SetCore("SendNotification", {
               Title = title,
               Text = text,
               Duration = 2
            })
         end)
         if ok then return end
         task.wait(0.3)
      end
   end)
end

-- =========================
-- 🧠 브레인롯
-- =========================
local BrainrotList = {
   "Nuclearo Dinossauro","La Grande Combinasion","Tang Tang Kelentang",
   "Ketupat Kepat","Tictac Sahur","Ketchuru and Musturu",
   "Lavadorito Spinito","Garama and Madundung","Burguro and Fryuro",
   "Capitano Moby","Cerberus","Dragon Cannelloni",
   "Skibidi Toilet","Meowl","Strawberry Elephant"
}

local SelectedBrainrot = BrainrotList[1]

Tab:CreateDropdown({
   Name = "Brainrot 선택",
   Options = BrainrotList,
   CurrentOption = BrainrotList[1],
   Callback = function(opt)
      SelectedBrainrot = opt or BrainrotList[1]
   end
})

-- =========================
-- 💎 변이
-- =========================
local SelectedMutations = {}

Tab:CreateDropdown({
   Name = "변이 선택",
   Options = {"Gold","Diamond","Rainbow"},
   CurrentOption = {},
   MultipleOptions = true,
   Callback = function(options)
      local unique = {}
      SelectedMutations = {}

      for _, v in pairs(options or {}) do
         if not unique[v] then
            unique[v] = true
            table.insert(SelectedMutations, tostring(v))
         end
      end
   end
})

-- =========================
-- 🧠 UI
-- =========================
local gui = Instance.new("ScreenGui")
gui.Name = "BrainrotUI"
gui.ResetOnSpawn = false
gui.Parent = player:WaitForChild("PlayerGui")

local frame = Instance.new("Frame", gui)
frame.Size = UDim2.new(0, 400, 0, 250)
frame.Position = UDim2.new(0.5, -200, 0.5, -125)
frame.BackgroundColor3 = Color3.fromRGB(0,0,0)
frame.Visible = false

local logLabel = Instance.new("TextLabel", frame)
logLabel.Size = UDim2.new(1, -20, 1, -60)
logLabel.Position = UDim2.new(0, 10, 0, 10)
logLabel.BackgroundTransparency = 1
logLabel.TextColor3 = Color3.fromRGB(0,255,0)
logLabel.TextXAlignment = Enum.TextXAlignment.Left
logLabel.TextYAlignment = Enum.TextYAlignment.Top
logLabel.TextWrapped = true
logLabel.Text = ""

local barBG = Instance.new("Frame", frame)
barBG.Size = UDim2.new(1, -20, 0, 20)
barBG.Position = UDim2.new(0, 10, 1, -30)
barBG.BackgroundColor3 = Color3.fromRGB(50,50,50)

local bar = Instance.new("Frame", barBG)
bar.Size = UDim2.new(0, 0, 1, 0)
bar.BackgroundColor3 = Color3.fromRGB(0,255,0)

-- =========================
-- 🔒 실행 락
-- =========================
local running = false

-- =========================
-- 🧠 버튼
-- =========================
Tab:CreateButton({
   Name = "🧠 Spawn Brainrot",
   Callback = function()

      local success, err = pcall(function()

         if running then return end
         running = true

         frame.Visible = true
         logLabel.Text = ""
         bar.Size = UDim2.new(0,0,1,0)

         local function addLog(t)
            pcall(function()
               logLabel.Text = logLabel.Text .. tostring(t) .. "\n"
            end)
         end

         -- ⭐ 안전 displayName 생성
         local displayName = tostring(SelectedBrainrot or "Unknown")

         local mutationText = ""
         if type(SelectedMutations) == "table" and #SelectedMutations > 0 then
            local ok, result = pcall(function()
               return table.concat(SelectedMutations, ", ")
            end)
            if ok and result then
               mutationText = " (" .. result .. ")"
            end
         end

         displayName = displayName .. mutationText

         -- 🔥 로그
         addLog(">>> Injecting brainrot.dll")
         task.wait(0.3)

         addLog(">>> Connecting...")
         task.wait(0.3)

         addLog(">>> Access granted")
         task.wait(0.3)

         addLog(">>> Target: " .. displayName)
         task.wait(0.3)

         -- 🔥 로딩바
         for i = 1, 100 do
            bar.Size = UDim2.new(i/100,0,1,0)

            if i % 25 == 0 then
               addLog(">>> " .. i .. "%")
            end

            task.wait(0.01)
         end

         addLog(">>> Complete")
         addLog(">>> " .. displayName .. " 생성됨")

         safeNotify("Spawn", displayName .. " 생성됨")

         task.wait(2)
         frame.Visible = false
         running = false
      end)

      if not success then
         warn("Callback Error:", err)
         running = false
      end
   end
})

Embed on website

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