Right now a part of my script is as follows

script.Parent.ClickDetector.MouseClick:Connect(function(p)
	p.PlayerGui.MenuGui.Visible = true
end)

Is this a good way to go about doing this? Or should I be using :FireClient() and RemoteEvents?

7 comments

0

I normally use remote events, as I normally don't replicate gui to server, but yes, if you make sure the gui is replicated, you can do that

0

The GUI is only for a certain user, so when they join it's put into their PlayerGui

0

Above is done via clone

0

@tictac67 thats true, but that is replicated to server, so there's no problem changing ui via server

0

Cool. So just to confirm (because I may have got the wrong end of the stick), I'm fine doing it via the server without RemoteEvents?

0

yes

0

Cool. thanks for the help :)