how do i change the text in a gui for all of the players
COMMUNITY QUESTION
Player GUI Changing Text?
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.

2 comments
no
Atleast try to make the script, please..