How do i parent a gui to all players?

That didn’t work either

You put the script in ServerScriptService?
and, any errors in output?

It’s a script, not a local script

it didn’t error but when i check the playergui it wasn’t therre

So try to put your Gui inside the script and make

game.Players.PlayerAdded:Connect(function(plr))
    print(1)
    local gui = script.GuiName:Clone()
    print(2)
    gui.Parent = plr.PlayerGui
    print(3)
end)

Remember, It’s a Normal Script in ServerScriptServices

See if all the numbers are showed in the Output

You can’t clone gui on the client I belive.

Thats why I’m saying to he use a Normal Script…
:confused:

Found an error in your script,

game.Players.PlayerAdded:Connect(function(plr)")" -- Remove this one
    print(1)
    local gui = script.GuiName:Clone()
    print(2)
    gui.Parent = plr.PlayerGui
    print(3)
end)

Mate hate to remind you but this post is over 10 months old I’m sure he doesn’t need the solution anymore.

Oh yeah true, i though i could help a bit

This won’t, PlayerGUI is not replicated to the server.

UI has to be handled on the client, if you want to parent a GUI to all clients you need to server to tell all clients to find the UI and parent it to PlayerGUI with a RemoteEvent.