Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why would you use a "OccludeAll"?

Asked by
woodengop 1134 Moderation Voter
9 years ago

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

Log in to vote
2
Answered by
yumtaste 476 Moderation Voter
9 years ago

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!

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." EzraNehemiah_TF2 3552 — 9y
1
Is the OccludeAll still functional? woodengop 1134 — 9y
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. yumtaste 476 — 9y
1
@Zord I always understand yumtaste! thx yumtaste! woodengop 1134 — 9y
View all comments (3 more)
0
Exactly what yumtaste said. DigitalVeer 1473 — 9y
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. DevJackB 55 — 9y
0
btw, yummy can you post an Example script pls. woodengop 1134 — 9y
Ad

Answer this question