✓ Accepted answer
If your game has FilteringEnabled on, this wouldn't work because the server can't access the descendants of each clients' gui. If your game's not in FE, a solution has been provided
** For FE Games**
You'll need to use a RemoteEvent if FE is enabled for server - client communication
local re = game.ReplicatedStorage:WaitForChild('RemoteEvent')
re.OnClientEvent:Connect(function(t)
script.Parent.Text = t
end)
local re = game.ReplicatedStorage:WaitForChild('RemoteEvent')
re:FireAllClients('You need 1 more player for this to start.')
** For Non - Fe Games**
If your game doesn't have Fe enabled, you'll probably need to use :WaitForChild on the screen gui, or put a wait() before the rest of the code begins.
1 comment
Thanks dude