
752 Views
3.5k Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
67
local player = game.Players.LocalPlayer
local myUsername = player.Name
-- [[ 核心配置参数 ]]
local R15_PER_PART = false
local R6_PER_PART = true
-- 获取血量颜色逻辑 (原版一字不动)
local function getHealthColor(humanoid)
local healthPercent = math.clamp(humanoid.Health / humanoid.MaxHealth, 0, 1)
if humanoid.MaxHealth >= 9e9 or healthPercent >= 1 then
return Color3.fromRGB(255, 255, 255)
elseif healthPercent > 0.5 then
local t = (healthPercent - 0.5) / 0.5
return Color3.fromRGB(255, 255, 0):Lerp(Color3.fromRGB(27, 252, 107), t)
elseif healthPercent > 0 then
local t = healthPercent / 0.5
return Color3.fromRGB(255, 0, 0):Lerp(Color3.fromRGB(255, 255, 0), t)
else
return Color3.fromRGB(255, 0, 0)
end
end
-- 1. 管理系统与缓存
local managedParts = {}
local checkedCache = {}
local function applyHighlight(target, model, isTool)
if managedParts[target] then return end
local data = {
highlight = Instance.new("Highlight"),
deathBurstHandled = false,
sourceModel = model,
feedbackTimer = isTool and 1.0 or 0
}
local h = data.highlight
h.Name = "ManagedHighlight"
h.DepthMode = Enum.HighlightDepthMode.Occluded
h.FillTransparency = 0
h.OutlineTransparency = 0
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!








