local player = game.Players.LocalPlayer
if game.Workspace.Battle.Value == true then
player:WaitForChild("PlayerGui").Header.Text.Visible = false
for i,v in pairs(player:WaitForChild("PlayerGui").Main:GetChildren()) do
if v:IsA("GuiObject") then
v.Visible = true
end
end
end
when I start a 2 player server it dosent make the visibilty to them change

3 comments
Can you edit your post and go into a bit more detail? Do you mean each object's children or the object itself?
Well all I really want is to just want the header.text visigble = false and the mains children visible = true, but it dosent work, I have even tried game.StarterGui.Header.Text.Visible = false and even that dosent work
Don't use game.StarterGui, you have to use the player's PlayerGui.