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

How can I make certain parts visible to only one team?

Hi there. My plan is for the construction team to perform certain tasks in my game. To be realistic, the construction sites should be barricaded. I thought that this could be implemented in such a way that these barriers are transparent and only visible to this one team. As soon as a member of the team clicks on them, they should no longer be transparent and made visible to all players. Since after a long search in the forum and on the web I didn't come across any implementation ideas, I wanted to ask here how I could implement this.

Thank you for reading my Question Have a great day ^^

1 answer

✓ Accepted answer

Outside of a player's character and a few physics-simulated parts, anything a client does to the workspace is not replicated to other clients. You can use this to your advantage:

  • The server can create the parts and tag them using CollectionService based on the team that should see them
  • On the client, modify the properties of these team-based-tags based on which team the LocalPlayer is in

1 comment

0

Thank you so much for your help ^^

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