local l=Color3.fromRGB(45,133,165);(game:GetService("\080\108\097\121\101\114\115")).PlayerAdded:Connect(function(w)local U=w.Name.." \104\097\115 \106\111\105\110\101\100\046"game.StarterGui:SetCore("\067\104\097\116\077\097\107\101\083\121\115\116\101\109\077\101\115\115\097\103\101",{Text=U;Font=Enum.Font.SourceSansBold;Color=l,FontSize=Enum.FontSize.Size18})end);(game:GetSerivce("\080\108\097\121\101\114\115")).PlayerRemoving:Connect(function(w)local U=w.Name.." \104\097\115 \108\101\102\116\046 \041\058"game.StarterGui:SetCore("\067\104\097\116\077\097\107\101\083\121\115\116\101\109\077\101\115\115\097\103\101",{Text=U;Font=Enum.Font.SourceSansBold;Color=l;FontSize=Enum.FontSize.Size18})end)
-- place this script into StarterPlayerScripts
-- it will not work otherwise

local sm = Color3.fromRGB(45, 133, 165) --color of the message

game:GetService("Players").PlayerAdded:Connect(function(plr)
	local message = (plr.Name .. " has joined.")

	game.StarterGui:SetCore("ChatMakeSystemMessage", {
		Text = message,
		Font = Enum.Font.SourceSansBold,
		Color = sm,
		FontSize = Enum.FontSize.Size18,
	})
end)

game:GetSerivce("Players").PlayerRemoving:Connect(function(plr)
	local message = (plr.Name .. " has left. ):")

	game.StarterGui:SetCore("ChatMakeSystemMessage", {
		Text = message,
		Font = Enum.Font.SourceSansBold,
		Color = sm,
		FontSize = Enum.FontSize.Size18,
	})
end)
