How would i make my outline not visible through walls?

image
i dont want players to be able to see through the wall here is my script:
local character = script.Parent

script.CharacterHighlight:Clone().Parent = character

4 Likes

Change the DepthMode of the Highlight to “Occluded”

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.