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

Help with making updating GUIs?

I'm trying to change the text of peoples guis to the game text, and its not working.

game.StarterGui.Game.Frame.TextLabel.Text = "Current timer "..workspace.CurrentTimer,Value

Doesn't change tge text?

1 comment

0

Im not posting an answer because Im not experienced in finding players names and such, so ill just tell you this in a comment. If you change something in StarterGui, you are only changing the Gui that people start with when the join/spawn. With the method you used, you would have to reset them to change the Gui. To do what you want you would have to change every players PlayerGui

1 answer

You need to change everyone's text at one time, probably through a for loop or a remotefunction/remotevent.

Sample code:

for i,v in pairs(game.Players:GetPlayers()) do
	v.Game.Frame.TextLabel.Text = "Current timer" --other stuff

end

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