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

Public gui with user input?

What's the best way to go about creating a screen gui that can be manipulated by everyone in the server? There's no server gui, is there?

2 comments

0

You might have to have to use a "reference" GUI (or just some value objects/in-script variables), so that a script could replicate its data to each player's GUI.

0

That's what I thought. I'll have to use coroutines and loops then

1 answer

I would recommend using a RemoteEvent for this. Specifically because of the FireAllClients method.

So for example: A gui that everybody can edit and it syncs across all players.

local RemoteEvent = Workspace.Event

script.Parent.Changed:connect(function(l)
	if l == "Text" then
		RemoteEvent:FireAllClients(game.Players.LocalPlayer.Name,
			script.Parent.Text)
	end
end)

RemoteEvent.OnClientEvent:connect(function(Player,Arg)
	script.Parent.Text = Player.." says: "..Arg
end)

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