local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local Window = Rayfield:CreateWindow({ Name = "NPC Admin Toggle GUI", LoadingTitle = "Loading...", LoadingSubtitle = "by potato", ConfigurationSaving = { Enabled = false }, KeySystem = false }) local MainTab = Window:CreateTab("Main", 4483362458) local espEnabled = false local sitToggle = false local killToggle = false local espObjects = {} local player = game.Players.LocalPlayer local mouse = player:GetMouse() local function applyESP(character) if not character:FindFirstChild("ESPHighlight") then local highlight = Instance.new("Highlight") highlight.Name = "ESPHighlight" highlight.FillTransparency = 1 highlight.OutlineColor = Color3.fromRGB(255, 0, 0) highlight.OutlineTransparency = 0 highlight.Adornee = character highlight.Parent = character table.insert(espObjects, highlight) end end local function removeESP() for _, obj in pairs(espObjects) do if obj then obj:Destroy() end end espObjects = {} for _, v in pairs(workspace:GetDescendants()) do if v:IsA("Highlight") and v.Name == "ESPHighlight" then v:Destroy() end end end local function updateESP() if not espEnabled then removeESP() return end for _, v in pairs(workspace:GetDescendants()) do if v:IsA("Humanoid") and v.Parent then local char = v.Parent if char ~= player.Character and char:IsA("Model") then applyESP(char) end end end end task.spawn(function() while task.wait(1) do if espEnabled then updateESP() end end end) mouse.Button1Down:Connect(function() if not sitToggle and not killToggle then return end local target = mouse.Target if target and target.Parent then local character = target.Parent local humanoid = character:FindFirstChildOfClass("Humanoid") if not humanoid and character.Parent then character = character.Parent humanoid = character:FindFirstChildOfClass("Humanoid") end if humanoid and character ~= player.Character then if sitToggle then humanoid.Sit = true Rayfield:Notify({Title = "Sit Active", Content = "Sat down: " .. character.Name, Duration = 1.5}) elseif killToggle then humanoid.Health = 0 Rayfield:Notify({Title = "Kill Active", Content = "Killed: " .. character.Name, Duration = 1.5}) end end end end) local EspElement = MainTab:CreateToggle({ Name = "NPC Hitbox ESP (Red)", CurrentValue = false, Flag = "NpcEspToggle", Callback = function(Value) espEnabled = Value if espEnabled then updateESP() else removeESP() end end, }) local SitElement local KillElement SitElement = MainTab:CreateToggle({ Name = "Auto Sit Mode (Continuous)", CurrentValue = false, Flag = "NpcSitToggle", Callback = function(Value) sitToggle = Value if sitToggle then killToggle = false KillElement:Set(false) Rayfield:Notify({Title = "Mode On", Content = "Continuous SIT mode enabled.", Duration = 2}) end end, }) KillElement = MainTab:CreateToggle({ Name = "Auto Kill Mode (Continuous)", CurrentValue = false, Flag = "NpcKillToggle", Callback = function(Value) killToggle = Value if killToggle then sitToggle = false SitElement:Set(false) Rayfield:Notify({Title = "Mode On", Content = "Continuous KILL mode enabled.", Duration = 2}) end end, })