-
Автор темы
- #1
Просто вх
SS
script
SS
![](/proxy.php?image=https%3A%2F%2Fexternal-content.duckduckgo.com%2Fiu%2F%3Fu%3Dhttps%253A%252F%252Fi.imgur.com%252FKPJ2clx.png&hash=e9f79a58bd13edb7806ce11092150ca0)
script
Код:
-- Settings --
local settings = {
fillcolor = Color3.fromRGB(255, 255, 255);
filltransparency = .75;
outlinecolor = Color3.fromRGB(255, 255, 255);
outlinetransparency = 0;
}
-- Script --
local plr = game:service'Players'.LocalPlayer
local highlights = Instance.new('Folder', game:service'CoreGui')
local function addhighlight(object)
local highlight = Instance.new('Highlight', highlights)
highlight.Adornee = object
highlight.FillColor = settings.fillcolor
highlight.FillTransparency = settings.filltransparency
highlight.OutlineColor = settings.outlinecolor
highlight.OutlineTransparency = settings.outlinetransparency
highlight.Adornee.Changed:Connect(function()
if not highlight.Adornee or not highlight.Adornee.Parent then
highlight:Destroy()
end
end)
return highlight
end
local function addtoplayer(object)
if object:IsA'Model' and object.Name == 'Player' and object.Parent.Name ~= tostring(plr.TeamColor) then
addhighlight(object)
end
end
for i,v in pairs(workspace.Players:GetDescendants()) do
addtoplayer(v)
end
workspace.Players.DescendantAdded:Connect(function(v)
addtoplayer(v)
end)