-- Panic Meter Anomaly (#0025) -- LocalScript - Instant + Visual Match local Players = game:GetService("Players") local TweenService = game:GetService("TweenService") local RunService = game:GetService("RunService") local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local rootPart = character:WaitForChild("HumanoidRootPart") -- ====================== -- CREATE THE GUI (matches your image) -- ====================== local screenGui = Instance.new("ScreenGui") screenGui.Name = "PanicMeterGui" screenGui.ResetOnSpawn = false screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling screenGui.Parent = player:WaitForChild("PlayerGui") -- Main container (sits above the normal health bar) local container = Instance.new("Frame") container.Name = "Container" container.Size = UDim2.new(0, 320, 0, 58) container.Position = UDim2.new(0.5, -160, 1, -130) container.BackgroundTransparency = 1 container.Parent = screenGui -- ========== PANIC BAR ========== local panicBg = Instance.new("Frame") panicBg.Name = "PanicBackground" panicBg.Size = UDim2.new(1, 0, 0, 24) panicBg.Position = UDim2.new(0, 0, 0, 0) panicBg.BackgroundColor3 = Color3.fromRGB(35, 35, 40) panicBg.BorderSizePixel = 0 panicBg.Parent = container local panicCorner = Instance.new("UICorner") panicCorner.CornerRadius = UDim.new(0, 5) panicCorner.Parent = panicBg local panicStroke = Instance.new("UIStroke") panicStroke.Color = Color3.fromRGB(20, 20, 25) panicStroke.Thickness = 1.5 panicStroke.Parent = panicBg local panicFill = Instance.new("Frame") panicFill.Name = "Fill" panicFill.Size = UDim2.new(0, 0, 1, 0) -- Starts empty panicFill.BackgroundColor3 = Color3.fromRGB(220, 35, 35) panicFill.BorderSizePixel = 0 panicFill.Parent = panicBg local panicFillCorner = Instance.new("UICorner") panicFillCorner.CornerRadius = UDim.new(0, 5) panicFillCorner.Parent = panicFill -- Slight gradient effect to match the image local panicGradient = Instance.new("UIGradient") panicGradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 70, 70)), ColorSequenceKeypoint.new(0.5, Color3.fromRGB(220, 30, 30)), ColorSequenceKeypoint.new(1, Color3.fromRGB(180, 20, 20)) }) panicGradient.Rotation = 90 panicGradient.Parent = panicFill local panicLabel = Instance.new("TextLabel") panicLabel.Size = UDim2.new(1, -12, 1, 0) panicLabel.Position = UDim2.new(0, 6, 0, 0) panicLabel.BackgroundTransparency = 1 panicLabel.Text = "PANIC" panicLabel.TextColor3 = Color3.fromRGB(255, 255, 255) panicLabel.Font = Enum.Font.GothamBold panicLabel.TextSize = 17 panicLabel.TextXAlignment = Enum.TextXAlignment.Right panicLabel.TextStrokeTransparency = 0.6 panicLabel.TextStrokeColor3 = Color3.fromRGB(0, 0, 0) panicLabel.Parent = panicBg -- ========== HEALTH BAR (visual match style) ========== local healthBg = Instance.new("Frame") healthBg.Name = "HealthBackground" healthBg.Size = UDim2.new(1, 0, 0, 24) healthBg.Position = UDim2.new(0, 0, 0, 30) healthBg.BackgroundColor3 = Color3.fromRGB(35, 35, 40) healthBg.BorderSizePixel = 0 healthBg.Parent = container local healthCorner = Instance.new("UICorner") healthCorner.CornerRadius = UDim.new(0, 5) healthCorner.Parent = healthBg local healthStroke = Instance.new("UIStroke") healthStroke.Color = Color3.fromRGB(20, 20, 25) healthStroke.Thickness = 1.5 healthStroke.Parent = healthBg local healthFill = Instance.new("Frame") healthFill.Name = "Fill" healthFill.Size = UDim2.new(1, 0, 1, 0) healthFill.BackgroundColor3 = Color3.fromRGB(50, 200, 50) healthFill.BorderSizePixel = 0 healthFill.Parent = healthBg local healthFillCorner = Instance.new("UICorner") healthFillCorner.CornerRadius = UDim.new(0, 5) healthFillCorner.Parent = healthFill local healthGradient = Instance.new("UIGradient") healthGradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(90, 230, 90)), ColorSequenceKeypoint.new(0.5, Color3.fromRGB(40, 190, 40)), ColorSequenceKeypoint.new(1, Color3.fromRGB(20, 150, 20)) }) healthGradient.Rotation = 90 healthGradient.Parent = healthFill local healthLabel = Instance.new("TextLabel") healthLabel.Size = UDim2.new(1, -12, 1, 0) healthLabel.Position = UDim2.new(0, 6, 0, 0) healthLabel.BackgroundTransparency = 1 healthLabel.Text = "HEALTH" healthLabel.TextColor3 = Color3.fromRGB(255, 255, 255) healthLabel.Font = Enum.Font.GothamBold healthLabel.TextSize = 17 healthLabel.TextXAlignment = Enum.TextXAlignment.Right healthLabel.TextStrokeTransparency = 0.6 healthLabel.TextStrokeColor3 = Color3.fromRGB(0, 0, 0) healthLabel.Parent = healthBg -- Keep the custom health bar in sync with actual health humanoid.HealthChanged:Connect(function(newHealth) local percent = math.clamp(newHealth / humanoid.MaxHealth, 0, 1) healthFill.Size = UDim2.new(percent, 0, 1, 0) end) -- ====================== -- PANIC LOGIC -- ====================== local panicAmount = 0 local maxPanic = 100 local isFull = false local tickRate = 0.05 local deathGears = { "Apple Pie", "Ronin Katana", "Atmoblaster777", "Banana Peel", "Bloxy Cola", "Linked Sword", "Rocket Launcher" } local function isNearDamagingPart() local parts = workspace:GetPartBoundsInRadius(rootPart.Position, 11) for _, part in ipairs(parts) do if part:IsA("BasePart") then local name = part.Name:lower() if name:find("kill") or name:find("spike") or name:find("lava") or name:find("damage") or name:find("hazard") or name:find("death") or part:FindFirstChild("TouchInterest") then return true end end end return false end local function fillPanic() if isFull then return end if isNearDamagingPart() then panicAmount = math.min(panicAmount + 2.2, maxPanic) panicFill.Size = UDim2.new(panicAmount / maxPanic, 0, 1, 0) -- Quick pulse when filling panicFill.BackgroundColor3 = Color3.fromRGB(255, 80, 80) task.delay(0.07, function() if panicFill then panicFill.BackgroundColor3 = Color3.fromRGB(220, 35, 35) end end) end if panicAmount >= maxPanic and not isFull then isFull = true triggerDeath() end end function triggerDeath() rootPart.Anchored = true humanoid.WalkSpeed = 0 humanoid.JumpPower = 0 -- Flash the bar local flash = TweenService:Create(panicFill, TweenInfo.new(0.12, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 8, true), { BackgroundColor3 = Color3.fromRGB(255, 160, 160) }) flash:Play() local chosenGear = deathGears[math.random(1, #deathGears)] local tool = Instance.new("Tool") tool.Name = chosenGear tool.RequiresHandle = false tool.Parent = player.Backpack humanoid:EquipTool(tool) task.delay(0.35, function() if chosenGear == "Apple Pie" then for i = 1, 5 do humanoid:TakeDamage(20) task.wait(0.22) end elseif chosenGear == "Ronin Katana" then humanoid.Health = 0 elseif chosenGear == "Atmoblaster777" then local highlight = Instance.new("Highlight") highlight.FillColor = Color3.fromRGB(0, 140, 255) highlight.OutlineColor = Color3.fromRGB(80, 200, 255) highlight.Parent = character task.wait(0.55) humanoid.Health = 0 elseif chosenGear == "Banana Peel" then rootPart.Velocity = rootPart.CFrame.LookVector * 38 + Vector3.new(0, 18, 0) task.wait(0.7) humanoid.Health = 0 elseif chosenGear == "Bloxy Cola" then task.wait(0.85) humanoid.Health = 0 else humanoid:TakeDamage(999) end tool:Destroy() end) end -- Start filling loop task.spawn(function() while not isFull and humanoid.Health > 0 do fillPanic() task.wait(tickRate) end end) humanoid.Died:Connect(function() screenGui:Destroy() end) print("[Panic Meter] Anomaly active.")