What I'm trying to do is update a GUI the player has when they click on a button in the workspace. However, I realized that the PlayerGui can't be accessed through a server script. Is there any way to access a local script through a server script? Sort of like a reverse RemoteEvent when the local script fires a server script. This is in Filtering Enabled
Hello, InfernoExeuctioner!
Remote Events script:
local Event= Instance.new("RemoteEvent") Event.Parent = game.ReplicatedStorage Event.Name = "ChangeGuiEvent"
local script:
game.ReplicatedStorage.OnClientEvent:Connect(function() -- Change gui here end)
Change using only a normal server script
-- This will change when the player click the scripts parent script.Parent.ClickDetector.MouseButton1Click:Connect(function(plr) plr.PlayerGui. -- Here you are on the player gui folder =D, change the guis here end)
Good Luck with your games!!