
Key RequiredUniversal

local liveFolder = workspace:WaitForChild("Live")
local FLOAT_HEIGHT = 3
local function spawnthing(character)
if not character:IsA("Model") then return end
local humanoid = character:FindFirstChildOfClass("Humanoid")
local head = character:FindFirstChild("Head")
if not humanoid or not head then return end
if character:FindFirstChild("StunIndicator") then return end
local part = Instance.new("Part")
part.Name = "StunIndicator"
part.Size = Vector3.new(0.6,0.6,0.6)
part.Anchored = true
part.CanCollide = false
part.Material = Enum.Material.Neon
part.Shape = Enum.PartType.Block
part.Color = Color3.fromRGB(0, 255, 0)
part.Parent = character
part.Orientation = Vector3.new(0, 0, 90)
local function update()
if not head.Parent then return end
part.Position = head.Position + Vector3.new(0, head.Size.Y/2 + FLOAT_HEIGHT, 0)
local stunsFolder = character:FindFirstChild("Stuns")
if stunsFolder and #stunsFolder:GetChildren() > 0 then
part.Color = Color3.fromRGB(255, 0, 0)
else
part.Color = Color3.fromRGB(0, 255, 0)
end
end
game:GetService("RunService").RenderStepped:Connect(update)
local stunsFolder = character:FindFirstChild("Stuns")
if stunsFolder then
stunsFolder.ChildAdded:Connect(update)
stunsFolder.ChildRemoved:Connect(update)
end
end
for _, character in pairs(liveFolder:GetChildren()) do
spawnthing(character)
end
liveFolder.ChildAdded:Connect(function(character)
task.wait(0.5)
spawnthing(character)
end)No comments yet for this script.



