I’m trying to make a highlight system similar to BIG Paintball 2, where enemies are highlighted in red, and your teammates are highlighted in green. How would I go about detecting characters that are visible on the screen and putting highlights only in those objects?
Do Roblox highlights already do this? If not, how could I make a custom highlight?
The glow effect around the player also seems like an oval shape. Is that included with the highlight? How would I go about doing that?
If the highlight limit is a problem you can edit your script so a highlight is only applied to players closest to you, alternatively you could use rays to check which players are visible (or inside of your fov if the highlights are visible through walls) and apply the highlight to these players. The second option would require more resources though.
Even if the highlight is occluded or out of the view, it still counts as 1 in the 31 slot limit and any additional highlights will be ignored. I think that is the reason why Big Paintball 2 and Arsenal (which I think uses player highlights too) both have server sizes below 31.