01 | local Players = game:GetService( "Players" ) |
02 |
03 | function onPlayerAdded(player) |
04 | game:GetService( "StarterGui" ):SetCore( "ChatMakeSystemMessage" , { |
05 | Text = ( "[SERVER]: " .. player.Name .. " has entered the game." ); |
06 | Color = Color 3. new( 255 , 255 , 255 ); |
07 | Font = Enum.Font.SourceSansBold; |
08 | FontSize = Enum.FontSize.Size 18 ; |
09 | } ) |
10 | end |
11 |
12 | Players.PlayerAdded:connect(onPlayerAdded) |
13 |
14 | for _,player in pairs (Players:GetPlayers()) do |
15 | onPlayerAdded(player) |
16 | end |
(This script is in StarterGUI).
Also, it's a regular script which located in StarterGUI.
If you want the welcome message to show to everyone, you have to put this script on the server side.
1 | game.Players.PlayerAdded:Connect( function (plr) -- Checks when a player joins. |
2 | game:GetService( "StarterGui" ):SetCore( "ChatMakeSystemMessage" , { |
3 | Text = ( "[SERVER]: " .. plr.Name .. " has entered the game." ); |
4 | Color = Color 3. new( 255 , 255 , 255 ); |
5 | Font = Enum.FontSize.Size 18 ; |
6 | } ) |
7 | end ) |
Otherwise, put this in a localscript in workspace.