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

How do you make a part only visible to a certain rank in a group?

Asked by 7 years ago

I own an airline and I want the passengers thinking that they are flying at cruise. So, I want to make the cruise invisible to passengers, but visible to staff. How do I do that?

1 answer

Log in to vote
1
Answered by 7 years ago
Edited 7 years ago

You can use local parts to make structures visible only to specific people. There are two ways you can approach this. The simplest way is to turn on filtering enabled and create the parts in a local script. Every player with the local script in them will see the parts. This, however, means that all your other scripts will have to work with FilteringEnabled. Another way is to create a LocalBin in the character which stores the local parts. That can be read here: http://wiki.roblox.com/index.php?title=Local_parts

Once you know how local parts work you can simply use the :GetRankInGroup() function to determine whether the parts are created locally for the player or not.

Ad

Answer this question