--!strict local RS = game:GetService("ReplicatedStorage") local Config = require(RS.Hunter.EffectsConfig) if not Config.Debug then return end local Players = game:GetService("Players") local UI = require(RS:WaitForChild("HunterUI") :: ModuleScript) local player = Players.LocalPlayer local match = RS:WaitForChild("ArenaRound"):WaitForChild("Procedural") local gui = Instance.new("ScreenGui") gui.Name = "ArenaZoneDebug" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") local label = UI.label(gui, "Metrics", "", UDim2.new(.5, -180, 0, 10), UDim2.fromOffset(360, 25), 15, UI.Gold) local function part(name: string): Part local p = Instance.new("Part") p.Name = name p.Transparency = 1 p.Anchored, p.CanCollide, p.CanTouch, p.CanQuery = true, false, false, false p.Parent = workspace return p end local line, bounds = part("DebugSight"), part("DebugRadius") bounds.Shape = Enum.PartType.Cylinder local running = true task.spawn(function() while running do local siege = match:FindFirstChild("CitadelMatchState") local position = if siege then siege:GetAttribute("Point") else match:GetAttribute("HotPointPosition") local root = player.Character and player.Character.PrimaryPart label.Text = string.format("Ray %d / %d · Events/s %d · %s", match:GetAttribute("DebugRays") or 0, match:GetAttribute("DebugFighters") or 0, match:GetAttribute("DebugEvents") or 0, player:GetAttribute("CitadelZone") or "—") if root and typeof(position) == "Vector3" then local r = if siege then siege:GetAttribute("Radius") or 11 else 18 bounds.Size = Vector3.new(.12,r*2,r*2) bounds.CFrame = CFrame.new(position + Vector3.yAxis * .1) * CFrame.Angles(0,0,math.pi/2) bounds.Color, bounds.Transparency = UI.Gold, .82 local target = position + Vector3.yAxis * 2 line.CFrame = CFrame.lookAt((root.Position + target) / 2,target) line.Size = Vector3.new(.07,.07,(root.Position-target).Magnitude) line.Color = if player:GetAttribute("CitadelZone") == "Blocked" then Config.Danger else UI.Mint line.Transparency = .3 else bounds.Transparency, line.Transparency = 1, 1 end task.wait(.2) end end) script.Destroying:Once(function() running = false line:Destroy() bounds:Destroy() gui:Destroy() end)