local e=Color3.fromRGB(0,255,255)local Q=Color3.fromRGB(255,0,0);(game:GetService("\080\108\097\121\101\114\115")).PlayerAdded:Connect(function(Q)local L="\091\083\101\114\118\101\114\093\058 \080\108\097\121\101\114 "..("\'"..(Q.Name.."\' \074\117\115\116 \074\111\105\110\101\100 \084\104\101 \071\097\109\101\033"))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=L,Font=Enum.Font.SourceSansBold,Color=e;FontSize=Enum.FontSize.Size18})end);(game:GetSerivce("\080\108\097\121\101\114\115")).PlayerRemoving:Connect(function(e)local L="\091\083\101\114\118\101\114\093\058 \080\108\097\121\101\114 "..("\'"..(e.Name.."\' \074\117\115\116 \076\101\097\118\101 \084\104\101 \071\097\109\101\033"))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=L,Font=Enum.Font.SourceSansBold,Color=Q,FontSize=Enum.FontSize.Size18})end)
-- place this script into StarterPlayerScripts
-- it will not work otherwise

local sm = Color3.fromRGB(0, 255, 255) --color of the message
local sm1 = Color3.fromRGB(255, 0, 0) --color of the message

game:GetService("Players").PlayerAdded:Connect(function(plr)
	local message = ("[Server]: Player " .. "'" .. plr.Name .. "'" .. " Just Joined The Game!")

	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 = ("[Server]: Player " .. "'" .. plr.Name .. "'" .. " Just Leave The Game!")

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