Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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.

4 comments

0

we discussed this on discord and apparently the only thing that changes the gui is the one shown

1

nope, the GUI is in StarterGui and it works. I honestly have no idea why it's even working in the first place.

0

Maybe don't be dumb and disabled accurate play solo

0

@incapaxx it works in Studio and in game

This discussion is preserved as it was. New answers, comments, and votes are closed.