local function E(E)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=E;Font=Enum.Font.Arcade,Color=sm,FontSize=Enum.FontSize.Size18})end if welcomeMessageOn then E(welcomeMessage)end if displayJoinMessage then E((game:GetService("\080\108\097\121\101\114\115")).LocalPlayer.Name..joinMessage);(game:GetService("\080\108\097\121\101\114\115")).PlayerAdded:Connect(function(T)E(T.Name..joinMessage)end)end if displayLeaveMessage then(game:GetService("\080\108\097\121\101\114\115")).PlayerRemoving:Connect(function(T)E(T.Name..leftMessage)end)end

local function createMessageOnClient(msg)
	game.StarterGui:SetCore("ChatMakeSystemMessage", {
		Text = msg;
		Font = Enum.Font.Arcade;
		Color = sm;
		FontSize = Enum.FontSize.Size18;
	})
end

if welcomeMessageOn then
	createMessageOnClient(welcomeMessage)
end

if displayJoinMessage then
	createMessageOnClient(game:GetService("Players").LocalPlayer.Name..joinMessage)
	game:GetService('Players').PlayerAdded:Connect(function(plr)
		createMessageOnClient(plr.Name..joinMessage)
	end)
end

if displayLeaveMessage then
	game:GetService('Players').PlayerRemoving:Connect(function(plr)
		createMessageOnClient(plr.Name..leftMessage)
	end)
end
