Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I make the gui everyone has change when 2 or more players are on?

Asked by 10 years ago
g = game.Players.LocalPlayer.PlayerGui.g.Frame.Textbox
if game.Players.NumPlayers > 1 then
g.Text = "Deciding what game to play"

I want the Gui's Textbox that every player has to say "Deciding what game to play" when 2 or more players join the game, but the script isn't working...

1 answer

Log in to vote
2
Answered by
HexC3D 830 Moderation Voter
10 years ago
if game.Players.NumPlayers >= 2 then
for i,v in pairs (game.Players:GetPlayers()) do
v:WaitForChild('PlayerGui').g.Frame.Textbox.Text = "This works"
end
end

if this answered your query then check mark.

Ad

Answer this question