Is it possible to enable player's GUI from a server script?

okay, this might sound like a stupid question, but i really need to know this so i don’t go firing remote events for that like an idiot

i have a great example of what i mean, because i’m about to be using clickdetectors on models, this is very important information :smiley:

local clickdetector = clickdetectorpath

clickdetector.MouseHoverEnter:Connect(function(player)
   local playerGUI = player.PlayerGui
   local someGUI = playerGUI.someGUI
   someGUI.Visible = true -- will this make the GUI visible?????
end)

it is possible, but it’s not behavior I would recommend at all.
Fire away those remotes.

to be more specific:
indexing playergui from the server is more error prone, where as your could just reference a remote event from a local script and not have to worry about the possibility of the indexed object not existing.
This is even further the case coupled with the fact that gui can reload/respawn on character load

2 Likes

ah okay, i see

very much noted, thanks!!

You could also use game.player.playeradded:Connect()
And index the PlayerGui from there

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.