✓ Accepted answer
1st. If you want to be visible when they join try using a script that will clone the GUI in the replicated storage to the certain player.
game.Player.PlayerAdded:Connect(function(plr)
if plr.Name == "" then
game:GetService("ReplicatedStorage").GUI.GUI.Visible = false
end
end)
Fill out GUI with the GUI name and the second GUI for the Frame or TextLabel or anything that is a GUI.
2nd. Try using a Remote Event to Fire to the server and then return it to the player using FireClient.
In Local Script
local re = Instance.new("RemoteEvent", game.ReplicatedStorage)
local plrNames = {"snowwyyyyy2", "Therealbaddude", "Someone"}
re:FireServer()
wait()
re.OnClientEvent:Connect(function(plr)
for _, playerName in pairs(plrNames) do
if plr.Name == playerName then
end
end)
In Server Script
wait(5)
game:GetService("ReplicatedStorage").RemoteEvent.OnServerEvent:Connect(function(plr)
game:GetService("ReplicatedStorage").RemoteEvent:FireClient(plr)
end)
2 comments
Use remote event to fire changes bet
To each client typo