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

How can a ClickDetector be utilized to clone a GUI into the player's PlayerGui?

Asked by
Chili1924 150
10 years ago

Please note: FilteringEnabled is set to true in my game. I am trying to make it so that when a player clicks on a button in the game, it clones a GUI named "InterviewPanel" from storage, and places the clone in the player who clicked the button's PlayerGui.

There are a few things that I am a bit stumped on though:

  1. Is this kind of interaction considered from the server to the client?

  2. Remote Objects are indeed needed in this case in order for it all to work properly with FilteringEnabled set to true, right?

  3. Where is the optimal place to store the "InterviewPanel" GUI prior to being cloned?

1 answer

Log in to vote
2
Answered by
2eggnog 981 Moderation Voter
10 years ago
  1. Yes, it is considered server to client. The server will not register the button click, nor will it be able to access the player's PlayerGui.
  2. Yes, remote events or functions are necessary.
  3. If you want the client to copy it, put it in the ReplicatedStorage service. Clients have access to everything in there, but any changes the client makes will not be replicated if filtering is enabled.
Ad

Answer this question