
Key RequiredUniversal

local Players = game:GetService("Players")
-- Function to create and show the message GUI for a player
local function showMessage(player)
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "GlobalMessageGui"
screenGui.ResetOnSpawn = false
screenGui.Parent = player:WaitForChild("PlayerGui")
local textLabel = Instance.new("TextLabel")
textLabel.Size = UDim2.new(1, 0, 0, 50)
textLabel.Position = UDim2.new(0, 0, 0, 0)
textLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
textLabel.BackgroundTransparency = 0.3
textLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
textLabel.TextScaled = true
textLabel.Font = Enum.Font.SourceSansBold
textLabel.Text = "Hello everyone! This message will disappear in 5 seconds."
textLabel.Parent = screenGui
-- Remove GUI after 5 seconds
task.delay(5, function()
if screenGui then
screenGui:Destroy()
end
end)
end
-- Show message to all current players
for _, player in ipairs(Players:GetPlayers()) do
showMessage(player)
end
-- Also show it to players who join late
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Wait() -- Optional: wait for their character to load
showMessage(player)
end)



Is that ss script?