In ROBLOX Wiki it Doesn't mention Occlusion or OccludeAll. How would you use it in scripting?
Please respect that I am Beginner in need of Knowledge
Occlusion is basically something that gives you control over who can see a player's name tag and health above their head. For example, if you're making a war game, you might use EnemyOcclusion
, so that only people on the player's team can see their data. If you wanted to use occlusion to prevent everyone from seeing other people's name tag and health, you would use OccludeAll
.
Occlusion is a property of Humanoid. So, to edit occlusion, you would do Humanoid.Occlusion = "OccludeAll"
. Note that since all occlusion values are Enums, you could also do Humanoid.Occlusion = Enum.Occlusion.OccludeAll
. I don't think an example script is necessary here, since you should know how to edit properties of objects. But if you need me to put one in, I can.
Please upvote and accept!