My surface GUI is serversided and I need it to replicate to other players don’t ask me why
However I only want certain players to use it so I’d have to check the players every time a UI button is pressed
Problem is that nothing in the API tells me about this (that I’ve checked)
Zek4ry
(Astral)
April 5, 2022, 11:49pm
#2
You would do better to have the SurfaceGUI in the PlayerGui for this instance. Perhaps place the Surface GUI into ReplicatedStorage, and use a client event to grab the Surface Gui and place it into the clients you want?
Inf_idel
(Infidel)
April 5, 2022, 11:51pm
#3
First off, why
Second,
Just keep the SurfaceGui in StarterGui and set it’s .Adornee
property to whatever part you like.
This way you can get the player who’s clicking the button. Or you could just use remote events.
just realized the first part will only work on the client
1 Like
Zek4ry
(Astral)
April 5, 2022, 11:52pm
#4
This is also a solution that would work, and generally better unless you don’t want certain people to even see the UI.