You can change the transparency of the highlights that you do not want to be shown like:
local Highlights = 0
local HighlightsMax = 10
for i,v in workspace:GetDescendants() do
if v:IsA("Highlight") do
if not Highlights >= HighlightsMax then
Highlights += 1
else
v.OutlineTransparency = 1
-- Sorry I forgot the other property 🤧
end
end
end
You can change the code as much as you want. I hope this helped you!
All Highlights inside the storages also count for the limit, it isn’t only the workspace.
Also changing the transparency or even enable / disable them don’t fix anything, only the first 31 Highlights are working, and all other are ignored no matter which change you do on the working one, unless you’re destroying them.
It would be cool if Roblox add a Distance property to Highlights, or something to make it show the 31 closest Highlights from camera or character instead of the first 31 Highlights objects found in total… also only count them inside workspace and not inside storages.