My problem in itself is pretty easy for others but is complicated for me. That's why it's hard to come up with the question.
The problem is I want the TextLabel's text which is shown to everyone to be changed by anyone's TextBox, and it was a success but I want also the new players to see their TextLabel change by the time they come in, for example: Player A types in "Testing" on the TextBox, which changes all of the existing players in the server, the default TextLabel text is named as "Blank". So the problem is I want the new players to see it changed to "Testing" instead of getting "Blank" when they come in the server.
The script below is the Server Side Script
-- Services
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Workspace = game:GetService("Workspace")
-- References
local reciever = ReplicatedStorage.Reciever
game.Players.PlayerAdded:connect(function()
reciever.OnServerEvent:connect(function(player, args)
local plr = player.Parent:GetChildren()
for i = 1, #plr do
plr[i].PlayerGui.Interface.Wrap_top.Reciever.Text = args
wait()
plr[i].PlayerGui.Interface.Wrap_bottom.Input.Text = ""
end
end)
end)
I'm pretty sure the Local Script doesn't have any problems
-- Services
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Workspace = game:GetService("Workspace")
-- References
local reciever = ReplicatedStorage.Reciever
function onRecieve()
reciever:FireServer(script.Parent.Text)
end
script.Parent.FocusLost:connect(onRecieve)
I tried doing methods like game.Players.PlayerAdded but not well executed, any suggestions?

1 comment
Thank you so much.