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

local Window = Rayfield:CreateWindow({
   Name = "The Mimic 👻",
   Icon = 0, -- Icon in Topbar. Can use Lucide Icons (string) or Roblox Image (number). 0 to use no icon (default).
   LoadingTitle = "kawaii hub",
   LoadingSubtitle = "by Sirius",
   ShowText = "kawaii", -- for mobile users to unhide Rayfield, change if you'd like
   Theme = "Bloom", -- Check https://[Log in to view URL]

   ToggleUIKeybind = "V", -- The keybind to toggle the UI visibility (string like "K" or Enum.KeyCode)

   DisableRayfieldPrompts = false,
   DisableBuildWarnings = false, -- Prevents Rayfield from emitting warnings when the script has a version mismatch with the interface.

   -- ScriptID = "sid_xxxxxxxxxxxx", -- Your Script ID from developer.sirius.menu — enables analytics, managed keys, and script hosting

   ConfigurationSaving = {
      Enabled = true,
      FolderName = nil, -- Create a custom folder for your hub/game
      FileName = "Big Hub"
   },

   Discord = {
      Enabled = false, -- Prompt the user to join your Discord server if their executor supports it
      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 = true, -- Set this to true to use our key system
   KeySettings = {
      Title = "The Mimic 😈",
      Subtitle = "Key System",
      Note = "Key is akari (lowercase)", -- Use this to tell the user how to get a key
      FileName = "akarifrommimic", -- 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 = {"akari"} -- List of keys that the system will accept, can be RAW file links (pastebin, github, etc.) or simple strings ("hello", "key22")
   }
})

local Tab = Window:CreateTab("B3 CH1", 4483362458) -- Title, Image

local Section = Tab:CreateSection("Show Egao Spawn Location")

local EgaoToggleState = false -- 1. Use a local variable to track state

local Toggle = Tab:CreateToggle({
   Name = "Egao Spawnpoints",
   CurrentValue = false,
   Flag = "Toggle1",
   Callback = function(Value)
      EgaoToggleState = Value -- 2. Update the state tracker
      local Workspace = game:GetService("Workspace")
      local RunService = game:GetService("RunService")
      local TargetFolder = Workspace:FindFirstChild("EgaoSpawns")
      local highlightTag = "EgaoHighlight"

      if Value then
         -- Turn on: Add Highlights
         if TargetFolder then
            for _, child in pairs(TargetFolder:GetChildren()) do
               if child:IsA("BasePart") and not child:FindFirstChild(highlightTag) then
                  local highlight = Instance.new("Highlight")
                  highlight.Name = highlightTag
                  highlight.Parent = child
                  highlight.FillTransparency = 0.5
                  highlight.OutlineTransparency = 0
               end
            end
            
            -- Simple Rainbow Loop
            local connection
            connection = RunService.RenderStepped:Connect(function()
               if not EgaoToggleState then -- 3. Check the state tracker
                  connection:Disconnect()
                  return
               end
               
               local hue = tick() % 5 / 5
               local color = Color3.fromHSV(hue, 1, 1)
               
               if TargetFolder then
                   for _, child in pairs(TargetFolder:GetChildren()) do
                      local h = child:FindFirstChild(highlightTag)
                      if h then h.FillColor = color end
                   end
               end
            end)
         end
      else
         -- Turn off: Remove existing Highlights
         if TargetFolder then
            for _, child in pairs(TargetFolder:GetChildren()) do
               local existing = child:FindFirstChild(highlightTag)
               if existing then existing:Destroy() end
            end
         end
      end
   end,
})

local Button = Tab:CreateButton({
   Name = "Teleport near Egao Spawnpoint!",
   Callback = function()
      local Players = game:GetService("Players")
      local Workspace = game:GetService("Workspace")
      
      local player = Players.LocalPlayer
      local character = player.Character
      local rootPart = character and character:FindFirstChild("HumanoidRootPart")
      local folder = Workspace:FindFirstChild("EgaoSpawns")
      
      if rootPart and folder then
         local spawns = folder:GetChildren()
         -- Get a random spawn point from the folder
         local randomSpawn = spawns[math.random(1, #spawns)]
         
         if randomSpawn and randomSpawn:IsA("BasePart") then
            -- Create an offset (e.g., 5 studs in front of the spawn point)
            local offset = Vector3.new(0, 3, 5) 
            local newPosition = randomSpawn.CFrame:PointToWorldSpace(offset)
            
            -- Apply the position while keeping the current rotation (or looking at the part)
            rootPart.CFrame = CFrame.new(newPosition, randomSpawn.Position)
         end
      end
   end,
})

local Section = Tab:CreateSection("Section 1 - Shooting the Gatas with Mika and Hideo")

local Toggle = Tab:CreateToggle({
   Name = "Mark casualties",
   CurrentValue = false,
   Flag = "ToggleCasualties",
   Callback = function(Value)
      local RunService = game:GetService("RunService")
      local Workspace = game:GetService("Workspace")
      
      local sectionFolder = Workspace:FindFirstChild("Section1")
      local targetFolder = sectionFolder and sectionFolder:FindFirstChild("DeadCivillians")
      
      local highlightTag = "CasualtyHighlight"

      if Value then
         if targetFolder then
            -- Find all models named "Civilian" and highlight their parts
            for _, civilianModel in pairs(targetFolder:GetChildren()) do
               if civilianModel:IsA("Model") and civilianModel.Name == "Civilian" then
                  for _, part in pairs(civilianModel:GetDescendants()) do
                     if part:IsA("BasePart") and not part:FindFirstChild(highlightTag) then
                        local highlight = Instance.new("Highlight")
                        highlight.Name = highlightTag
                        highlight.Parent = part
                        highlight.FillTransparency = 0.5
                        highlight.OutlineTransparency = 0
                     end
                  end
               end
            end
            
            -- Rainbow Loop
            local connection
            connection = RunService.RenderStepped:Connect(function()
               if not Toggle.CurrentValue then
                  connection:Disconnect()
                  return
               end
               
               local hue = tick() % 5 / 5
               local color = Color3.fromHSV(hue, 1, 1)
               
               for _, civilianModel in pairs(targetFolder:GetChildren()) do
                  if civilianModel.Name == "Civilian" then
                     for _, part in pairs(civilianModel:GetDescendants()) do
                        local h = part:FindFirstChild(highlightTag)
                        if h then h.FillColor = color end
                     end
                  end
               end
            end)
         end
      else
         -- Cleanup: Remove all highlights from models named "Civilian"
         if targetFolder then
            for _, civilianModel in pairs(targetFolder:GetChildren()) do
               if civilianModel.Name == "Civilian" then
                  for _, part in pairs(civilianModel:GetDescendants()) do
                     local existing = part:FindFirstChild(highlightTag)
                     if existing then existing:Destroy() end
                  end
               end
            end
         end
      end
   end,
})

Embed on website

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