So am making a minigame and I want the text to change for everyone but its not working?
This is the local script:
local client = game:GetService("Players").LocalPlayer
local RepStore = game:GetService("ReplicatedStorage")
local remote = RepStore.Remote -- LOCATING THE REMOTE
while true do
remote.OnClientEvent:Connect(function()
local pgui = client.PlayerGui
pgui:WaitForChild("MainText").TextLabel.Text = "Test" --Changing the textlabel
remote.OnClientEvent:Connect(function()
local pgui = client.PlayerGui
pgui:WaitForChild("MainText").TextLabel.Text = "TestAgain" --Changing the textlabel
end)
end)
wait(4)
end
this is the script:
local RepStore = game:GetService("ReplicatedStorage")
local remote = RepStore.Remote
wait(2)
remote:FireAllClients() --Firing to the clients

5 comments
Didint work?
Was the text initially "Test"? If not, try putting a print in the remote event, see if it actually goes trough.
It did print but it doesnt show "Test" in the gui?
Nevermind I got it working thank you!
You're welcome!