So I am making a minigame and I want to make the textlabel change the text for everyone to see! Heres the script
SCRIPT!
local RepStore = game:GetService("ReplicatedStorage")
local remote = RepStore:WaitForChild("Remote") --LOCATING THE REMOTE
remote.OnServerEvent:Connect(function()
for i, v in pairs(game.Players:GetChildren()) do
local pgui = v:WaitForChild("PlayerGui")
pgui:WaitForChild("MainText").TextLabel.Text = "Not enough players to start!"
--Chaning the players textlabel
end
end)
LOCAL SCRIPT
local RepStore = game:GetService("ReplicatedStorage")
local remote = RepStore:WaitForChild("Remote")
remote:FireAllClients() --Firing the client
Thank you!
