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

Server able to edit the PlayerGui with FE on and no RemoteEvents?

Asked by 5 years ago

Yesterday I was tinkering with some GUIs and I stumbled when I ran this script:

for i,p in pairs(game.Players:GetPlayers()) do
    p.PlayerGui.ScreenGui.TextLabel.Text = "Hello"
end

When I put those 3 lines in a function that was fired via a ClickDetector's MouseClick event like so...

script.Parent.ClickDetector.MouseClick:Connect(function()
    for _,p in pairs(game.Players:GetPlayers()) do
        p.PlayerGui.ScreenGui.TextLabel.Text = "Hello"
    end
end)

...and then ran the script, believe it or not, the server script accessed the PlayerGui and edited the TextLabel with FE on and no RemoteEvents. Could this possibly be a bug?

1 answer

Log in to vote
0
Answered by
Amiaa16 3227 Moderation Voter Community Moderator
5 years ago

If the gui was placed in the PlayerGui by a server script then the server can access it perfectly fine. Nothing revolutionary. You probably parent the ScreenGui using some server script.

0
we discussed this on discord and apparently the only thing that changes the gui is the one shown ihatecars100 502 — 5y
1
nope, the GUI is in StarterGui and it works. I honestly have no idea why it's even working in the first place. DeceptiveCaster 3761 — 5y
0
Maybe don't be dumb and disabled accurate play solo User#24403 69 — 5y
0
@incapaxx it works in Studio and in game DeceptiveCaster 3761 — 5y
Ad

Answer this question