UI & Player Experience3 min read

Replicated Server-to-Client GUI OverlaysPush clean notifications to every PlayerGui from the server.

You do not need local scripts just to display a sleek toast notification or event banner to every player in a Roblox server. Server scripts can build and parent lightweight ScreenGuis directly into each player's PlayerGui.

Lightweight server notification toast

Loop through Players:GetPlayers(), create a simple ScreenGui + TextLabel with UICorner, and schedule cleanup with task.delay so nothing lingers on players' screens.

toast-gui.lua
local Players = game:GetService("Players")

for _, plr in ipairs(Players:GetPlayers()) do
    local pg = plr:FindFirstChildOfClass("PlayerGui")
    if pg then
        local gui = Instance.new("ScreenGui")
        gui.ResetOnSpawn = false
        local lbl = Instance.new("TextLabel")
        lbl.Size = UDim2.new(0, 320, 0, 44)
        lbl.Position = UDim2.new(0.5, -160, 0, 24)
        lbl.BackgroundColor3 = Color3.fromRGB(14, 12, 22)
        lbl.TextColor3 = Color3.fromRGB(244, 242, 251)
        lbl.Text = "Live server notification"
        lbl.Parent = gui
        gui.Parent = pg
        task.delay(5, function() gui:Destroy() end)
    end
end

Common questions

Why set ResetOnSpawn = false on server notifications?

So the banner does not vanish early if a player respawns during the 5-second display window.

All scripts

Try Nova free right in your browser.

Create a free account, link your Roblox profile in about a minute, and run verified or custom Luau scripts with zero downloads. Upgrade to Basic, Enhanced, or Ultra anytime with one-time card checkout.