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

Player GUI Changing Text?

how do i change the text in a gui for all of the players

2 comments

0

no

0

Atleast try to make the script, please..

1 answer

local guiname  -- name of the gui there
local textlabel -- name of the textlabel there

for _, player in pairs (game.Players:GetPlayers()) do
	if player:findFirstChild("PlayerGui") then
		if player.PlayerGui:findFirstChild(guiname) then
			if player.PlayerGui[guiname]:findFirstChild(textlabel) then
				local text = player.PlayerGui:WaitForChild(guiname):WaitForChild(textlabel)
				text.Text = "Something" -- the text
			end
		end
	end
end

1 comment

0

please put into a code block

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