script.Parent.ClickDetector.MouseClick:connect(function(player)
for i,v in pairs(game.Players:GetPlayers()) do
local randomVars = {"This One As Well", "Oof", "This One Too", "This one", }
local randomVar = randomVars[math.random(#randomVars)] -- picking a random variable from the table
print(randomVar)
v.PlayerGui.ScreenGui.Frame.TextLabel.Text = (randomVar)
end
end)
For the example above, I made up a random table. But what I want is for the text label to say the same thing for all the players in the server. With the above code, everyone's text changes, but its all different and random, which I know why, I just do not how to make it all the same.

1 comment
fire the local script into a server script using RemoteEvents or RemoteFunctions