Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why would you use a "OccludeAll"?

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

1 answer

✓ Accepted answer

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!

7 comments

0

Upvoting is an option, if they don't understand they don't have to accept it. You should say, "If it helps you, please accept and possibly upvote."

1

Is the OccludeAll still functional?

1

Yes, Occlusion still works. LordDragonZord, note how I said "please." At least I don't have an alt account that I use to give myself upvotes.

1

@Zord I always understand yumtaste! thx yumtaste!

0

Exactly what yumtaste said.

0

This doesn't work. Occlusion now only works behind walls. To hide a player's name, you need to set their Head's Transparency to 1 or set NameDisplayDistance to 0 in StarterPlayer.

0

btw, yummy can you post an Example script pls.

This discussion is preserved as it was. New answers, comments, and votes are closed.